Menu

#3748 lsdef --osimage does not pick up postscripts defined in the image

2.8.3
closed
def* (3)
5
2013-09-19
2013-08-15
No

ldef --osimage does not pick up defined postscripts in the osimage . postbootscripts work.
It would be really nice in 2.9, if we only had one line for postscripts and postbootscripts in the output with the correct order of execution.

Object name: rhels6.3-ppc64-netboot-compute
exlist=/opt/xcat/share/xcat/netboot/rh/compute.exlist
imagetype=linux
osarch=ppc64
osdistroname=rhels6.3-ppc64
osname=Linux
osvers=rhels6.3
otherpkgdir=/install/post/otherpkgs/rhels6.3/ppc64
permission=755
pkgdir=/install/rhels6.3/ppc64
pkglist=/opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.pkglist
postbootscripts=mypostbootscript
postinstall=/opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.postinstall
postscripts=testpostscript
profile=compute
provmethod=netboot
rootfstype=ramdisk
rootimgdir=/install/netboot/rhels6.3/ppc64/compute
synclists=/root/lissa/testsync/mysynclist

[manage-02][/root]> lsdef compute-01 --osimage
Object name: compute-01
arch=ppc64
cons=hmc
currstate=netboot rhels6.3-ppc64-compute
groups=lpar,all,compute
hcp=hmc186
hwtype=lpar
id=2
initrd=xcat/osimage/rhels6.3-ppc64-netboot-compute/initrd-stateless.gz
installnic=mac
ip=60.0.0.50
kcmdline=imgurl=http://service-03-eth3:80//install/netboot/rhels6.3/ppc64/compute/rootimg.gz XCAT=service-03-eth3:3001 NODE=compute-01 BOOTIF=96:b7:80:f0:a9:03
kernel=xcat/osimage/rhels6.3-ppc64-netboot-compute/kernel
mac=96:b7:80:f0:a9:03
mgt=hmc
netboot=yaboot
nfsserver=service-03-eth3
nichostnamesuffixes.eth1=-eth1|-eth1:1
nicips.eth0=172.20.101.2
nicips.ib0=168.1.0.2
nicips.ib1=168.2.0.2
nicnetworks.eth1=60_0_0_0-255_255_255_0|60_0_0_0-255_255_255_0
nictypes.eth1=ethernet|ethernet
nodetype=ppc,osi
os=rhels6.3
parent=Server-8233-E8B-SN100538P
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles,confignics -s
pprofile=compute
primarynic=mac
profile=compute
provmethod=rhels6.3-ppc64-netboot-compute
servicenode=service-03
status=failed
statustime=05-16-2013 04:55:31
tftpserver=service-03-eth3
updatestatus=synced
updatestatustime=06-27-2013 08:24:46
xcatmaster=service-03-eth3
rootimgdir=/install/netboot/rhels6.3/ppc64/compute
postinstall=/opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.postinstall
permission=755
osvers=rhels6.3
pkglist=/opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.pkglist
rootfstype=ramdisk
exlist=/opt/xcat/share/xcat/netboot/rh/compute.exlist
osname=Linux
osarch=ppc64
imagetype=linux
otherpkgdir=/install/post/otherpkgs/rhels6.3/ppc64
postbootscripts=mypostbootscript
synclists=/root/lissa/testsync/mysynclist
pkgdir=/install/rhels6.3/ppc64
osdistroname=rhels6.3-ppc64

Discussion

  • Guang Cheng Li

    Guang Cheng Li - 2013-09-12
    • status: open --> pending
     
  • Guang Cheng Li

    Guang Cheng Li - 2013-09-12

    For the first issue "ldef --osimage does not pick up defined postscripts in the osimage", I could not recreate with the latest code. Do you still have the environment that could recreate this issue?

    [root@ls21n01 ~]# lsdef -t osimage rhels6.4-x86_64-install-storage | grep scripts
    postbootscripts=myscript1
    postscripts=myscript
    [root@ls21n01 ~]# lsdef rhcn3 --osimage | grep scripts
    postbootscripts=otherpkgs
    postscripts=syslog,remoteshell,syncfiles
    postbootscripts=myscript1
    postscripts=myscript
    [root@ls21n01 ~]#

    For the second topic, I agree that this is something useful to do, I added a 2.9 wishlist item.

     
  • Guang Cheng Li

    Guang Cheng Li - 2013-09-18
     
  • Guang Cheng Li

    Guang Cheng Li - 2013-09-18

    Figured out the issue, lsdef only lists the osimage attributes that not defined with the node itself, this is not the right thing to do. Should list all the osimage attributes.

    Fixed in 2.8 and 2.9.
    2.8: f79ec9bdbdc4d10b8515fe0cb97109fb42ad4fde
    2.9: bfe3cdad053a9e981f5094f1de84ad28cb820a14

     
  • Lissa Valletta

    Lissa Valletta - 2013-09-19
    • status: pending --> closed
     
MongoDB Logo MongoDB