Cfengine Help: Re: question on bundle sequence vs. ifelapsed

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: Re: question on bundle sequence vs. ifelapsed Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,19154,19183#msg-19183 Bernhard, to keep indentation and everything else in your promises use "code" button (2nd from the right). It can be gues

Re: readstringlist in 3.1.0

2010-11-09 Thread Daniel V. Klein
Good catch, Michael - but here's the weird bit - it turns out that the list is actually there, you just can't iterate over it! -Dan body common control { bundlesequence => { setup, atest }; version=> "0.01"; } bundle agent setup { files: "/tmp/foo" create => "true", edit_lin

static build

2010-11-09 Thread Michael Potter
Anyone able to do a static build (no dynlink against libpromises) on Solaris10? I am able to do it successfully on Linux using --enable-static --disable-shared - but on Solaris it always comes out linking dynamically against libpromises. This makes on-the-fly binary upgrades hard (when the current

readstringlist in 3.1.0

2010-11-09 Thread Michael Potter
It seems that readstringlist in 3.1.0 has trouble reading a single word/line from a file. The attached self-enclosed bundle will create a file /tmp/foo with a single word in it. If you run it under 3.0.5, it successfully reads that single word and reports on it. Under 3.1.0, it is not able to extra

Cfengine Help: Re: Yum Package problem in CF3

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: Re: Yum Package problem in CF3 Author: splum Link to topic: https://cfengine.com/forum/read.php?3,19078,19179#msg-19179 Good catch, but still no dice. Apparently I was working with an older version of the standard library, so that's one problem solved, but it didn't

Re: "was not able to copy file" - critical corruption during cf-agentrun

2010-11-09 Thread Seva Gluschenko
Frans, can you show not just one mycopy promise (which I'm pretty sure is innocent with respect to that issue), but the second promise as well? >From my point of view it seems like the second promise broke the file while the first one was simply unable to repair it that unhappy time. 2010/11/9 Fr

Re: "was not able to copy file" - critical corruption during cf-agentrun

2010-11-09 Thread Frans Lawaetz
So you are quite right that there is more to the story. I dug around in my bundles and found that there was overlap with respect to this file. A generic "centos_5" promise included update of limits.conf whereas further down in the bundle I had a more specific class "centos_5.special_hosts" which

Cfengine Help: Re: Yum Package problem in CF3

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: Re: Yum Package problem in CF3 Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,19078,19176#msg-19176 I notice that the yum_rpm method has different regex strings than the yum method in cfengine_stdlib.cf. Have you tried setting package_method to

Cfengine Help: getindices("sys.ipv4") broken in 3.1.0

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: getindices("sys.ipv4") broken in 3.1.0 Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,19175,19175#msg-19175 The function getindices(sys.ipv4) resturns nothing and appears to be broken in cfengine 3.1.0. Consider the following bundle: body commo

Re: "was not able to copy file" - critical corruption during cf-agentrun

2010-11-09 Thread Frans Lawaetz
Mike, cf-serverd was terminated by pkill during the cron restart of cf3 services. pkill defaults to SIGTERM. I will attempt to reproduce using a test environment and a looping cf-serverd / cf-agent script that sigterms cf-serverd at increasing time intervals after cf-agent executes. Frans

Re: "was not able to copy file" - critical corruption during cf-agentrun

2010-11-09 Thread Seva Gluschenko
I'm pretty sure there's some uncovered detail behind that issue. Usually that detail hides in promises. I understand that one rarely feels happy about showing their promises to the public since they can tell too much about the system, but this is the case when exact promises snapshot would really s

Re: "was not able to copy file" - critical corruption during cf-agentrun

2010-11-09 Thread Mike Hoskins
Apologies for email without enough coffee -- Please s/cf-execd/cf-serverd/g in my comments. I'd be mostly curious if this is easily reproducible, or simply an edge case that needs identified. On 11/9/10 9:16 AM, "Mike Hoskins" wrote: > If he'd kill -9'd cf-execd, I'd expect corruption. Since t

Re: "was not able to copy file" - critical corruption during cf-agentrun

2010-11-09 Thread Mike Hoskins
If he'd kill -9'd cf-execd, I'd expect corruption. Since the output he pasted looked like it was a signal 15, I would have expected it to be caught and cleaned up after (e.g. Finish in-progress transfers). Further, the cf2 behavior of copying to a temp file and then moving into place does still w

Re: "was not able to copy file" - critical corruption during cf-agent run

2010-11-09 Thread Frans Lawaetz
Seva, I wish I had been able to inspect the system but with limits.conf corrupted I couldn't log in and opted to rebuild the OS as it was a production server. Next time (I'm really hoping there won't be one) I will pull a drive and mount it elsewhere. The syslog messages the host sent indicated t

Re: "was not able to copy file" - critical corruption during cf-agent run

2010-11-09 Thread Seva Gluschenko
Frans, this all sounds very strange indeed. I never heard that Cfengine would be able to harm any file because of corruption in transfer. If you kept the damaged file and that moment cfengine inputs by any change, it would be really good data to analyze. I've experienced some inconsistencies relat

Re: Strategies for modular bundlesequence and inputs

2010-11-09 Thread Daniel V. Klein
I still think you're making future development/debugging a difficult process, but I also like the way you're setting things up - it is clean and easy to understand, and that is _always_ a good thing :-) -Dan On Nov 9, 2010, at 2:51 AM, Marc Baudoin wrote: > Marc Baudoin écrit : >> >> As the

Cfengine Help: Re: How to reset hostsseeen?

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: Re: How to reset hostsseeen? Author: hristob Link to topic: https://cfengine.com/forum/read.php?3,18860,19167#msg-19167 In addition I do not have good values After I manually run cf-agent -KI on a host it does not appear in Found list on server. Is that a bug?

Cfengine Help: Re: question on bundle sequence vs. ifelapsed

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: Re: question on bundle sequence vs. ifelapsed Author: bglomm Link to topic: https://cfengine.com/forum/read.php?3,19154,19163#msg-19163 Seva, thnx! Well here are the files that I produced that effect... DON'T run them on your system (without adjusting) :-/ they WILL

Re: cf-runagent question

2010-11-09 Thread Bas van der Vlies
On 9 nov 2010, at 12:17, Seva Gluschenko wrote: > Again, from my experience -H allows for successful run against 300+ > hosts, so it's not a problem, especially when the host list is > provided by a shell script which takes that list from the database. > > Speaking about urgency, you'd better no

Cfengine Help: Re: question on bundle sequence vs. ifelapsed

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: Re: question on bundle sequence vs. ifelapsed Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,19154,19160#msg-19160 Bernhard, show us some real world example. I have a bunch of ifelapsed promises, and nothing stops from execution just be

Cfengine Help: Re: duplicate selection of value error

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: Re: duplicate selection of value error Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19046,19164#msg-19164 Update. I upgraded to 3.1.0 final yesterday but still see this warning. ___ Help-cfengin

Cfengine Help: Re: bundlesequence and inputs using readstringlist

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: Re: bundlesequence and inputs using readstringlist Author: skibumatbu Link to topic: https://cfengine.com/forum/read.php?3,19057,19166#msg-19166 Yup... Works flawlessly now! Thanks for the help, Seva. Just to help people in the future, the below is what I am using:

Re: "was not able to copy file" - critical corruption during cf-agent run

2010-11-09 Thread Frans Lawaetz
On 11/09/2010 05:46 AM, Seva Gluschenko wrote: > No, definitely. A file isn't installed in place of older one until > it's copied succefully. > Seva, that's what has me so alarmed. Like you and Neil pointed out, I can take steps to minimize the odds of cf-serverd getting terminated while e

Re: cf-runagent question

2010-11-09 Thread Seva Gluschenko
Again, from my experience -H allows for successful run against 300+ hosts, so it's not a problem, especially when the host list is provided by a shell script which takes that list from the database. Speaking about urgency, you'd better not consider Cfengine as the immediate tool (still from my exp

Re: cf-runagent question

2010-11-09 Thread Bas van der Vlies
On 9 nov 2010, at 11:50, Seva Gluschenko wrote: > From my experience, cf-runagent is best invoked with -H. I > tried -s and it failed, AFAIR. > Thanks for the info. we have a lot of hosts so -H is not an option. I will make separate files for each cluster and use -f option. Sometime we must u

Re: Strategies for modular bundlesequence and inputs

2010-11-09 Thread Marc Baudoin
Marc Baudoin écrit : > > As the number of different types of hosts in my configuration > grows, I wonder what are the strategies for making bundlesequence > and inputs more modular. > > I define a class for each type of hosts so, of course, there's > the class approach: > > body common control

Cfengine Help: question on bundle sequence vs. ifelapsed

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: question on bundle sequence vs. ifelapsed Author: bglomm Link to topic: https://cfengine.com/forum/read.php?3,19154,19154#msg-19154 Hi all, I just experienced a behaviour that seems strange, would be happy about any hint: I have a bunch of bundles that all run fine

Re: cf-runagent question

2010-11-09 Thread Seva Gluschenko
>From my experience, cf-runagent is best invoked with -H. I tried -s and it failed, AFAIR. 2010/11/9 Bas van der Vlies : > cfengine cmmunity edition: 3.1.0 > > > config file: > > body runagent control > { >        Lisa:: >                hosts => { >                        "gb-r10n2.irc.sara.nl",

Re: "was not able to copy file" - critical corruption during cf-agent run

2010-11-09 Thread Seva Gluschenko
No, definitely. A file isn't installed in place of older one until it's copied succefully. 2010/11/9 Bas van der Vlies : > > On 9 nov 2010, at 10:53, Seva Gluschenko wrote: > >> Well, Cfengine reports in deed that a file was corrupted in transfer. >> It doesn't report about replacing the old file,

Re: Strategies for modular bundlesequence and inputs

2010-11-09 Thread Marc Baudoin
Bas van der Vlies écrit : > > On 9 nov 2010, at 11:32, Marc Baudoin wrote: > > > Sure, better than nothing. It works for bundlesequence but not > > for inputs. I just got this error message: > > > > Can't stat file "/var/cfengine/inputs/@(g.inputs)" for parsing > > > > Is it possible to use

Re: Strategies for modular bundlesequence and inputs

2010-11-09 Thread Bas van der Vlies
On 9 nov 2010, at 11:32, Marc Baudoin wrote: > Michael Potter écrit : >> On Tue, Nov 9, 2010 at 1:39 AM, Marc Baudoin >> wrote: >>> >>> As the number of different types of hosts in my configuration >>> grows, I wonder what are the strategies for making bundlesequence >>> and inputs more modula

Re: Strategies for modular bundlesequence and inputs

2010-11-09 Thread Marc Baudoin
Michael Potter écrit : > On Tue, Nov 9, 2010 at 1:39 AM, Marc Baudoin > wrote: > > > > As the number of different types of hosts in my configuration > > grows, I wonder what are the strategies for making bundlesequence > > and inputs more modular. > > I have dealt with this topic at length. The

cf-runagent question

2010-11-09 Thread Bas van der Vlies
cfengine cmmunity edition: 3.1.0 config file: body runagent control { Lisa:: hosts => { "gb-r10n2.irc.sara.nl", }; } Question is how do i select all hosts in class LIsa. I have tried 'cf-runagent -select-class Lisa' without any s

Re: "was not able to copy file" - critical corruption during cf-agent run

2010-11-09 Thread Bas van der Vlies
On 9 nov 2010, at 10:53, Seva Gluschenko wrote: > Well, Cfengine reports in deed that a file was corrupted in transfer. > It doesn't report about replacing the old file, though, i.e. don't > treat the message that seriously. > ? It could not login into the system due a corrupted file. > 2010/1

Re: "was not able to copy file" - critical corruption during cf-agent run

2010-11-09 Thread Seva Gluschenko
Well, Cfengine reports in deed that a file was corrupted in transfer. It doesn't report about replacing the old file, though, i.e. don't treat the message that seriously. 2010/11/9 Bas van der Vlies : > Maybe i am misreading the info. But the mail is about a file gets corrupted > during a copy.  

Re: "was not able to copy file" - critical corruption during cf-agent run

2010-11-09 Thread Bas van der Vlies
Maybe i am misreading the info. But the mail is about a file gets corrupted during a copy. to my knowledge this should not happen when On 9 nov 2010, at 10:22, Seva Gluschenko wrote: > Of course, Cfengine3 acts the same way, file never gets installed > directly in place of an older file. > M

Re: "was not able to copy file" - critical corruption during cf-agent run

2010-11-09 Thread Seva Gluschenko
Of course, Cfengine3 acts the same way, file never gets installed directly in place of an older file. 2010/11/9 Bas van der Vlies : > > On 9 nov 2010, at 08:37, Seva Gluschenko wrote: > >> Frans, >> >> since you're terminating cf-serverd in the middle of a file transfer, >> the receiving agent rea