Bugzilla – Bug 4300
install failure: pkg image-create failed with auto-install
Last modified: 2008-12-22 10:30:31 UTC
You need to log in before you can comment on or make changes to this bug.
Created an attachment (id=675) [details] screenshot of javaconsole with error message Please see attachment for error message. Followed steps outlined in: http://www.opensolaris.org/os/project/caiman/auto_install/AI_install_server_setup.html image used /net/indiana-build.central/export/home/sundar/images/AutoInstall.iso # md5sum AutoInstall.iso 3ea925174fbc61479f675d5ebf573661 AutoInstall.iso AI server: golmaal(172.20.64.98) root@golmaal:/var/tmp/AI/images# cat /etc/release OpenSolaris 2008.11 snv_99 X86 Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 08 October 2008 login: root passwd: default lab password, please contact me if you need it. root@golmaal:/var/tmp/AI/images# dhtadm -P Name Type Value ================================================== 0100144F40C040 Macro :Include=golmaal:BootSrvA=172.20.64.98:BootFile=0100144F40C040:GrubMenu=menu.lst.0100144F40C040: dhcp_macro_install_service Macro :Include=golmaal:BootSrvA=172.20.64.98:BootFile=install_service:GrubMenu=menu.lst.install_service: 172.20.0.0 Macro :Subnet=255.255.0.0:Router=172.20.64.248:Broadcst=172.20.255.255:NISdmain="boulder.Central.Sun.COM":NISservs=172.20.25.1: golmaal Macro :Include=Locale:Timeserv=172.20.64.98:LeaseTim=86400:LeaseNeg: Locale Macro :UTCoffst=-28800: GrubMenu Symbol Site,150,ASCII,1,0 root@golmaal:/var/tmp/AI/images# root@golmaal:/var/tmp/AI/images# pntadm -P 172.20.0.0 Client ID Flags Client IP Server IP Lease Expiration Macro Comment 0100144F40C040 00 172.20.64.108 172.20.64.98 02/29/2008 dhcp_macro_install_service 0100144FD48635 00 172.20.64.109 172.20.64.98 02/29/2008 dhcp_macro_install_service 00 00 172.20.64.107 172.20.64.98 Zero dhcp_macro_install_service 00 00 172.20.64.106 172.20.64.98 Zero dhcp_macro_install_service 00 00 172.20.64.105 172.20.64.98 Zero dhcp_macro_install_service 00 00 172.20.64.104 172.20.64.98 Zero dhcp_macro_install_service 00 00 172.20.64.103 172.20.64.98 Zero dhcp_macro_install_service 00 00 172.20.64.102 172.20.64.98 Zero dhcp_macro_install_service 00 00 172.20.64.101 172.20.64.98 Zero dhcp_macro_install_service 00 00 172.20.64.100 172.20.64.98 Zero dhcp_macro_install_service root@golmaal:/var/tmp/AI/images# client system: khet(172.20.64.151) system is still in failed state. login: root passwd: opensolaris Steps used to get to this condition: - install AI server from live CD build 99b reteived from nana.eng - added the following packages: root@golmaal:~# pkg install SUNWdhcs DOWNLOAD PKGS FILES XFER (MB) Completed 1/1 22/22 0.38/0.38 PHASE ACTIONS Install Phase 46/46 PHASE ITEMS Reading Existing Index 9/9 Indexing Packages 1/1 root@golmaal:~# pkg install SUNWapch22 DOWNLOAD PKGS FILES XFER (MB) Completed 1/1 876/876 4.04/4.04 PHASE ACTIONS Install Phase 997/997 PHASE ITEMS Reading Existing Index 9/9 Indexing Packages 1/1 root@golmaal:~# pkg install SUNWpysqlite DOWNLOAD PKGS FILES XFER (MB) Completed 1/1 23/23 0.08/0.08 PHASE ACTIONS Install Phase 33/33 PHASE ITEMS Reading Existing Index 9/9 Indexing Packages 1/1 root@golmaal:~# Installed pkg xsplat.central:/export/backup/SUNWpython-lxml Installed pkg from local build with latest updates as of 10/28/08 ~ 10 am MST /net/emerger/export/slim_clone_ws/packages/i386/nightly-nd/SUNWinstalladm-tools root@golmaal:~# installadm create-service -n install_service -s /var/tmp/AI/images/AutoInstall.iso /var/tmp/AI/targets/AutoInstall installadm create-service -n install_service -s /var/tmp/AI/images/AutoInstall.iso /var/tmp/AI/targets/AutoInstall installadm create-client -e 0:14:4f:40:c0:40 -t /var/tmp/AI/targets/AutoInstall -n install_service reboot client
Created an attachment (id=676) [details] install_log from installation attempt. attached install_log
The target instantiation is successful. The installation fails when the it is trying to initialize IPS. From the install_log: <OM Oct 28 13:54:08> Transfer process initiated <TRANSFER_MOD_E Oct 28 13:54:10> Unable to initialize the pkg image area at /a <TRANSFER_MOD Oct 28 13:54:10> TValueError or TABort <TRANSFERMOD Oct 28 13:54:10> IPS initialization failed
Hi Rich, It looks like Broadcast was miss-set as 172.20.255.255 (opposed to 172.20.65.255), and Subnet was miss-set as 172.20.0.0 (opposed to 172.20.65.0). These seem like bugs I remember in the DHCP server, but I don't recall their Bugster ID's. Otherwise, I added a DNSserv entry to your network macro too.
I have confirmed that fixing dhcp info (i.e. forcing DNS as the naming service) and also the netmask/broadcast, fixes this issues.
Given that the install failure was caused due to nameservices being unavailable, this defect should be closed.
(In reply to comment #3) > Hi Rich, > > It looks like Broadcast was miss-set as 172.20.255.255 (opposed to > 172.20.65.255), and Subnet was miss-set as 172.20.0.0 (opposed to 172.20.65.0). > These seem like bugs I remember in the DHCP server, but I don't recall their > Bugster ID's. > These aren't DHCP bugs per se, but user error. You must ensure that the correct subnet mask is in the netmasks table in order for the correct entries to be made in the macros.
(In reply to comment #6) > (In reply to comment #3) > > Hi Rich, > > > > It looks like Broadcast was miss-set as 172.20.255.255 (opposed to > > 172.20.65.255), and Subnet was miss-set as 172.20.0.0 (opposed to 172.20.65.0). > > These seem like bugs I remember in the DHCP server, but I don't recall their > > Bugster ID's. > > > > These aren't DHCP bugs per se, but user error. You must ensure that the > correct subnet mask is in the netmasks table in order for the correct entries > to be made in the macros. I think, in this case, we need to ensure the user has their network in their /etc/netmasks file. Otherwise, if I recall correctly, dhtadm/pntadm will create a class B network by default.
> > It looks like Broadcast was miss-set as 172.20.255.255 (opposed to > > 172.20.65.255), and Subnet was miss-set as 172.20.0.0 (opposed to 172.20.65.0). > These aren't DHCP bugs per se, but user error. You must ensure that the > correct subnet mask is in the netmasks table in order for the correct entries > to be made in the macros. I think, in this case, we need to ensure the user has their network in their /etc/netmasks file. Otherwise, if I recall correctly, dhtadm/pntadm will create a class B network by default.
Could the submitter follow up on this...retry with 200811 AI image and follow the suggestions offered.
I reran this installation and followed instructions contained in this bug report. I had to modify the following files: /etc/resolv.conf -> adding ip's for dns servers /etc/nsswitch.conf -> modifying the netmasks parameter /etc/netmasks -> adding correct netmask for subnet. With this in place the dhcp and network tables were created correctly and installation was successful. -bash-3.2# dhtadm -P Name Type Value ================================================== 0100144F40C040 Macro :Include=golmaal:BootSrvA=172.20.64.98:BootFile=0100144F40C040:GrubMenu=menu.lst.0100144F40C040: dhcp_macro_Test1 Macro :Include=golmaal:BootSrvA=172.20.64.98:BootFile=Test1:GrubMenu=menu.lst.Test1: 172.20.64.0 Macro :Subnet=255.255.255.0:Router=172.20.64.248:Broadcst=172.20.64.255:NISdmain="boulder.Central.Sun.COM":NISservs=172.20.25.1: golmaal Macro :Include=Locale:Timeserv=172.20.64.98:LeaseTim=86400:LeaseNeg:DNSdmain="Central.Sun.COM":DNSserv=129.147.9.5 129.147.4.5: Locale Macro :UTCoffst=-28800: GrubMenu Symbol Site,150,ASCII,1,0 -bash-3.2# pntadm -L 172.20.64.0 -bash-3.2# pntadm -P 172.20.64.0 Client ID Flags Client IP Server IP Lease Expiration Macro Comment 0100144FD48635 00 172.20.64.108 172.20.64.98 12/23/2008 dhcp_macro_Test1 0100144F40C040 00 172.20.64.109 172.20.64.98 12/23/2008 dhcp_macro_Test1 00 00 172.20.64.107 172.20.64.98 Zero dhcp_macro_Test1 00 00 172.20.64.106 172.20.64.98 Zero dhcp_macro_Test1 00 00 172.20.64.105 172.20.64.98 Zero dhcp_macro_Test1 00 00 172.20.64.104 172.20.64.98 Zero dhcp_macro_Test1 00 00 172.20.64.103 172.20.64.98 Zero dhcp_macro_Test1 00 00 172.20.64.102 172.20.64.98 Zero dhcp_macro_Test1 00 00 172.20.64.101 172.20.64.98 Zero dhcp_macro_Test1 00 00 172.20.64.100 172.20.64.98 Zero dhcp_macro_Test1 -bash-3.2# I closing out this defect as invalid.