View Issue Details

IDProjectCategoryView StatusLast Update
0002975CentOS-5-OTHERpublic2008-07-17 16:56
ReporterZzzzz 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionnot fixable 
Product Version5.2 
Target VersionFixed in Version 
Summary0002975: Kickstart fails to access NFS mounted kickstart file
DescriptionKickstarts using a DHCP server and NFS share to provide kickstart file failing. The setup has worked perfectly for CentOS 5.1 and below.

INFO shows the following:

ERROR : no DNS servers, can't look up hostname
INFO : doing kickstart... setting it up
INFO : bootp: bootfile is (null)
INFO : url is 10.10.10.9:(null)
INFO : file location: nfs://null/10.10.10.68-kickstart
ERROR : failed to mount nfs source

wireshark logging shows the exact same response from the DHCP server as for a CentOS 5.1 kickstart, which works. bootfile data is being provided by DHCP server.



TagsNo tags attached.

Activities

Zzzzz

Zzzzz

2008-07-11 09:27

reporter   ~0007620

Adding the path to the kickstart explicitly at boot time works fine i.e.

linux ks=nfs:10.10.10.9:/path/10.10.10.68-kickstart
tru

tru

2008-07-17 10:17

administrator   ~0007670

could you add the relevant dhcpd.conf lines?
maybe report upstream?
Zzzzz

Zzzzz

2008-07-17 11:45

reporter   ~0007674

Here's the entry for that system in the dhcpd.conf file:

host nb168 {
        hardware ethernet 00:d0:59:c1:39:ff;
        fixed-address 10.10.22.68;
        next-server 10.10.10.9;
                filename "/export/x00/dhcp/kickstarts/nb168-kickstart";
              option domain-name-servers 10.10.10.9;
              option domain-name "aepona.com";
                option routers 10.10.22.1;
                option host-name "nb168";
        option nis-domain "nisdomainname";
        option nis-servers 10.10.10.9, 10.10.10.10;
        }
tru

tru

2008-07-17 13:06

administrator   ~0007680

so your kickstart file is
/export/x00/dhcp/kickstarts/nb168-kickstart ? or 10.10.10.68-kickstart ?
served from the nfs server at 10.10.10.9.
tru

tru

2008-07-17 13:08

administrator   ~0007681

please provide the full boot command line
Zzzzz

Zzzzz

2008-07-17 13:26

reporter   ~0007683

The kickstart file is: /export/x00/dhcp/kickstarts/nb168-kickstart from the specified NFS server.

From the prompt after boot of the install CD I'm just using the "ks" command.
tru

tru

2008-07-17 16:48

administrator   ~0007692

ok I could reproduce it :(
background:
10.0.0.4 nfs/ftp/dhcpd/named server (/etc/exports; /etc/named.conf; etc/dhcpd.conf unchanged between the 2 tests (a) and (b) )
10.0.0.201 ks client ip adress

isolinux.cfg changed (avoind typing) to read:

label a
  kernel vmlinuz
  append ks initrd=initrd.img noipv6 lang=en ip=dhcp syslog=10.0.0.4 console=ttyS0,38400n
label b
  kernel vmlinuz
  append initrd=initrd.img noipv6 lang=en ip=dhcp syslog=10.0.0.4 console=ttyS0,38400n ks=nfs:10.0.0.4:/var/www/html/ks/c5-min-serial_jones-nfs.cfg

/var/www/html/ks/c5-min-serial_jones-nfs.cfg
install
text
cmdline
reboot
url --url ftp://10.0.0.4//pub/linux/centos/5/os/i386
repo --name=TOTO --baseurl=ftp://10.0.0.4/pub/linux/centos/5/updates/i386
lang en_US.UTF-8
keyboard us
xconfig --driver "nv" --resolution 800x600 --depth 24
# -> useless minimal install does not come with X
network --device eth0 --bootproto dhcp
rootpw --iscrypted xxxxxxxxxxxxxxxxxxxx
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc Europe/Paris
bootloader --location=mbr --driveorder=hda

clearpart --all --drives=hda
part /boot --size=256 --asprimary --ondisk=hda --fstype ext3
part / --size=16384 --asprimary --ondisk=hda --fstype ext3
part swap --size=1024 --asprimary --ondisk=hda --fstype swap
part /work --size 1 --ondisk=hda --grow --fstype ext3

%packages
-Deployment_Guide-en-US
-gnu-efi

/etc/dhcpd.conf relevant entry:
host jones {
        hardware ethernet 00:01:02:f5:aa:f7;
        fixed-address 10.0.0.201;
        filename "/var/www/html/ks/c5-min-serial_jones-nfs.cfg";
        next-server 10.0.0.4;
        option domain-name-servers 10.0.0.4;
        option domain-name "localnet";
        option host-name "jones";
        }

(a) typing a at the boot.iso cdrom image commande line:

serial console output:
        +-------------+ Error downloading kickstart file +-------------+
        | |
        | Unable to download the kickstart file. Please modify the |
        | kickstart parameter below or press Cancel to proceed as an |
        | interactive installation. |
        | |
        | ____________________________________________________________ |
        | |
        | +----+ +--------+ |
        | | OK | | Cancel | |
        | +----+ +--------+ |
        | |
        | |
        +--------------------------------------------------------------+

alt-F3:
INFO : DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
INFO : DHCPOFFER from 10.0.0.4
INFO : DHCPREQUEST on eth0 to 255.255.255.255 port 67 interval 8
INFO : DHCPACK from 10.0.0.4
INFO : bound to 10.0.0.201 -- renewal in 13689 seconds.
INFO : DHCPv4 eth0 - obtained lease 10.0.0.201
INFO : DHCPv4 eth0 - option subnet-mask: 255.255.255.0
INFO : DHCPv4 eth0 - option subnet-mask - prefix_len: 24 broadcast 10.0.0.255
INFO : DHCPv4 eth0 - option routers:
ERROR : no DNS servers, can't look up hostname
INFO : doing kickstart... setting it up
INFO : bootp: bootfile is (null)
INFO : url is 10.0.0.4:(null)
INFO : file location: nfs://null/10.0.0.201-kickstart
ERROR : failed to mount nfs source
<-- (nothing on the nfs server at this point) -->

when filling the requested information with:
ks=nfs:10.0.0.4:/var/www/html/ks/c5-min-serial_jones-nfs.cfg
(the same information as provided by the filename entry in /etc/dhcpd.conf)

        +-------------+ Error downloading kickstart file +-------------+
        | |
        | Unable to download the kickstart file. Please modify the |
        | kickstart parameter below or press Cancel to proceed as an |
        | interactive installation. |
        | |
        | s=nfs:10.0.0.4:/var/www/html/ks/c5-min-serial_jones-nfs.cfg_ |
        | |
        | +----+ +--------+ |
        | | OK | | Cancel | |
        | +----+ +--------+ |
        | |
        | |
        +--------------------------------------------------------------+


ERROR : failed to mount nfs source
INFO : networking already configured in kickstartNetwokUp
EROOR: getFileFromNfs: no client IP information <--- BAD!!!!

(b) label b at cdrom

syslog:
Jul 17 18:17:22 sillage dhcpd: DHCPDISCOVER from 00:01:02:f5:aa:f7 via eth0
Jul 17 18:17:22 sillage dhcpd: DHCPOFFER on 10.0.0.201 to 00:01:02:f5:aa:f7 via eth0
Jul 17 18:17:22 sillage dhcpd: DHCPREQUEST for 10.0.0.201 (10.0.0.4) from 00:01:02:f5:aa:f7 via eth0
Jul 17 18:17:22 sillage dhcpd: DHCPACK on 10.0.0.201 to 00:01:02:f5:aa:f7 via eth0
Jul 17 18:17:22 sillage rpc.mountd: authenticated mount request from jones.localnet:866 for /var/www/html/ks (/var/www/html/ks)

<--------- HERE the NFS mount ------------>
Jul 17 18:17:22 sillage dhcpd: DHCPDISCOVER from 00:01:02:f5:aa:f7 via eth0
Jul 17 18:17:22 sillage dhcpd: DHCPOFFER on 10.0.0.201 to 00:01:02:f5:aa:f7 via eth0
Jul 17 18:17:22 sillage dhcpd: DHCPREQUEST for 10.0.0.201 (10.0.0.4) from 00:01:02:f5:aa:f7 via eth0
Jul 17 18:17:22 sillage dhcpd: DHCPACK on 10.0.0.201 to 00:01:02:f5:aa:f7 via eth0
Jul 17 18:17:35 jones.localnet INFO Display mode = c
Jul 17 18:17:35 jones.localnet INFO Method = ftp://10.0.0.4///pub/linux/centos/5/os/i386
Jul 17 18:17:39 jones.localnet INFO anaconda floppy device fd0
Jul 17 18:17:42 jones.localnet WARNING Unable to find temp path, going to use ramfs path
Jul 17 18:17:42 jones.localnet WARNING Unable to find temp path, going to use ramfs path
Jul 17 18:17:43 jones.localnet INFO ISCSID is /usr/sbin/iscsid
Jul 17 18:17:43 jones.localnet INFO ISCSIADM is /usr/sbin/iscsiadm
Jul 17 18:17:43 jones.localnet INFO ISCSID is /usr/sbin/iscsid
Jul 17 18:17:44 jones.localnet INFO ISCSIADM is /usr/sbin/iscsiadm
Jul 17 18:17:44 jones.localnet INFO Running kickstart %%pre script(s)
Jul 17 18:17:56 jones.localnet INFO All kickstart %%pre script(s) have been run
Jul 17 18:17:56 jones.localnet INFO Setting video card driver to user value of nv
...

serial console:
          Sending request for IP information for eth0...








Running anaconda, the CentOS system installer - please wait...
Probing for video card: nVidia Corporation NV11DDR [GeForce2 MX200]
Running pre-install scripts

...

all fine (as reported by Zzzzz)
tru

tru

2008-07-17 16:56

administrator   ~0007693

it's confirmed upstream bug :(

https://bugzilla.redhat.com/show_bug.cgi?id=448006

will wait for their fixes

Issue History

Date Modified Username Field Change
2008-07-11 09:24 Zzzzz New Issue
2008-07-11 09:27 Zzzzz Note Added: 0007620
2008-07-17 10:17 tru Note Added: 0007670
2008-07-17 10:45 tru Status new => feedback
2008-07-17 11:45 Zzzzz Note Added: 0007674
2008-07-17 13:06 tru Note Added: 0007680
2008-07-17 13:08 tru Note Added: 0007681
2008-07-17 13:26 Zzzzz Note Added: 0007683
2008-07-17 16:48 tru Note Added: 0007692
2008-07-17 16:48 tru Status feedback => confirmed
2008-07-17 16:56 tru Status confirmed => closed
2008-07-17 16:56 tru Note Added: 0007693
2008-07-17 16:56 tru Resolution open => not fixable