Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sameroom
    @sameroom-bot
    [realname, irc.libera.chat] I think in the test scenario, I wanted to stop executing. But I'll keep that in mind.
    [@nickanderson:matrix.org, irc.libera.chat] How are you deciding which bundles to call?
    [realname, irc.libera.chat] What do you mean? It was named "main." cf-agent -f test.cf called main.
    [realname, irc.libera.chat] Or do you mean production? In that case it's def.json.
    [realname, irc.libera.chat] control_common_bundlesequence_end
    [@nickanderson:matrix.org, irc.libera.chat] I just assumed that was some fragment that represented what you were doing. I just guessed that you had a.different scinerio where bundles were called automatically and you were aborting bundles as a safety mechanism
    [@nickanderson:matrix.org, irc.libera.chat] I see. So normally explicitly called bundles.
    [realname, irc.libera.chat] So, if I copy all of mpf to ~/.cfagent and add a def.json and promises.cf, maybe it would work properly.
    [realname, irc.libera.chat] Yes.
    [realname, irc.libera.chat] cd **/masterfiles; ls services/*.cf > def.json; {{edit def.json here}} ...
    Sameroom
    @sameroom-bot
    [@nickanderson:matrix.org, irc.libera.chat] I usually symlink .cfagent/bin to var cfengine bin and then dump a copy of the mpf interesting .cfagent/inputs. Then from my single example test files, I use body file control to includestdlib. In your case you might just try to include promises.cf to get all the control bodies.
    [@nickanderson:matrix.org, irc.libera.chat] S/interesting/into/
    Sameroom
    @sameroom-bot
    [realname, irc.libera.chat] error: CfReadFile: Error while reading file '/sys/devices/virtual/dmi/id/prod
    [realname, irc.libera.chat] uct_serial' (Permission denied)
    [realname, irc.libera.chat] Four instances of that error.
    [realname, irc.libera.chat] Maybe I'll just drop my test file into /var/cfengine and test it as root!
    Sameroom
    @sameroom-bot
    [@nickanderson:matrix.org, irc.libera.chat] Yeah those are annoying errors. Might be gone in master build.
    [realname, irc.libera.chat] Ok, I dropped it into /var/cfengine and it ran properly. Too much hoop-jumping, though.
    [realname, irc.libera.chat] # cf-agent -KIC
    [realname, irc.libera.chat] R: Executed inside test1
    [realname, irc.libera.chat] error: Bundle 'test2' aborted on defined class 'abortbundle'
    [realname, irc.libera.chat] R: Executed inside test3
    Sameroom
    @sameroom-bot
    [realname, irc.libera.chat] But, should that really be an error? As I pointed out earlier, my main use case is to prevent Linux-specific bundles from running on non-Linux hosts.
    [realname, irc.libera.chat] I just want to exit the bundle without throwing an error every time. That could get real old real fast.
    Sameroom
    @sameroom-bot
    [realname, irc.libera.chat] Or else I have to throw if => "linux" into every promise.
    Sameroom
    @sameroom-bot
    [@nickanderson:matrix.org, irc.libera.chat] Mmm, we treat abortion as error. Instead, I think we'd expect that you not call a bundle you don't want to run.
    Sameroom
    @sameroom-bot
    [realname, irc.libera.chat] Well, I was just going to put all my bundles in control_common_bundlesequence_end, and let them abort when inappropriate. Basically every host has the same list and decides which is appropriate to itself.
    [realname, irc.libera.chat] Maybe if => "linux" is the better way to handle it.
    Sameroom
    @sameroom-bot
    [@nickanderson:matrix.org, irc.libera.chat] If you want to call each bundle then I'd suggest sticking everything in another bundle and only calling it under the appropriate context.
    [@nickanderson:matrix.org, irc.libera.chat] So you have a wrapper bundle for each policy basically
    [@nickanderson:matrix.org, irc.libera.chat] Or runner, whatever you wanna call it.
    [@nickanderson:matrix.org, irc.libera.chat] Or have one bundle that you call all the others as methods from like main.cf
    [realname, irc.libera.chat] Yeah, I see where you're going with that. I'm trying to have a policy set that is completely controlled from def.json. So I can include all files and bundles and if they're configured in def.json, they just do the right thing, every time. Which is a tall order, I know.
    Sameroom
    @sameroom-bot
    [@nickanderson:matrix.org, irc.libera.chat] You can make your own autorun. To achieve that.
    [@nickanderson:matrix.org, irc.libera.chat] Or have the wrapper bundle for each
    [@nickanderson:matrix.org, irc.libera.chat] Either should be able to be completely controlled via def.json and not have to abort.
    Sameroom
    @sameroom-bot
    [realname, irc.libera.chat] Ok you guys at NT: There was no CFEngine presence at SCALE this last weekend. Next SCALE is March 9 - 12, let's prep to get you a booth. If you need my help, I can probably make it happen.
    Sameroom
    @sameroom-bot
    [@nickanderson:matrix.org, irc.libera.chat] check out the changes to docs https://docs.cfengine.com/docs/master/ try search!
    Sameroom
    @sameroom-bot
    [[https://web.libera.chat\] randomguy, irc.libera.chat] hello guys, i'm experiencing a wierd beavior and i cannot determine why is that happening, i see this in the syslog: "cf-execd[32131]: CFEngine(executor) IsReadReady: Failed checking for data. (select: Interrupted system call)
    [[https://web.libera.chat\] randomguy, irc.libera.chat] cf-execd[32131]: CFEngine(executor) cf-execd: timeout waiting for output from agent (agent_expireafter=120) - terminating it
    [[https://web.libera.chat\] randomguy, irc.libera.chat] systemd[1]: cf-execd.service: Main process exited, code=killed, status=9/KILL
    [[https://web.libera.chat\] randomguy, irc.libera.chat] systemd[1]: cf-execd.service: Failed with result 'signal'.
    [[https://web.libera.chat\] randomguy, irc.libera.chat] systemd[1]: cf-execd.service: Service hold-off time over, scheduling restart.
    [[https://web.libera.chat\] randomguy, irc.libera.chat] systemd[1]: cf-execd.service: Scheduled restart job, restart counter is at 4.
    [[https://web.libera.chat\] randomguy, irc.libera.chat] systemd[1]: Stopped CFEngine Execution Scheduler.
    [[https://web.libera.chat\] randomguy, irc.libera.chat] systemd[1]: cf-execd.service: Found left-over process 32160 (cf-execd) in control group while starting unit. Ignoring.
    [[https://web.libera.chat\] randomguy, irc.libera.chat] systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
    [[https://web.libera.chat\] randomguy, irc.libera.chat] systemd[1]: Started CFEngine Execution Scheduler."
    [[https://web.libera.chat\] randomguy, irc.libera.chat] Is this normal behavior? ( i guess not :D) can someone help me with this please?
    Sameroom
    @sameroom-bot
    [Nick Anderson, Northern.tech] cf-execd[32131]: CFEngine(executor) cf-execd: timeout waiting for output from agent (agent_expireafter=120) - terminating it indicates that one of your cf-agent processes has been running for quite a long time (over 120 minutes) without sending anything back to cf-execd so, it was killed for misbehaving.
    Sameroom
    @sameroom-bot
    [[https://web.libera.chat\] randomguy, irc.libera.chat] okay thanks, how can i determine whats causing this? because in the logs i can't find anything interesting
    [Nick Anderson, Northern.tech] Start with if there is anything in yuor policy that you know has potential to be slow or hang (commands, operations on network file systems etc ..) Might try running through cf-profile.pl to see where slow spots are.
    [Nick Anderson, Northern.tech] You can try tweaking body executor control to add timing output and verbose logs which will affect what y ou see in /var/cfengine/outputs
    Sameroom
    @sameroom-bot
    [[https://web.libera.chat\] randomguy, irc.libera.chat] what is cf-profile.pl? can't really find anything about it
    Sameroom
    @sameroom-bot
    [[https://web.libera.chat\] randomguy, irc.libera.chat] that's cool i will definately try this
    [[https://web.libera.chat\] randomguy, irc.libera.chat] tomorrow i will come back with the results thank you so much for helping and for the quick reaction time