Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19624#msg-19624
The agent was run by cf-execd.
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengin
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19505,19614#msg-19614
How do you start your agent? When running cf-agent directly I don't think that
outputs will be logged. I think that outputs are only logg
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19613#msg-19613
Twice as weird ) But a bug report cannot be filed since details of your
experiment left uncovered.
___
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19612#msg-19612
I did check this; cf-agent had definately finished.
___
Help-cfengine mailing list
Help-cfengine@cfengin
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19611#msg-19611
I would suggest checking process list to make sure your "main run" isn't stuck
waiting for package promises to be done. For unknown rea
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19610#msg-19610
Oh, I just discarded my test setup...
Main run... that's the initial, long and lengthy cfengine run that does all the
really hard work - configurin
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19609#msg-19609
Sounds weird. Can you please provide more details upon that? Some important
information is missing here, I think. What do you call main
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19608#msg-19608
Hi Seva,
okay, I did some testing using the above exec_command locking.
Basically it did work, but I noticed that no output of the main run is recor
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19598#msg-19598
>From my point of view, the wiser solution could be to flag package
>installation by some global class which stops other package promis
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19597#msg-19597
Thanks for the warning! I see this as a temporary solution until something
native has been brought up.
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19573#msg-19573
Robert,
doing things like that, one shouldn't be surprised when changes in policies may
become postponed for the indefinite period of
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19572#msg-19572
JFYI, a simple
exec_command => "/bin/bash -c 'if ! [ `pidof cf-agent` ] ; then
$(sys.workdir)/bin/cf-agent -f /var/cfengine/inputs/failsafe.cf &&
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19520#msg-19520
it would very interesting thing to try out when it arrives )
___
Help-cfengine mailing list
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,19505,19519#msg-19519
I can look into this if it is not satisfactory now. There are always
conflicting issues to these matters. I seem to recall there was something in
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19505,19518#msg-19518
>From my experience I can suggest to implement a single lock for
>package_methods dealing with yum and apt, such as it was suggested fo
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,19505,19513#msg-19513
I suggest doing an experiment to see what happens. I think you'll find that the
granularity of Cfengine's locking is designed to avoid this kind o
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19512#msg-19512
I believe in some instances this could be a problem - and if it's only that
unnecessary error messages are produced by child processes (e.g. apt) or
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19505,19510#msg-19510
Cfengine is meant to be convergent. If a promise fails, such as you describe,
Cfengine will try again on the next run. By that time the
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: ro
Link to topic: https://cfengine.com/forum/read.php?3,19505,19509#msg-19509
That sounds reasonable, but how to handle package management in this case?
Say, one run installs a huge package using e.g. apt-get.
In the middle of
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19505,19508#msg-19508
Locking in brief: http://www.cfengine.org/manuals/cf3-tutorial.html#Hello-world
Multiple instanced of cf-agent can run but the cannot keep
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,19505,19507#msg-19507
Oh yes, and because of the "ifelapsed" time, things that were done recently
will not be repeated by the second agent, so be sure to set the times
Forum: Cfengine Help
Subject: Re: Question on cf-agent locking
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,19505,19506#msg-19506
Cfengine locks individual promises, so another agent will be started, but the
two agents will just work in parallel to get the job done, without t
22 matches
Mail list logo