Re: strange error

2010-09-16 Thread Mark Burgess
Yes, we've seen this before but not for a long time. It means that there are too many files, pipes or dbs open. That could be due to a bug (forgot to close something). As long as it does not happen again, I wouldn't worry. The problem is likely fixed in a future version. If it persists, try to

Re: strange error

2010-09-16 Thread Seva Gluschenko
Michael, it seems to be cf-agent's output, so you couldn't catch it just inspecting processes. Perhaps, it's wise to check and probably increase ulimits for user which runs cf-agent in terms of maximum open files. The global file descriptors limits also may require increasing. 2010/9/17 Michael P

Cfengine Help: Re: strange error

2010-09-16 Thread no-reply
Forum: Cfengine Help Subject: Re: strange error Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,18300,18301#msg-18301 I found some references to this error, but mostly from cfengine2 - it seems like a file descriptor leak, and at some point Mark applied a fairly big patch t

strange error

2010-09-16 Thread Michael Potter
Hi Recently noticed this error crop up on one of our production servers. Never seen it happen anywhere else, including other test and production machines: File descriptor 27 of child 28560 higher than MAX_FD, check for defunct children File descriptor 27 of child higher than MAX_FD, check for def

Re: Cfengine Help: Re: Accessing variables declared within cf3 modules

2010-09-16 Thread Jesse Becker
Something to clarify how to use an slist (and ilist and rlist), from other bundles would also be helpful, since they are apparently not treated the same way as a string variable. My understanding is that you can directly call ${bundle.string_variable} for strings, you can *not* directly reference

Re: Cfengine Help: Re: Accessing variables declared within cf3 modules

2010-09-16 Thread Daniel V. Klein
Yes, I will make sure it is clearer... maybe not 72pt, though :-) On Sep 16, 2010, at 4:44 PM, Jesse Becker wrote: > Is there a way to have this Seva's comment below integrated into the > docs, preferably in 72pt type? :-) > > Subtleties like this are nearly impossible to find in the current >

Re: Cfengine Help: Re: I've written an article about how Cfengine relates to Chef and Puppet in terms of origin; and its new capabilities

2010-09-16 Thread Nakarin Phooripoom
Or you might break everything to specific aspects rather than a feature comparison such as; simplicity, performance, scalability, reliability, usability, user base or even community support. For simplicity, I might say Puppet is easier to understand at first and a learning curve of Cfengine c

Re: Cfengine Help: Re: Accessing variables declared within cf3 modules

2010-09-16 Thread Jesse Becker
Is there a way to have this Seva's comment below integrated into the docs, preferably in 72pt type? :-) Subtleties like this are nearly impossible to find in the current reference manual. On Thu, Sep 16, 2010 at 16:38, wrote: > Forum: Cfengine Help > Subject: Re: Accessing variables declared

Cfengine Help: Re: Accessing variables declared within cf3 modules

2010-09-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Accessing variables declared within cf3 modules Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,18279,18295#msg-18295 mikec Wrote: --- > The manual *does* say that to access variables

Cfengine Help: Re: Accessing variables declared within cf3 modules

2010-09-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Accessing variables declared within cf3 modules Author: mikec Link to topic: https://cfengine.com/forum/read.php?3,18279,18294#msg-18294 The manual *does* say that to access variables that aren't in a global (common) scope need to be qualified: http://www.

Cfengine Help: Re: best practices advice about two-stage file copy

2010-09-16 Thread no-reply
Forum: Cfengine Help Subject: Re: best practices advice about two-stage file copy Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18287,18293#msg-18293 I seldom use the two copy method. If I am being paranoid, typically with update.cf, then I use 'verify' which does the

Re: cfengine.com is very slow for me right now... took 5 minutes to login. Now "my cache" is slow to come up. EOM

2010-09-16 Thread Nicolas Charles
I sometimes have this kind of issue. Usually, it happens when I use the wrong password or username to login (which is quite common). Afterward it's just impossible to log in, and I have to use another browser Nicolas On 16/09/2010 09:00, Eystein Måløy Stenberg wrote: > Hi, > > I don't have any

Re: Update run twice

2010-09-16 Thread Seva Gluschenko
I presume, it's left there because of cf-runagent command which cannot use sequenced shell actions. 2010/9/16 Eystein Måløy Stenberg : > Hi, > > I don't think so. In the Nova policies, update is only in failsafe.cf. > Probably it's just a left-over from somewhere. > > -- > Regards, > Eystein > > O

Re: Update run twice

2010-09-16 Thread Eystein Måløy Stenberg
Hi, I don't think so. In the Nova policies, update is only in failsafe.cf. Probably it's just a left-over from somewhere. -- Regards, Eystein On Thu, Sep 16, 2010 at 12:30 PM, Davide Brini wrote: > Hello, > > I've just installed cfengine 3 under ubuntu lucid, and I was looking at the > supplied

Update run twice

2010-09-16 Thread Davide Brini
Hello, I've just installed cfengine 3 under ubuntu lucid, and I was looking at the supplied .cf files. It seems that the "update" bundle is run twice every time: body executor control { ... # Instead of a separate update script, now do this exec_command => "$(sys.workdir)/bin/cf-agent -f fail

Re: best practices advice about two-stage file copy

2010-09-16 Thread Michael Potter
One advantage of the two-stage copy is you can use it to detect when the source file changed - and then drive a latter action based on that. E.g. in the first copy (the staging copy), set a class like "source_updated" if "promise_repaired". Then make the second copy dependent on "source_updated" -

best practices advice about two-stage file copy

2010-09-16 Thread Jan Kundrát
Dear list, we've been using Cfengine version 2 for a few years. We're a W-LCG computing facility with roughly 350 machines and 2600 CPUs and our "job" is to deliver CPU power and disk space to grid users, especially particle physicists. I've learned from various tutorials, articles and other resou

Re: How to get an slist of mounted local filesystems with CFengine 3?

2010-09-16 Thread milo...@gmail.com
>   mount |egrep '(ext2|ext3|ext4)' |cut -f3 -d" " > > ... but somehow I feel that I am about to reinvent a wheel ;-) > Maybe "df -l" is a better command to run, I'm quite surprised that mount does not have this option (at least I can't find it in the manual). _

Cfengine Help: Re: Cfengine Help: Looking for ideas on people's config

2010-09-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Looking for ideas on people's config Author: hhammer Link to topic: https://cfengine.com/forum/read.php?3,18246,18285#msg-18285 Thanks to everybody! I'm leaning towards the solution using methods + usebundle(), which seems to better suit my needs (

Cfengine Help: Re: Accessing variables declared within cf3 modules

2010-09-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Accessing variables declared within cf3 modules Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,18279,18284#msg-18284 Sure it is ). Don't blame yourself too hard, though. The reference manual is very complex and not very readable. Som

Cfengine Help: Re: Accessing variables declared within cf3 modules

2010-09-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Accessing variables declared within cf3 modules Author: nima Link to topic: https://cfengine.com/forum/read.php?3,18279,18283#msg-18283 Seva - you're the man! I am confused as to how I have missed this language feature from the reference manual - I've been throu

Cfengine Help: Re: Accessing variables declared within cf3 modules

2010-09-16 Thread no-reply
Forum: Cfengine Help Subject: Re: Accessing variables declared within cf3 modules Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,18279,18282#msg-18282 Nima, clearly, the variable is accessible within its context. To call it outside a context, add context name, like

Re: cfengine.com is very slow for me right now... took 5 minutes to login. Now "my cache" is slow to come up. EOM

2010-09-16 Thread Eystein Måløy Stenberg
Hi, I don't have any issues of this kind. Is it a browser issue? The network you are on? -- Regards, Eystein On Thu, Sep 16, 2010 at 2:43 AM, Aleksey Tsalolikhin wrote: > I am in Los Angeles.  The main cfengine.com site pages come up reasonably > fast but when I go to login, it starts getting i