Looking in those files, I see in xcatd:
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
And in restartxcatd:
BEGIN
{
$::XCATROOT =
$ENV{'XCATROOT'} ? $ENV{'XCATROOT'}
: -d '/opt/xcat' ? '/opt/xcat'
: '/usr';
}
… So I’m not sure why they are not being set.
Regards,
Christian Caruthers
Lenovo Professional Services
Mobile: 757-289-9872
From: Mark Gurevich <[email protected]>
Sent: Tuesday, June 11, 2019 2:27 PM
To: xCAT Users Mailing list <[email protected]>
Subject: [External] Re: [xcat-user] Includes not parsing when running nodeset
I think XCATROOT gets set by "sourcing" /etc/profile.d/xcat.sh from
/opt/xcat/sbin/xcatd and /opt/xcat/sbin/restartxcatd
Mark Gurevich
Poughkeepsie Development Lab
HPC Software Development - xCAT
"If we knew what it was we were doing, it would not be called research, would
it?"
--Albert Einstein
[Inactive hide details for Christian Caruthers ---06/11/2019 01:58:44
PM---After some looking around, it appears that the xcat d]Christian Caruthers
---06/11/2019 01:58:44 PM---After some looking around, it appears that the xcat
daemon is not picking up the XCATROOT environmen
From: Christian Caruthers <[email protected]<mailto:[email protected]>>
To: xCAT Users Mailing list
<[email protected]<mailto:[email protected]>>
Date: 06/11/2019 01:58 PM
Subject: Re: [xcat-user] [External] Includes not parsing when running nodeset
________________________________
After some looking around, it appears that the xcat daemon is not picking up
the XCATROOT environment variable. Looking at the system script, it checks for
a file /etc/sysconfig/xcat. This file does not exist, and I cannot find it in
the xCAT RPMs, so I’m not sure why it’s being called to. Either way, adding
XCATROOT=/opt/xcat, and restarting the daemon appears to have resolved the
issue.
Big question:
It’s still not clear what was causing xcatd to ignore XCATROOT. As I said, the
/etc/sysconfig/xcat file doesn’t appear in my xCAT rpms. Is it created by a
scriptlet or something?
From: Christian Caruthers <[email protected]<mailto:[email protected]>>
Sent: Tuesday, June 11, 2019 12:26 PM
To: xCAT Users Mailing list
([email protected]<mailto:[email protected]>)
<[email protected]<mailto:[email protected]>>
Subject: [External] [xcat-user] Includes not parsing when running nodeset
When I run nodeset <node> osimage=rhels7.5-x86_64-install-compute
#INCLUDEBAD:cannot open /share/xcat/install/scripts/pre.rh.rhels7#
#INCLUDEBAD:cannot open /share/xcat/install/scripts/post.xcat#
#INCLUDEBAD:cannot open /share/xcat/install/scripts/post.rhels7#
This is the default xCAT template that has been untouched. The XCATROOT
variable is set to /opt/xcat
Running Version 2.14.3.lenovo5 (git commit
06d7097f42eca03db70c9eb93b8abeaf8ca1c2be)
_______________________________________________
xCAT-user mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user