cf-agent doesn't run

16 views
Skip to first unread message

Christian Linden

unread,
Oct 14, 2016, 8:29:29 AM10/14/16
to help-cfengine
Hi,

I watched this on serveral boxes the last days that there's just no cf-agent run.
Sometimes it takes >10 hrs until changes are getting  propagated/promises are being promised.

or/and:

tha last in the log:

Oct 14 12:01:38 hostname cf3[13189]: Fatal CFEngine error: Bailing out
Oct 14 12:06:31 hostname cf3[14235]: Fatal CFEngine error: Bailing out
Oct 14 12:11:26 hostname cf3[15194]: Fatal CFEngine error: Bailing out
Oct 14 12:16:21 hostname cf3[16364]: Fatal CFEngine error: Bailing out
Oct 14 12:21:19 hostname cf3[17576]: Fatal CFEngine error: Bailing out
Oct 14 12:26:11 hostname cf3[18502]: Fatal CFEngine error: Bailing out
Oct 14 12:31:05 hostname cf3[19566]: Fatal CFEngine error: Bailing out
Oct 14 12:41:03 hostname cf3[21394]: Fatal CFEngine error: Bailing out
Oct 14 12:46:58 hostname cf3[22505]: Fatal CFEngine error: Bailing out
Oct 14 12:51:52 hostname cf3[23765]: Fatal CFEngine error: Bailing out
Oct 14 12:56:48 hostname cf3[24712]: Fatal CFEngine error: Bailing out
Oct 14 13:01:42 hostname cf3[25791]: Fatal CFEngine error: Bailing out
Oct 14 13:06:37 hostname cf3[26845]: Fatal CFEngine error: Bailing out
Oct 14 13:11:31 hostname cf3[27796]: Fatal CFEngine error: Bailing out
Oct 14 13:16:26 hostname cf3[28840]: Fatal CFEngine error: Bailing out
Oct 14 13:21:22 hostname cf3[29909]: Fatal CFEngine error: Bailing out

This is due to whatever bug in 3.5.2 that the variables  $(def.defined_directories) are not getting expanded..

But when I run cf-agent -v manually on the boxes all promises are getting promised.
By itself the mechanism doesn't kick the cf-agent.

Chris

Aleksey Tsalolikhin

unread,
Oct 14, 2016, 8:50:20 AM10/14/16
to Christian Linden, help-cfengine

You know that 3.6 was end-of-lifed last July, right? And you still have hosts running 3.5. How about we get you on 3.7 LTS?

Can you use the below as impetus to upgrade?

Yours fondly,
-at


--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengine+unsubscribe@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.

Christian Linden

unread,
Oct 14, 2016, 9:08:45 AM10/14/16
to Aleksey Tsalolikhin, help-cfengine
I already updates all nodes to 3.7.2.
.. but.. since then (~half a year ago..) they deployed daily new boxes using a template containing 3.5.1 =)

c

Aleksey Tsalolikhin

unread,
Oct 14, 2016, 9:22:16 AM10/14/16
to Christian Linden, help-cfengine

Right. That's what you have to fix. How about updating the template?

Marco Marongiu

unread,
Oct 14, 2016, 9:34:32 AM10/14/16
to help-c...@googlegroups.com
On 14/10/16 15:22, Aleksey Tsalolikhin wrote:
> Right. That's what you have to fix. How about updating the template?
>

or add a promise conditioned by the class cfengine_3_5 to upgrade
cfengine right there and then?

Christian Linden

unread,
Oct 14, 2016, 9:49:27 AM10/14/16
to Aleksey Tsalolikhin, help-cfengine
jep, I’m on it =)

Christian Linden

unread,
Oct 14, 2016, 9:52:19 AM10/14/16
to Marco Marongiu, help-c...@googlegroups.com
Hey Marco,

addicted, he? =)

Did that, bases on !3_7_2.. but there were some boxes not getting it done.
Further 3.5.1 made some random renaming of DIRs to files and this isn’t/can’t be fixed by 3.7.2..
Hence I wrote another promise „if that file exists (what should be a dir) then tidy up…
.. but some boxes still hung on 3.5..

Best!
Chris

Marco Marongiu

unread,
Oct 14, 2016, 9:56:07 AM10/14/16
to Christian Linden, help-c...@googlegroups.com
On 14/10/16 15:52, Christian Linden wrote:
> Hey Marco,
>
> addicted, he? =)

:-)


> Did that, bases on !3_7_2.. but there were some boxes not getting it done.
> Further 3.5.1 made some random renaming of DIRs to files and this isn’t/can’t be fixed by 3.7.2..
> Hence I wrote another promise „if that file exists (what should be a dir) then tidy up…
> .. but some boxes still hung on 3.5..

If there are more things than just upgrade a package to be done on 3.5,
just promise a bundle instead of just a package. And if you do things
properly you can even test that bundle separately without triggering the
rest of the policy.

Ciao!
-- bronto

Nick Anderson

unread,
Oct 14, 2016, 9:59:30 AM10/14/16
to help-c...@googlegroups.com
On 10/14/2016 08:56 AM, Marco Marongiu wrote:
> And if you do things properly you can even test that bundle
> separately without triggering the rest of the policy.

Perhaps you could even write a test!

https://github.com/cfengine/masterfiles/pull/766

signature.asc

Christian Linden

unread,
Oct 17, 2016, 5:14:56 AM10/17/16
to help-cfengine
you overestimate my coding skills.

Reply all
Reply to author
Forward
0 new messages