From what I can tell, it’s not pulling it from my environment, though it is set by the xcat.sh file in /etc/profile.d installed by the xCAT rpm):
[root@xcat ~]# cat /etc/profile.d/xcat.sh XCATROOT=/opt/xcat PATH=$XCATROOT/bin:$XCATROOT/sbin:$XCATROOT/share/xcat/tools:$PATH MANPATH=$XCATROOT/share/man:$MANPATH export XCATROOT PATH MANPATH export PERL_BADLANG=0 [root@xcat ~]# echo ">>$XCATROOT<<" >>/opt/xcat<< Regards, Christian Caruthers Lenovo Professional Services Mobile: 757-289-9872 From: Kevin Keane <kke...@sandiego.edu> Sent: Tuesday, June 11, 2019 3:24 PM To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> Subject: Re: [xcat-user] [External] Re: Includes not parsing when running nodeset I notice that apparently, XCATROOT also does not pick up any of the default values in that statement. Maybe XCATROOT is set, but to a blank string? Can you do echo ">>$XCATROOT<<" immediately before running restartxcatd? Also make sure that the XCATROOT variable is exported, not just set. _______________________________________________________________________ Kevin Keane | Systems Architect | University of San Diego ITS | kke...@sandiego.edu<mailto:kke...@sandiego.edu> Maher Hall, 192 |5998 Alcalá Park | San Diego, CA 92110-2492 | 619.260.6859 | Text: 760-721-8339 REMEMBER! No one from IT at USD will ever ask to confirm or supply your password. These messages are an attempt to steal your username and password. Please do not reply to, click the links within, or open the attachments of these messages. Delete them! On Tue, Jun 11, 2019 at 11:31 AM Christian Caruthers <ccaruth...@lenovo.com<mailto:ccaruth...@lenovo.com>> wrote: 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 <gurev...@us.ibm.com<mailto:gurev...@us.ibm.com>> Sent: Tuesday, June 11, 2019 2:27 PM To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>> 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 <ccaruth...@lenovo.com<mailto:ccaruth...@lenovo.com>> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>> 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 <ccaruth...@lenovo.com<mailto:ccaruth...@lenovo.com>> Sent: Tuesday, June 11, 2019 12:26 PM To: xCAT Users Mailing list (xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>) <xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>> 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 xCAT-user@lists.sourceforge.net<mailto:xCAT-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/xcat-user _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net<mailto:xCAT-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user