[xcat-user] CentOS 5 post-installation

Egan Ford egan at sense.net
Tue Mar 18 17:39:55 MDT 2008


Yeah I see the problem.

When postage is run it uses $(osver) to assign OSVER, and then passes that
to postrules for processing postscripts.tab.  So in this case for CentOS 5
everything should be assigned rhel5 since that is the flavor.

BTW, in postscripts.tab you can pass arguments to syncdirs, e.g.:

OSVER=centos.* or OSVER=rh.* or OSVER=sles.* or OSVER=suse.* {
        syncdirs blah
}

OR:

NODERANGE=foo {
	syncdirs blah bleh bar/foo centos5/x86_64
}

If you use RH5 and CentOS5 you may have problems with this, but if CentOS
only then this will work without changes to any scripts.  Only problem is
that syncdirs will still try rhel5 first before your arguments.

The decision to lump CentOS5 under RHEL5 was to save time, for most they are
either a COS5 or a RHEL5 shop, not both.

The best solution would be to have both COSVER and OSVER available for all
post scripts.  With minor changes to postage and postrules that can be done.
Then postscripts.tab could be used with COSVER rules as well.  Some minor
changes to syncdirs and a few scripts would also be required.  E.g. syncdirs
should really use COSVER.

Let me know what you want to do long term.

> -----Original Message-----
> From: xcat-user-bounces at lists.xcat.org 
> [mailto:xcat-user-bounces at lists.xcat.org] On Behalf Of Michael Bugaev
> Sent: Tuesday, March 18, 2008 3:11 PM
> To: xCAT Users Mailing list
> Subject: Re: [xcat-user] CentOS 5 post-installation
> Importance: High
> 
> 
> Thanks, Egan, for suggestion.
> It did fix "offending_script", in our case "syncdirs"... but 
> "postage" 
> script itself needed to be edited as well,
> in order to make it to pick up right post-scripts from 
> postscripts.tab. The questions is: is it safe to change 
> $OSVER to $(cosver) in, say, 
> syncdirs, but more importantly:
> $(osver) to $(cosver) in "postage"? Would it affect other 
> installs, e.g. 
> RHEL4?
> 
> Thanks,
> Michael
> 
> Egan Ford wrote:
> > I think I was trying to make it easier to support Centos 5 
> and RHEL5.  
> > The lib/functions osver returns CENTOS5 as rhel5, but the cosver 
> > function returns centos5.
> >
> > OSVER is the "flavor" and COSVER is the "Correct OS Version"
> >
> > To fix for your setup type:
> >
> > cd $XCATROOT/install/postscripts
> > cp offending_script to custom/
> > cd custom
> > edit offending_script
> >
> > Change $OSVER to $(cosver)
> >
> > Let me know if this does not fix it.
> >
> >   
> >> -----Original Message-----
> >> From: xcat-user-bounces at lists.xcat.org
> >> [mailto:xcat-user-bounces at lists.xcat.org] On Behalf Of 
> Michael Bugaev
> >> Sent: Tuesday, March 18, 2008 10:49 AM
> >> To: xCAT Users Mailing list
> >> Subject: [xcat-user] CentOS 5 post-installation
> >> Importance: High
> >>
> >>
> >> Hi All,
> >>
> >> We stumbled across the following behavior when installed
> >> CentOS 5 on one 
> >> of our blades.
> >> Interesting things start happening while in the 
> post-install stage. 
> >> (install itself is fine)
> >> The output of "postrules -n <blade>" is correct, i.e. it 
> reads right 
> >> section from postscripts.tab file,
> >> however when blade starts executing post-install scripts, 
> it picks up 
> >> completely different section.
> >> Just looking at the output from "syncdirs" post-script for 
> >> example, it 
> >> seems that for some reason OSVER variable
> >> is not "centos5" anymore, but "rhels5" (it tries to sync from 
> >> "rhels5", 
> >> etc.).
> >> How come? Any insights would be appreciated.
> >>
> >> Thanks,
> >> Michael
> >>
> >> _______________________________________________
> >> xcat-user mailing list
> >> xcat-user at lists.xcat.org
> >> http://www.xcat.org/mailman/listinfo/xcat-user
> >>     
> >
> > _______________________________________________
> > xcat-user mailing list
> > xcat-user at lists.xcat.org 
> > http://www.xcat.org/mailman/listinfo/xcat-user
> >
> >   
> _______________________________________________
> xcat-user mailing list
> xcat-user at lists.xcat.org 
> http://www.xcat.org/mailman/listinfo/xcat-user




More information about the xcat-user mailing list