Show me the version of xCAT by 'nodels -v'.
Could you show me the running message of otherpkgs during the installation
from the console? You can get it from the rcons command.
Also before running of the updatenode, you can check the content
of /tmp/mypostscript.post which is used to run the 'otherpkgs' after the
reboot of new installed node. You can run the /tmp/mypostscript.post
manually to see whether help.

Thanks
Best Regards
----------------------------------------------------------------------
 Wang Xiaopeng (王晓朋)
 IBM China System Technology Laboratory
 Tel: 86-10-82453455
 Email: [email protected]
 Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road,
Haidian District Beijing P.R.China 100193



From:   "c.y.liu" <[email protected]>
To:     xCAT Users Mailing list <[email protected]>
Date:   2011-12-21 18:25
Subject:        Re: [xcat-user] how to resolve the dependency of otherpkgs?



hi xiao peng,

thanks. as you mentioned, i checked my otherpkgs repository, it was
destroyed due to other operations.

i rebuilt the otherpkgs repository and my packages got installed.

but there is another issue occurred. after the node re-provisioned, my
packages didn't get installed. after i run "updatenode comp01 -S", the
otherpkgs scripts installed all my packages.

the otherpkgs is one of the default post boot scripts, why my packages
didn't get installed automatically?

[root@xcatm ~]# lsdef comp01
Object name: comp01
    arch=x86_64
    currchain=boot
    currstate=boot
    groups=compute-rhel-5.5-x86_64,all
    initrd=xcat/rhels5.5/x86_64/initrd.img
    installnic=eth0
    ip=192.168.10.100
    kcmdline=nofb utf8 ks=http://192.168.10.1/install/autoinst/comp01
ksdevice=eth0 noipv6
    kernel=xcat/rhels5.5/x86_64/vmlinuz
    mac=00:50:56:05:01:05
    netboot=pxe
    nfsserver=192.168.10.1
    os=rhels5.5
    postbootscripts=otherpkgs            <== here
    postscripts=syslog,remoteshell,syncfiles
    primarynic=eth0
    profile=compute-rhel-5.5-x86_64
    provmethod=install
    status=booted
    statustime=12-21-2011 18:12:31
    tftpserver=192.168.10.1


any suggestions?

thanks,

2011/12/21 Xiao Peng Wang <[email protected]>
  The code logic in the otherpkgs is that try to run the 'yum list pkg' on
  the node to see whether could find the pkg from the yum repository, if
  no, try the rpm command.
  So the problem should be that the repository of your other packages has
  problem. Could you check the output of 'yum list pkg' on your mn?

  Two hints:


        1. The packages have correct path in the otherpkgs.pkglist
        configuration file.
        2. You have run the createrepo for the path.
  Thanks
  Best Regards
  ----------------------------------------------------------------------
  Wang Xiaopeng (王晓朋)
  IBM China System Technology Laboratory
  Tel: 86-10-82453455
  Email: [email protected]
  Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road,
  Haidian District Beijing P.R.China 100193

  Inactive hide details for "c.y.liu" ---2011-12-21 11:28:34---hi ling,
  thanks for you suggestions and i tried it. but unfortunat"c.y.liu"
  ---2011-12-21 11:28:34---hi ling, thanks for you suggestions and i tried
  it. but unfortunately, it doesn't work.

  From: "c.y.liu" <[email protected]>
  To: xCAT Users Mailing list <[email protected]>
  Date: 2011-12-21 11:28
  Subject: Re: [xcat-user] how to resolve the dependency of otherpkgs?



  hi ling,

  thanks for you suggestions and i tried it. but unfortunately, it doesn't
  work.

  here is what i did:
  - i add the "yum" into
  /install/custom/install/rh/compute-rhel-5.5-x86_64.pkglist
  - i add my packages into
  /install/custom/install/rh/compute-rhel-5.5-x86_64.otherpkgs.pkglist
  - i re-provision the compute node and found that the "yum" has been
  installed.

  [root@comp01 ~]# rpm -qa | grep yum
  yum-3.2.22-26.el5
  yum-updatesd-0.9-2.el5
  yum-rhn-plugin-0.5.4-15.el5
  yum-security-1.1.16-13.el5
  yum-metadata-parser-1.1.2-3.el5

  - and i found that my packages not installed.
  - i run "updatenode comp01 -S" to update the node, but looks like
  otherpkgs script still use "rpm" to install the packages.

  [root@xcatm ~]# updatenode comp01 -S
  Performing software maintenance operations. This could take a while.

  comp01: Running postscript: ospkgs
  comp01: Running postscript: otherpkgs
  comp01: NFSSERVER=192.168.10.1
  comp01: OTHERPKGDIR=192.168.10.1/post/otherpkgs/rhels5.5/x86_64
  comp01: yum -y upgrade
  comp01: Loaded plugins: rhnplugin, security
  comp01: This system is not registered with RHN.
  comp01: RHN support will be disabled.
  comp01: Skipping security plugin, no data
  comp01: Setting up Upgrade Process
  comp01: No Packages marked for Update
  comp01:  rpm -Uvh --replacepkgs  XXX*
  comp01: error: Failed dependencies:
  ...

  my compute node is diskfull.

  did i miss any steps?

  thanks,

  On Tue, Dec 20, 2011 at 9:38 PM, Ling Gao <[email protected]> wrote:
  > I assume you have followed the instructions and
  created .otherpkgs.pkglist
  > file.
  > For stateless/statelite nodes, you need to run
  genimage/packiage/nodeset
  > again. This will install the other packages into the image. Then reboot
  the
  > nodes.
  > For diskfull nodes, if your other packages have dependencies and you
  want
  > them to be picked up automatically, then you need to install yum on the
  > nodes. If yum is not installed, it will use rpm command which does not
  > resolve dependencies.
  >
  > Ling
  >
  > Ling Gao

  ------------------------------------------------------------------------------

  Write once. Port to many.
  Get the SDK and tools to simplify cross-platform app development. Create
  new or port existing apps to sell to consumers worldwide. Explore the
  Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
  http://p.sf.net/sfu/intel-appdev
  _______________________________________________
  xCAT-user mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/xcat-user



  ------------------------------------------------------------------------------

  Write once. Port to many.
  Get the SDK and tools to simplify cross-platform app development. Create
  new or port existing apps to sell to consumers worldwide. Explore the
  Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
  http://p.sf.net/sfu/intel-appdev
  _______________________________________________
  xCAT-user mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------

Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

<<inline: graycol.gif>>

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to