[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
shellcommands not executing - lock problem?
From: |
Kurt Lieber |
Subject: |
shellcommands not executing - lock problem? |
Date: |
Tue, 24 Feb 2004 11:30:56 -0500 |
User-agent: |
Mutt/1.5.5.1i |
We're trying to use cfengine to run a series of rsync commands on our web
nodes. The relevant syntax is:
shellcommands:
_gweb.slave_webnode.slave_web_sync::
"/bin/su - gweb -l -c '/usr/bin/rsync -rltvv --delete
gweb@$(_master_node):$(web_stage_html)/ $(web_html)/'"
"/bin/su - gweb -l -c '/usr/bin/rsync -rltvv --delete
gweb@$(_master_node):$(web_stage_images)/ $(web_images)/'"
"/bin/su - gweb -l -c '$(web_scripts)/rsync-weblogs.sh'"
Of those three commands, the first and third get executed. The second never
does.
It appears to be some sort of locking problem. If I run:
cfagent -K -q -v -t -Dslave_web_sync
Everything works fine. Change that to:
cfagent -q -v -t -Dslave_web_sync
And it doesn't work. (-K is ignore locks)
Trolling through the debug output of the non-working command shows this
line:
cfengine:nue: Nothing scheduled for shellcommand._gweb._bin_su___gweb__l__c___
usr_bin_rsync__rltvv___delete_gweb_nue_gentoo_org__var_www_www_gentoo_org_stage
_site_images___var_www_www_gentoo_org_images__ (0/1 minutes elapsed)
However, it *only* says that for that specific command. As I mentioned,
the first and third commands run fine.
Any suggestions/help?
--kurt
pgpVb3p7CsNWd.pgp
Description: PGP signature
- shellcommands not executing - lock problem?,
Kurt Lieber <=
- Re: shellcommands not executing - lock problem?, Mark . Burgess, 2004/02/24
- Re: shellcommands not executing - lock problem?, Kurt Lieber, 2004/02/24
- Re: shellcommands not executing - lock problem?, Russell Adams, 2004/02/24
- Re: shellcommands not executing - lock problem?, Chip Seraphine, 2004/02/24
- Re: shellcommands not executing - lock problem?, Eric Sorenson, 2004/02/24
- Re: shellcommands not executing - lock problem?, Pete Ehlke, 2004/02/25
- Re: shellcommands not executing - lock problem?, Mark . Burgess, 2004/02/25