I recreated your issue in my test system.

#Test
/root/testfile -> /root/.
/root/testfile.post -> /root/.
EXECUTE:
/root/testfile.post

I think this maybe a bug in the code.
1) it only execute file in the synclist file
2) it will execute all the files in the same dir if they are defined in the
synclist file.


Thanks,
Casandra
...................................................................
Casandra Hong Qiu
Phone: (845) 433-9291, t/l 293-9291
Office: B/002, Floor 3, Z13
cxh...@us.ibm.com





From:   Qamar Nazir <qna...@ocf.co.uk>
To:     xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Date:   04/04/2016 04:39 AM
Subject:        Re: [xcat-user] xCAT syncfiles issue



Hi,

Thanks for the reply.
Below is the reply I sent on 22nd of last month. It's weird that it didn't
go through.


Thanks for your reply.

The synclist is attached. Please check the top lines where I have put
'testfile' for testing. Without synchronizing the corresponding script,
xCAT doesn't run the script at all. To get that script to run automatically
I have to transfer the script too. I remember in previous xCAT releases the
script transfer was not necessary (please correct me if I'm wrong)

testfile.post has these contents:

#!/bin/bash

    echo "this is a test script"

exit 0

When I apply the updatenode command from the Master node it returns these
results:

updatenode node01 -F

node01: this is a test script
node01: this is a test script
File synchronization has completed for nodes.


May be it was the attachment that is why it might have been blocked by the
filter. Let me paste the syncfile below.

#Test
/root/testfile -> /root/.
/root/testfile.post -> /root/.
#Hostbased
/etc/hosts.equiv -> /etc/.
/etc/ssh/ssh_known_hosts -> /etc/ssh/.
/etc/ssh/ssh_known_hosts -> /root/.ssh/known_hosts
/etc/hosts -> /etc/.
/etc/resolv.conf -> /etc/.
/etc/passwd /etc/shadow /etc/group -> /etc/.
#Modules
/install/syncfiles/modules/modules.* -> /etc/profile.d/.
/install/syncfiles/modules/custom -> /etc/.

#Monitoring

/etc/ganglia/gmond.conf -> /etc/ganglia/gmond.conf
#/etc/nagios/nrpe.cfg.nsd -> /etc/nagios/.

#Modprobe/Lustre
/install/syncfiles/modprobe/* -> /etc/modprobe.d/.

#Torque
/install/syncfiles/torque/pbs_mom -> /etc/init.d/.
/install/syncfiles/torque/trqauthd -> /etc/init.d/.
/install/syncfiles/torque/torque.conf -> /etc/ld.so.conf.d/.

#Routing
/install/syncfiles/eth/route-eth0 -> /etc/sysconfig/network-scripts/.
/install/syncfiles/eth/route-bond0 -> /etc/sysconfig/network-scripts/.
/install/syncfiles/eth/route-bond0.post -> /etc/sysconfig/network-scripts/.

#NRPE
/install/syncfiles/nrpe/nrpe.cfg.nsd -> /etc/nagios/nrpe.cfg

#multipath
/install/syncfiles/phaseIII/nsd/multipath/multipath.conf -> /etc/.
/install/syncfiles/phaseIII/nsd/multipath/bindings -> /etc/multipath/.
/install/syncfiles/phaseIII/nsd/multipath/multipath.conf.post -> /etc/.
#openib
/install/syncfiles/etc/infiniband/openib.conf -> /etc/infiniband/.
#
#Authentication
/install/syncfiles/etc/auth/*-ac -> /etc/pam.d/.
/install/syncfiles/etc/auth/*-auth -> /etc/pam.d/.
/install/syncfiles/etc/auth/*.conf -> /etc/.

EXECUTE:
/root/testfile.post
/etc/ganglia/gmond.conf.post
/etc/nagios/nrpe.cfg.nsd.post
/install/syncfiles/torque/pbs_mom.post
/install/syncfiles/torque/trqauthd.post
/install/syncfiles/eth/route-eth0.post
/install/syncfiles/eth/routebond0.post
/install/syncfiles/torque/torque.conf.post
/install/syncfiles/nrpe/nrpe.cfg.nsd.post
/install/syncfiles/etc/multipath/multipath.conf.post
/install/syncfiles/etc/infiniband/openib.conf.post
/install/syncfiles/etc/auth/nslcd.conf.post
/install/syncfiles/gpfs/kernel_extensions/tracedev.ko.post
/install/syncfiles/phaseIII/nsd/multipath/multipath.conf.post
#
APPEND:
/install/syncfiles/hosts/hosts.append -> /etc/hosts


Best Regards,



Qamar Nazir



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

_______________________________________________
xCAT-user mailing list
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

Reply via email to