[et-mgmt-tools] Koan unable to locate repodata

Michael DeHaan mdehaan at redhat.com
Mon Apr 23 22:00:00 UTC 2007


Adam Rosenwald wrote:
> In the kickstart file associated with profile 'centos-5-xen-x86_64', I 
> modified the network stanza as follows:
>
> network --bootproto=static --ip $mini_ip --netmask $mini_netmask 
> --gateway $mini_gw --nameserver $mini_ns --hostname $mini_hn 
> --device=eth0 --onboot=on
>
> Then, when adding a cobbler system, I specify the static network 
> information via ks_meta string; i.e.:
>
> cobbler system add --name=<mac address> --pxe-address=<ip> 
> --profile=centos-5-xen-x86_64 \
>  --ksmeta='mini_ip=10.0.7.71 <http://10.0.7.71> 
> mini_netmask=255.255.0.0 <http://255.255.0.0> mini_gw=10.0.0.253 
> <http://10.0.0.253> mini_ns=10.0.7.80 <http://10.0.7.80> 
> mini_hn=test_virt'
>
> I've confirmed that this network modification marks the point where 
> the "Can't find repodata' stuff occurs.  It has nothing to do with the 
> location of the repository or the configuration its web server, as the 
> standard kickstart_fc6.ks with --bootproto=dhcp works fine.

Thanks for the clarification.   

Anything dealing with the guts of kickstart really ought to be posted to 
kickstart-list at redhat.com instead  ...  it looks like you have a 
kickstart and/or networking issue.

--Michael



>
> Thanks,
>
>  - A.
>
> On 4/23/07, *Michael DeHaan* <mdehaan at redhat.com 
> <mailto:mdehaan at redhat.com>> wrote:
>
>     Niyaz Chistee wrote:
>     > On Sat, 2007-04-21 at 22:30 -0400, Adam Rosenwald wrote:
>     >
>     >> Thanks, Niyaz.  However, I had already taken the liberty of
>     manually
>     >> readding distros, profiles, and systems.  The end result are
>     the files
>     >> listed below.
>     >>
>     >> BTW, thanks for reminding me to list versions:
>     >>
>     >> cobbler 0.4.6
>     >> koan 0.2.8
>     >>
>     >> On 4/21/07, Niyaz Chistee < prime.provogue at gmail.com
>     <mailto:prime.provogue at gmail.com>> wrote:
>     >>         On Sat, 2007-04-21 at 22:18 -0400, Adam Rosenwald wrote:
>     >>         > I set up cobbler on bootserver according to import
>     procedure
>     >>         >
>     >>         > Distro: centos-5
>     >>         >
>     >>         > I modified the kickstart file <below> and edited the
>     cobbler
>     >>         settings
>     >>         > files <below> when the `cobbler import`-generated
>     settings
>     >>         files
>     >>         > caused problems.
>     >>         >
>     >>         > ##############
>     >>         >
>     >>         > /var/lib/cobbler/settings
>     >>         >
>     >>         > ##############
>     >>         >
>     >>         > ---
>     >>         > bootloaders:
>     >>         >     ia64: /var/lib/cobbler/elilo-3.6-ia64.efi
>     >>         >     standard: /usr/lib/syslinux/pxelinux.0
>     >>         > default_kickstart: /etc/cobbler/default.ks
>     >>         > dhcpd_bin: /usr/sbin/dhcpd
>     >>         > dhcpd_conf: /etc/dhcpd.conf
>     >>         > httpd_bin: /usr/sbin/httpd
>     >>         > kernel_options:
>     >>         >     ksdevice: eth0
>     >>         >     lang: ' '
>     >>         >     text: ~
>     >>         > koan_path: ''
>     >>         > manage_dhcp: 1
>     >>         > minimize_syncs: 1
>     >>         > next_server: <cobbler hostname>
>     >>         > server: <cobbler hostname>
>     >>         > syslog_port: 25150
>     >>         > tftpboot: /tftpboot
>     >>         > tftpd_bin: /usr/sbin/in.tftpd
>     >>         > tftpd_conf: /etc/xinetd.d/tftp
>     >>         > webdir: /var/www/cobbler
>     >>         > yum_core_mirror_from_server: 1
>     >>         >
>     >>         > ##############
>     >>         >
>     >>         > /var/lib/cobbler/distros
>     >>         >
>     >>         > ##############
>     >>         > -
>     >>         >     arch: x86_64
>     >>         >     breed: redhat
>     >>         >     initrd: /var/www/cobbler/ks_mirror
>     >>         > /centos-5/images/xen/initrd.img
>     >>         >
>     >>         kernel:
>     /var/www/cobbler/ks_mirror/centos-5/images/xen/vmlinuz
>     >>         >     kernel_options: {}
>     >>         >     ks_meta: {}
>     >>         >     name: centos-5-xen
>     >>         >     source_ repos:
>     >>         >         -
>     >>         >             - 'http://<cobbler
>     >>         > hostname>/cobbler/ks_mirror/config/centos-5-xen-0. repo'
>     >>         >             - 'http://<cobbler
>     >>         hostname>/cobbler/ks_mirror/centos-5'
>     >>         > -
>     >>         >  ... additional non-xen centos-5 distro
>     >>         >
>     >>         > ###############
>     >>         >
>     >>         > /var/lib/cobbler/profiles
>     >>         >
>     >>         > ###############
>     >>         >
>     >>         > ---
>     >>         > -
>     >>         >     distro: centos-5-xen
>     >>         >     kernel_options: {}
>     >>         >     kickstart: /etc/cobbler/centos- 5-xen.ks
>     >>         >     ks_meta:
>     >>         >         test_boot_server: <cobbler hostname>
>     >>         >     name: testing-centos-5-xen
>     >>         >     repos: []
>     >>         >     virt_file_size: 36
>     >>         >     virt_paravirt: True
>     >>         >     virt_ram: 2048
>     >>         > -
>     >>         >  ... additional non-xen centos-5 profiles
>     >>         >
>     >>         > ###############
>     >>         >
>     >>         > /var/lib/cobbler/systems
>     >>         >
>     >>         > ###############
>     >>         >
>     >>         > ---
>     >>         > -
>     >>         >     kernel_options: {}
>     >>         >     ks_meta:
>     >>         >         test_gateway: '<my gw>'
>     >>         >         test_hostname: <my hn>
>     >>         >         test_ip: '<my ip>'
>     >>         >         test_mac_address: '<my mac>'
>     >>         >         test_netmask: '<my nm>'
>     >>         >         test_ns: '<my ns>'
>     >>         >     name: '<my mac>'
>     >>         >     netboot_enabled: 1
>     >>         >     profile: testing-centos-5-xen
>     >>         >     pxe_address: '<my ip>'
>     >>         > -
>     >>         >   ...etc
>     >>         >
>     >>         > ###############
>     >>         >
>     >>         > /etc/cobbler/centos-5-xen.ks
>     >>         >
>     >>         > ###############
>     >>         >
>     >>         > #Generated by Kickstart Configurator
>     >>         > #platform=x86, AMD64, or Intel EM64T
>     >>         >
>     >>         > #System  language
>     >>         > lang en_US
>     >>         > #Language modules to install
>     >>         > langsupport en_US
>     >>         > #System keyboard
>     >>         > keyboard us
>     >>         > #System mouse
>     >>         > mouse
>     >>         > #Sytem timezone
>     >>         > # timezone --utc America/New_York
>     >>         > timezone --utc GMT
>     >>         > #Root password
>     >>         > rootpw --iscrypted <some encrypted passwd>
>     >>         > #Reboot after installation
>     >>         > reboot
>     >>         > #Use text mode install
>     >>         > text
>     >>         > #Install OS instead of upgrade
>     >>         > install
>     >>         > #Use HTTP-based installation Media
>     >>         > url --url
>     >>         http://$test_boot_server/cobbler/ks_mirror/centos-5
>     >>         > # cobbler should overwrite the preceding anyway -- it
>     >>         doesn't; hence
>     >>         > the need for this ks_meta item in cobbler distro addition
>     >>         >
>     >>         > #System bootloader configuration
>     >>         > ## bootloader --location=mbr
>     >>         > bootloader --location=mbr
>     >>         > #Clear the Master Boot Record
>     >>         > zerombr yes
>     >>         > #Partition clearing information
>     >>         > clearpart --all --initlabel
>     >>         > #Disk partitioning information
>     >>         > part swap --size 2048
>     >>         > part /var --size 2048
>     >>         > part /tmp --size 2048
>     >>         > part / --fstype ext3 --size 1 --grow
>     >>         >
>     >>         > #System authorization infomation
>     >>         > auth  --useshadow  --enablemd5
>     >>         > #Network information
>     >>         > network --bootproto static --ip $test_ip --netmask
>     >>         $test_netmask
>     >>         > --gateway $test
>     >>         > _gateway --nameserver $test_ns --hostname $test_hostname
>     >>         --device
>     >>         > eth0
>     >>         >
>     >>         > #Firewall configuration
>     >>         > firewall --disabled
>     >>         > #Do not configure XWindows
>     >>         > skipx
>     >>         >
>     >>         > #Disable SELinux
>     >>         > selinux --disabled
>     >>         >
>     >>         > #Package install information
>     >>         > %packages --resolvedeps
>     >>         > @ development-libs
>     >>         > @ development-tools
>     >>         > @ editors
>     >>         > @ legacy-software-development
>     >>         > @ legacy-software-support
>     >>         > @ miscallvars
>     >>         > @ mysql
>     >>         > @ system-tools
>     >>         > @ text-internet
>     >>         > @ base-x
>     >>         > @ mysql
>     >>         >
>     >>         > ###################
>     >>         >
>     >>         > In sum, after installing koan (again following the
>     >>         instructions from
>     >>         > the "import DVD page") and running
>     >>         >
>     >>         >     `koan --virt --server=<cobbler server hostname>
>     >>         --system=<mac
>     >>         > address of proposed virtual host>`
>     >>         >
>     >>         > I received some errors and corrected them in turn, by
>     >>         modifying either
>     >>         > my kickstart file or the cobbler settings (distros,
>     >>         profiles, systems)
>     >>         > files.
>     >>         >
>     >>         > There is one error, however, which perplexes me.  I
>     can load
>     >>         the
>     >>         > centos-5-xen kernel and initrd files.  DHCP appears
>     >>         cool.  Anaconda
>     >>         > starts and then...
>     >>         >
>     >>         > ##########
>     >>         >
>     >>         > Unable to read package metadata. This may be due to a
>     >>         missing
>     >>         > |
>     >>         >       | repodata directory.  Please ensure that your
>     install
>     >>         tree has
>     >>         > |
>     >>         >       | been correctly generated.  Cannot open/read
>     >>         repomd.xml file
>     >>         > |
>     >>         >       | for repository: anaconda-base-200704101946.x86_64
>     >>         >
>     >>         > ##########
>     >>         >
>     >>         >
>     >>         > This bothers me because in my kickstart file (which I
>     >>         verified the
>     >>         > ks_meta args in /var/www/cobbler/kickstarts_sys/<my
>     >>         mac>/ks.cfg)
>     >>         > clearly has the correct 'url --url ...' line which
>     points to
>     >>         the
>     >>         > repository.
>     >>         >
>     >>         > Any thoughts?
>     >>         >
>     >>         > I appreciate your time.
>     >>         >
>     >>         > Sincerely,
>     >>         >
>     >>         >  - Adam.
>     >>
>     >>         There has been problem with Centos5 import tree not
>     working
>     >>         with the
>     >>         current version of cobbler. We will soon see a new
>     version of
>     >>         cobbler
>     >>         that is 0.4.7 due monday/tuesday possibly (according to
>     >>         michael). That
>     >>         will solve the problem.
>     >>         If for the time being you want to use centos I would prefer
>     >>         not to use
>     >>         import and use
>     >>         "cobbler distro add" , "cobbler profile add" and "cobbler
>     >>         system add".
>     >>
>     >>         Regards
>     >>         Deependra
>     >>         >
>     >>
>     >>
>     >
>     > If you hand edit the files in /var/lib/cobbler/ you will be in
>     trouble.
>     > Specially /var/lib/cobbler/{distros,profiles,systems}. They use
>     YAML and
>     > YAML is strict on rules. So maybe that's causing the problem. In
>     the new
>     > version of cobbler that is 0.4.7 we will be seeing XMLPRC (sorry
>     if I
>     > wrote it wrong) that will help hand edit these files.
>     >
>     >
>
>     The above error has nothing to do with the YAML parser.
>
>     "Can't find repodata" anaconda error deals with the installer not
>     having
>     a good URL location for the kickstart tree.
>
>     0.4.7 will be out shortly (stay tuned) which can happily import and
>     provision Centos 5.
>
>
>     >
>     >
>     > _______________________________________________
>     > et-mgmt-tools mailing list
>     > et-mgmt-tools at redhat.com <mailto:et-mgmt-tools at redhat.com>
>     > https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>     <https://www.redhat.com/mailman/listinfo/et-mgmt-tools>
>     >
>
>     _______________________________________________
>     et-mgmt-tools mailing list
>     et-mgmt-tools at redhat.com <mailto:et-mgmt-tools at redhat.com>
>     https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools




More information about the et-mgmt-tools mailing list