Re: Cfengine Help: replace_patterns bug?

2010-11-19 Thread Michael Potter
On Sat, Nov 20, 2010 at 1:59 PM, Daniel V. Klein wrote: > Michael, you are right and I feel like a fool.  Of course - the regex was > wrong! No need - I have been using regexes forever and still find new ways to get them wrong all the time =) > > But to meet you half way... the \s* matches the

Re: Cfengine Help: replace_patterns bug?

2010-11-19 Thread Daniel V. Klein
Michael, you are right and I feel like a fool. Of course - the regex was wrong! But to meet you half way... the \s* matches the spaces the first time, and the [^0] matches the "1". After that, it replaces the 0 with a 1, and then you're 100% right. Doh! -Dan On Nov 19, 2010, at 5:50 PM, Mic

Cfengine 3.0.5p1 daemons spinning CPU to 100% on 1 host out of 800

2010-11-19 Thread Mike Svoboda
I’ve deployed Cfengine 3.0.5p1 across 800 hosts. I only have an issue with the Cfengine daemons on 1 box where it appears I am hitting a bug. On this machine, it spins a single core to 100% user space CPU utilization. Here are the details. $ /var/cfengine/bin/cf-agent -v ... f3 ---

Re: body executor control and separately defined classes

2010-11-19 Thread Michael Potter
On Sat, Nov 20, 2010 at 1:14 AM, C R Ritson wrote: > It seems to me that I cannot arrange to validate promises regularly using > classes defined elsewhere. Have I misunderstood something? In body executor > control... > > schedule => { "Weekday.Morning.Q1", ... } > > fails to validate my promise

Re: Cfengine Help: replace_patterns bug?

2010-11-19 Thread Michael Potter
On Sat, Nov 20, 2010 at 9:50 AM, Michael Potter wrote: > On Sat, Nov 20, 2010 at 6:20 AM,   wrote: >> Forum: Cfengine Help >> Subject: replace_patterns bug? >> Author: babudro >> Link to topic: https://cfengine.com/forum/read.php?3,19347,19347#msg-19347 >> >> Hello Cfengineers. >> >> Like Michael

Re: Cfengine Help: replace_patterns bug?

2010-11-19 Thread Michael Potter
On Sat, Nov 20, 2010 at 6:20 AM, wrote: > Forum: Cfengine Help > Subject: replace_patterns bug? > Author: babudro > Link to topic: https://cfengine.com/forum/read.php?3,19347,19347#msg-19347 > > Hello Cfengineers. > > Like Michael Potter's post on 9 November, I am also running into some strange

Re: Cfengine Help: replace_patterns bug?

2010-11-19 Thread Daniel V. Klein
First of all, thank you for the self-contained example! That helps a lot. As far as I can tell, you have found a bug (but also a mistake in your interpretation). Your pattern wont match in the string "enabled = 00", but not because you only have a single 0 (it's because the first "0 doesn't mat

Cfengine Help: replace_patterns bug?

2010-11-19 Thread no-reply
Forum: Cfengine Help Subject: replace_patterns bug? Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,19347,19347#msg-19347 Hello Cfengineers. Like Michael Potter's post on 9 November, I am also running into some strange behaviour with replace_patterns. I wonder if someone ca

Re: body executor control and separately defined classes

2010-11-19 Thread Daniel V. Klein
Chris- Well, actually I think Cfengine is doing what it was supposed to, then :-) Rather than resort to hoop-jumping, why not just get in the habit of executing your policy immediately after you check it in, to test for missed bugs? -Dan On Nov 19, 2010, at 10:17 AM, C R Ritson wrote: >> I ag

Re: body executor control and separately defined classes

2010-11-19 Thread Seva Gluschenko
To be honest, Cfengine is not that lightweight to run it on default schedule on busy production servers, from my experience. My current approach to writing promises consists of defining relatively relaxed schedule (from 20 minutes to 1 hour and even more) while enforcing urgent changes via cf-runag

RE: body executor control and separately defined classes

2010-11-19 Thread C R Ritson
>I agree with Seva about hard classes. But this makes me ask: why are >you so erratically validating your promises? Why not every 5 minutes, This started when I was deluged by a weekend's-worth of mail every 5 minutes, because a syntax error had been overlooked and caused a noisy back-off to f

Re: body executor control and separately defined classes

2010-11-19 Thread Daniel V. Klein
Chris- I agree with Seva about hard classes. But this makes me ask: why are you so erratically validating your promises? Why not every 5 minutes, which is the default? Cfengine is lightweight, and does not load your system. But if you have "expensive" promises, just change the "if_elapsed"

Re: body executor control and separately defined classes

2010-11-19 Thread Seva Gluschenko
Chris, the schedule only accepts hard classes, AFAIR 2010/11/19 C R Ritson : > It seems to me that I cannot arrange to validate promises regularly using > classes defined elsewhere. Have I misunderstood something? In body executor > control... > > schedule => { "Weekday.Morning.Q1", ... } > > f

body executor control and separately defined classes

2010-11-19 Thread C R Ritson
It seems to me that I cannot arrange to validate promises regularly using classes defined elsewhere. Have I misunderstood something? In body executor control... schedule => { "Weekday.Morning.Q1", ... } fails to validate my promises when the class Weekday is defined in "bundle agent executor"

Cfengine Help: Re: Parent process selection

2010-11-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Parent process selection Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19311,19340#msg-19340 Thanks Matt. https://cfengine.com/bugtracker/view.php?id=265 ___ Help-cfengine mailing list Help-

Re: Define phost variable by clients network

2010-11-19 Thread tktucker
Disregard please. On Nov 19, 2010 7:08am, tktuc...@gmail.com wrote: Is it possible to define the phost variable based on the clients network? If the connecting client is originating from the lab network then set the phost variable to the local policy server. All other clients should talk to

Cfengine Help: Re: Parent process selection

2010-11-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Parent process selection Author: matter Link to topic: https://cfengine.com/forum/read.php?3,19311,19338#msg-19338 Which bug is that? I haven't ran across any for AIX. Let me know the details and perhaps I might be able to help. _

Cfengine Help: Re: Parent process selection

2010-11-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Parent process selection Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19311,19337#msg-19337 For those that don't know the ps command has subtle differences between most versions of UNIX. We've been working on a process selection bug f

Cfengine Help: Re: Define phost variable by clients network

2010-11-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Define phost variable by clients network Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19333,19336#msg-19336 bundle common global_classes { # This bundle must be duplcated in promises.cf. classes: "dev_env" or => {

Re: Cfengine Help: Re: Parent process selection

2010-11-19 Thread Bas van der Vlies
On 19-11-10 12:23, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Parent process selection > Author: mark > Link to topic: https://cfengine.com/forum/read.php?3,19311,19329#msg-19329 > > This issue has not cropped up for a long time. The ps command has been > relatively stable

Re: CFengine community always updating files with a nova policy hub

2010-11-19 Thread Matthieu CERDA
Le 19/11/2010 12:25, Mark Burgess a écrit : > Community and Nova are not meant to inter-operate, otherwise there would > be no business model. You should stick to one or the other. > > On 11/19/2010 11:28 AM, Matthieu CERDA wrote: > >> Hello, >> >> I'm getting a strange behavior on a CFEngine c

Define phost variable by clients network

2010-11-19 Thread tktucker
Is it possible to define the phost variable based on the clients network? If the connecting client is originating from the lab network then set the phost variable to the local policy server. All other clients should talk to policy server X and Y as I tried to do below. Any tips on how to achi

Re: CFengine community always updating files with a nova policy hub

2010-11-19 Thread Mark Burgess
Community and Nova are not meant to inter-operate, otherwise there would be no business model. You should stick to one or the other. On 11/19/2010 11:28 AM, Matthieu CERDA wrote: > Hello, > > I'm getting a strange behavior on a CFEngine community server, which > keeps updating promises files wh

Cfengine Help: Re: Parent process selection

2010-11-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Parent process selection Author: mark Link to topic: https://cfengine.com/forum/read.php?3,19311,19329#msg-19329 This issue has not cropped up for a long time. The ps command has been relatively stable for a long time, but it is very non-portable. Reading /proc

Re: Cfengine Help: Re: Parent process selection

2010-11-19 Thread Bas van der Vlies
On 19-11-10 12:09, Bas van der Vlies wrote: > On 19-11-10 11:56, no-re...@cfengine.com wrote: >> Forum: Cfengine Help >> Subject: Re: Parent process selection >> Author: Seva Gluschenko >> Link to topic: https://cfengine.com/forum/read.php?3,19311,19328#msg-19328 >> >> Correct me if I wrong, but ps

Re: Cfengine Help: Re: Parent process selection

2010-11-19 Thread Bas van der Vlies
On 19-11-10 11:56, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Parent process selection > Author: Seva Gluschenko > Link to topic: https://cfengine.com/forum/read.php?3,19311,19328#msg-19328 > > Correct me if I wrong, but ps output on different Unix systems cannot be > exact

Cfengine Help: Re: Parent process selection

2010-11-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Parent process selection Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,19311,19328#msg-19328 Correct me if I wrong, but ps output on different Unix systems cannot be exactly identical anyway, the further parsing is applied. Why not

CFengine community always updating files with a nova policy hub

2010-11-19 Thread Matthieu CERDA
Hello, I'm getting a strange behavior on a CFEngine community server, which keeps updating promises files when connecting to a Nova 2 policy hub, even if the files weren't modified. I suspect that my copy_from body is the culprit, maybe that compare => "digest" is incompatible between these tw

Re: Cfengine Help: Re: Parent process selection

2010-11-19 Thread Bas van der Vlies
On 18-11-10 22:24, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Parent process selection > Author: eystein > Link to topic: https://cfengine.com/forum/read.php?3,19311,19322#msg-19322 > > Interesting. The main concern is portability. > Do you have experience with libproc on di