Thanks Lisa. I figured out what my problem was (see other reply I sent earlier).

However, there's code in the otherpkgs postscript that is not following what the script header states:

#OTHERPKGDIR is set only when the provmethod is the os image name
#when it is not set, we need to figure it out here
if [ -z "$OTHERPKGDIR" ]; then
    if [ $mounted -eq 0 ]; then
        OTHERPKGDIR="$NFSSERVER$INSTALLDIR/post/otherpkgs/$OSVER/$ARCH"
    else
        OTHERPKGDIR="$INSTALLDIR/post/otherpkgs/$OSVER/$ARCH"
    fi

I *have* set OTHERPKGDIR in the osimage, and it seems to be working. I do not want to back myself into a corner though by doing something that is not supported.

So, I guess my question now is, "is configuring otherpkgdir actually supported, or is this a variable that is not used right now?"





On 1/20/2014 8:45 AM, Lissa Valletta wrote:

Took a look at the otherpkgs   postscript which runs when you run updatenode. Look at the header
#=head1  otherpkgs  - only runs on Linux
#=head2  It gets the extra rpms and install/update them.
#        The environment variable OTHERPKGS contains the rpms to be installed/updated.
#        On MN, You need to:
#        1. put rpms under /install/post/otherpkgs/os/arch directory where 'os' and 'arch'
#           can be found in the nodetype table.
#        2. put the name of the packages to /opt/xcat/share/xcat/netboot(install)/platform
#           directory. The file name is one of the following:
#              profile.os.arch.otherpkgs.pkglist
#              profile.os.otherpkgs.pkglist
#              profile.arch.otherpkgs.pkglist
#              profile.otherpkgs.pkglist
#   The install/deployment process will pick up the rpms and install them on the nodes.
#   However, if the nodes have already installed and up and running, you can run the following
#   command to have the extra rpms installed:
#       updatenode noderange otherpkgs
#

Lissa K. Valletta
8-3/B10
Poughkeepsie, NY 12601
(tie 293) 433-3102



Inactive hide details for Russell Jones ---01/17/2014
          01:41:53 PM---Well, genimage seems to pick up my change just
          fine - it's Russell Jones ---01/17/2014 01:41:53 PM---Well, genimage seems to pick up my change just fine - it's just  updatenode that doesn't. Here's the

From: Russell Jones <russell-l...@jonesmail.me>
To: xcat-user@lists.sourceforge.net,
Date: 01/17/2014 01:41 PM
Subject: Re: [xcat-user] xCAT ignoring my otherpkgdir setting





Well, genimage seems to pick up my change just fine - it's just updatenode that doesn't. Here's the temp yum.conf that is created during otherpkgs time with genimage:

[otherpkgs1]
name=otherpkgs1
baseurl=
file:///install/post/otherpkgs/centos5.4-new-kernel/x86_64/v5.4.8-dl-compute//.
gpgpcheck=0

[otherpkgs2]
name=otherpkgs2
baseurl=
file:///install/post/otherpkgs/centos5.4-new-kernel/x86_64/v5.4.8-dl-compute//dell
gpgpcheck=0


We are wanting to separate out the otherpkgs based on image name. Being able to configure otherpkgdir is a good feature that seems to work fine during genimage time - I would highly encourage you guys continue with this feature and push it to the otherpkgs postscript.



On 1/17/2014 12:25 PM, Lissa Valletta wrote:

.


Take a look at this documentation ,   the otherpkgdir always ends with the architecture directory and then the directories under that contain the rpms.   I have never seen anything different so this may be a limitation in our code.


 In other words in your case it should be
otherpkgdir=/install/post/otherpkgs/centos5.4-new-kernel/x86_64

https://sourceforge.net/apps/mediawiki/xcat/index.php?title=XCAT_iDataPlex_Cluster_Quick_Start#Installing_Additional_Packages_Using_an_Otherpkgs_Pkglist





Lissa K. Valletta
8-3/B10
Poughkeepsie, NY 12601
(tie 293) 433-3102



Inactive hide details for Russell Jones ---01/17/2014
        12:42:10 PM---Hi all, I am manually setting my otherpkgdir for
        an osimageRussell Jones ---01/17/2014 12:42:10 PM---Hi all, I am manually setting my otherpkgdir for an osimage that a node belongs

From:
Russell Jones <russell-l...@jonesmail.me>
To:
xCAT Users Mailing list <xcat-user@lists.sourceforge.net>,
Date:
01/17/2014 12:42 PM
Subject:
[xcat-user] xCAT ignoring my otherpkgdir setting




Hi all,

I am manually setting my otherpkgdir for an osimage that a node belongs to. However when running "updatenode $node -S", the setting is being ignored. The problem is bolded below.

Example is below, how do I get this thing to look at the right path?


[root@master v5.4.8-dl-compute]# chdef -t osimage v5.4.8-dl-compute otherpkgdir=/install/post/otherpkgs/centos5.4-new-kernel/x86_64/v5.4.8-dl-compute/
1 object definitions have been created or modified.

[root@master v5.4.8-dl-compute]# lsdef -t osimage v5.4.8-dl-compute
Object name: v5.4.8-dl-compute
  exlist=/install/custom/netboot/centos/v5.4.8-dl-compute.exlist
  groups=all
  imagetype=linux
  kerneldir=/install/netboot/centos5.4-new-kernel/x86_64/v5.4.8-dl-compute
  netdrivers=libphy,tg3,bnx2,e1000,dca,8021q,igb,forcedeth,squashfs,aufs,loop
  nodebootif=eth0
  osarch=x86_64
  osdistroname=centos5.4-new-kernel-x86_64
  osname=Linux
  osvers=centos5.4-new-kernel
  otherpkgdir=/install/post/otherpkgs/centos5.4-new-kernel/x86_64/v5.4.8-dl-compute/
  otherpkglist=/install/custom/netboot/centos/v5.4.8-dl-compute.otherpkgs.pkglist
  pkgdir=/install/centos5.4-new-kernel/x86_64/
  pkglist=/install/custom/netboot/centos/v5.4.8-dl-compute.pkglist
  postinstall=/install/custom/netboot/centos/v5.4.8-dl-compute.postinstall
  postscripts=remoteshell,localrepo5,hardeths,postage.sh
  profile="">   provmethod=netboot
  rootimgdir=/install/netboot/centos5.4-new-kernel/x86_64/v5.4.8-dl-compute


[root@master v5.4.8-dl-compute]# lsdef c100n4
Object name: c100n4
<snip>
  profile="">   provmethod=v5.4.8-dl-compute


[root@master v5.4.8-dl-compute]# updatenode c100n4 -S
Performing software maintenance operations. This could take a while, if there are packages to install.

c100n4: Fri Jan 17 11:32:04 CST 2014 Running postscript: ospkgs
c100n4: Postscript: ospkgs exited with code 0
c100n4: Fri Jan 17 11:32:57 CST 2014 Running postscript: otherpkgs
c100n4: NFSSERVER=master

c100n4: OTHERPKGDIR=master/install/post/otherpkgs/centos5.4-new-kernel/x86_64

c100n4: Loaded plugins: changelog, fastestmirror, keys, list-data, tmprepo, verify
c100n4: Cleaning up Everything
c100n4: Loaded plugins: changelog, fastestmirror, keys, list-data, tmprepo, verify
c100n4: Cleaning up Everything
c100n4: Cleaning up list of fastest mirrors
c100n4:  yum -y upgrade
c100n4: Loaded plugins: changelog, fastestmirror, keys, list-data, tmprepo, verify
c100n4: Loading mirror speeds from cached hostfile
c100n4:
http://master/install/post/otherpkgs/centos5.4-new-kernel/x86_64/dell/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
c100n4: Trying other mirror.
c100n4: Error: Cannot retrieve repository metadata (repomd.xml) for repository: xcat-otherpkgs0. Please verify its path and try again
<snip>
c100n4: Postscript: otherpkgs exited with code 34
c100n4: Running of Software Maintenance has completed.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.

http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk_______________________________________________
xCAT-user mailing list

xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user



------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user



------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to