Menu

#3877 [FVT]genimage return confusing error message when xCAT-IBMhpc is not installed

2.8.4
pending
yangsong
deployment (57)
4
2013-11-18
2013-11-05
BaiYuan
No

confusing error message when xCAT-IBMhpc is not installed.After I installed xCAT-IBMhpc-2.8.3-snap201310090314.noarch, the error is gone, genimage run successfully.

xcat-core]# genimage rhels6.4-ppc64-netboot-compute
Generating image:
cd /opt/xcat/share/xcat/netboot/rh; ./genimage -a ppc64 -o rhels6.4 -p compute --permission 755 --srcdir /install/rhels6.4/ppc64 --pkglist /install/custom/netboot/rh/compute.pkglist --otherpkgdir "/install/post/otherpkgs/rhels6.4/ppc64" --otherpkglist /install/osimages/rhels6.4-ppc64-netboot-compute/kits/KIT_DEPLOY_PARAMS.otherpkgs.pkglist,/install/custom/netboot/rh/compute.otherpkgs.pkglist,/install/osimages/rhels6.4-ppc64-netboot-compute/kits/KIT_COMPONENTS.otherpkgs.pkglist --postinstall /opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.postinstall,/install/osimages/rhels6.4-ppc64-netboot-compute/kits/KIT_COMPONENTS.postinstall --rootimgdir /install/netboot/rhels6.4/ppc64/compute --tempfile /tmp/xcat_genimage.28381 rhels6.4-ppc64-netboot-compute
mknod: /install/netboot/rhels6.4/ppc64/compute/rootimg/dev/null': No such file or directory sh: line 0: cd: /install/netboot/rhels6.4/ppc64/compute/rootimg/etc/rc3.d: No such file or directory sh: line 0: cd: /install/netboot/rhels6.4/ppc64/compute/rootimg/etc/rc3.d: No such file or directory sh: /install/netboot/rhels6.4/ppc64/compute/rootimg/sbin/fsck.nfs: No such file or directory chmod: cannot access/install/netboot/rhels6.4/ppc64/compute/rootimg/sbin/fsck.nfs': No such file or directory
chroot: failed to run command rpm': No such file or directory chroot: failed to run commandrpm': No such file or directory
couldn't find the kernel file matched 2.6.32-358.el6.ppc64 in /install/netboot/rhels6.4/ppc64/compute/rootimg/boot at ./genimage line 70.

4 ~]# lsxcatd -v
Version 2.8.3 (built Mon Nov 4 22:24:48 EST 2013)

Discussion

  • yangsong

    yangsong - 2013-11-05

    I don't think the "df" result show that tmpfs is full

     
  • BaiYuan

    BaiYuan - 2013-11-06
    • summary: [FVT]tmpfs is full, genimage give out confusing error message --> [FVT]genimage return confusing error message when xCAT-IBMhpc is not installed
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -tmpfs space is full, genimage give out confusing error message; error message should be enhanced. Or genimage should check space.
    +confusing error message when xCAT-IBMhpc is not installed.After I installed xCAT-IBMhpc-2.8.3-snap201310090314.noarch, the error is gone, genimage run successfully. 
    
     xcat-core]# genimage rhels6.4-ppc64-netboot-compute
     Generating image:
    @@ -12,7 +12,5 @@
     chroot: failed to run command `rpm': No such file or directory
     couldn't find the kernel file matched 2.6.32-358.el6.ppc64 in /install/netboot/rhels6.4/ppc64/compute/rootimg/boot at ./genimage line 70.
    
    -xcat-core]# df
    -Filesystem           1K-blocks      Used Available Use% Mounted on
    -/dev/sda3             99590656  67874896  26656844  72% /
    -tmpfs                  6126976         0   6126976   0% /dev/shm
    +4 ~]# lsxcatd -v
    +Version 2.8.3 (built Mon Nov  4 22:24:48 EST 2013)
    
    • assigned_to: Guang Cheng Li --> yangsong
    • Priority: 3 --> 4
     
  • BaiYuan

    BaiYuan - 2013-11-06

    Yang song,
    Sorry for my mistake.
    Since xCAT-IBMhpc rpm is not mandatory installation,if there is no xCAT-IBMhpc,in some situation, genimage will fail and return confusing error message.
    You can debug using my environment.

     
  • yangsong

    yangsong - 2013-11-06

    [root@p7hvjs22r04 netboot]# lsdef -t osimage -o rhels6.4-ppc64-netboot-compute
    Object name: rhels6.4-ppc64-netboot-compute
    exlist=/install/custom/netboot/rh/compute.exlist
    imagetype=linux
    osarch=ppc64
    osdistroname=rhels6.4-ppc64
    osname=Linux
    osvers=rhels6.4
    otherpkgdir=/install/post/otherpkgs/rhels6.4/ppc64
    permission=755
    pkgdir=/install/rhels6.4/ppc64
    pkglist=/install/custom/netboot/rh/compute.pkglist
    postinstall=/opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.postinstall
    profile=compute
    provmethod=netboot
    rootimgdir=/install/netboot/rhels6.4/ppc64/compute
    synclists=/install/custom/netboot/rh/compute.synclist

    [root@p7hvjs22r04 netboot]# cat /install/custom/netboot/rh/compute.pkglist

    INCLUDE:/opt/xcat/share/xcat/IBMhpc/IBMhpc.rhels6.ppc64.pkglist

    INCLUDE:/opt/xcat/share/xcat/IBMhpc/compilers/compilers.rhels6.pkglist

    INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe-1200.rhels6.ppc64.pkglist

    [root@p7hvjs22r04 netboot]#

    If the xCAT-IBMhpc is not installed, the files included in pkglist do not exist, so the pkglist is empty.

    The error message should be more clear.

     
  • yangsong

    yangsong - 2013-11-06
    • Milestones: 2.8.3 --> 2.8.4
     
  • yangsong

    yangsong - 2013-11-06

    fixed in 2.9:
    commit 88926480a256bd20af043fb59782f0f21f750d3c
    Merge: 7ba5977 4624c6b
    Author: immarvin yangsbj@cn.ibm.comq
    Date: Wed Nov 6 01:45:42 2013 -0800

    Merge branch 'master' of ssh://git.code.sf.net/p/xcat/xcat-core
    

    commit 7ba59778695324a4fb1b57e49dba34a3be496125
    Author: immarvin yangsbj@cn.ibm.comq
    Date: Wed Nov 6 01:45:12 2013 -0800

    fix #3877 [FVT]genimage return confusing error message when xCAT-IBMhpc is not installed
    
     
  • yangsong

    yangsong - 2013-11-18
    • status: open --> pending
     
  • yangsong

    yangsong - 2013-11-18

    fixed in 2.8.4:
    commit 43bc2d1e8eddaf2336efc494409f5bbc6660e197
    Author: immarvin yangsbj@cn.ibm.comq
    Date: Wed Nov 6 01:45:12 2013 -0800

    fix #3877 [FVT]genimage return confusing error message when xCAT-IBMhpc is not installed
    
     
MongoDB Logo MongoDB