Command 'nodeset' is failed after associating osdistro update. This command will check whether netboot image 'initrd.gz' exists in '$pkgdir/install/netboot/'. Attribute '$pkgdir' is get from linuximage table, it is wrong after associating osdistro update. As an example:
root@ppcmastera:~# lsdef -t osimage -o ubuntu14.04.1-ppc64el-stateful-compute -i pkgdir
Object name: ubuntu14.04.1-ppc64el-stateful-compute
pkgdir=/install/ubuntu14.04.1/ppc64el,/install/osdistroupdates/ubuntu14.04.1-ppc64el-2015-02-13_06-06-32
root@ppcmastera:~# nodeset nodea1 osimage=ubuntu14.04.1-ppc64el-stateful-compute
Error: The network boot initrd.gz is not found in /install/ubuntu14.04.1/ppc64el,/install/osdistroupdates/ubuntu14.04.1-ppc64el-2015-02-13_06-06-32/install/netboot. This is provided by Ubuntu, please download and retry.
Error: Some nodes failed to set up install resources on server ppcmastera, aborting
you are right... The first directory in the path should be used as the pkgdir
checked in fix:
6645b2a..16dfcb2 2.9 -> 2.9
147185c..21caa0d master -> master
Unit test:
nodeset c910f03c04k14 osimage=ubuntu14.04.2-ppc64el-stateful-compute
Error: The network boot initrd.gz is not found in /install/myotherpkg/install/netboot. This is provided by Ubuntu, please download and retry.
Error: Some nodes failed to set up install resources on server c910f03c04k15, aborting
lsdef -t osimage -o ubuntu14.04.2-ppc64el-stateful-compute -i pkgdir
Object name: ubuntu14.04.2-ppc64el-stateful-compute
pkgdir=/install/ubuntu14.04.2/ppc64el,/install/myotherpkg
After fix:
nodeset c910f03c04k14 osimage=ubuntu14.04.2-ppc64el-stateful-compute
c910f03c04k14: install ubuntu14.04.2-ppc64el-compute
Last edit: Victor Hu 2015-03-04
pass the test