help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy cfagent bug


From: Mark . Burgess
Subject: Re: Easy cfagent bug
Date: Wed, 28 Aug 2002 22:31:55 +0200 (MET DST)

Ah yes, the variable/class space of update.conf and cfagent.conf
are private in 2.0.4, so you need to just repeat the test
in cfagent.conf


Mark

On 28 Aug, David J. Bianco wrote:
> On Tue, 2002-08-27 at 13:09, Mark.Burgess@iu.hio.no wrote:
>> 
>> 
>> I'm not sure that this is exactly right.
>> If server= something, then a different
>> function is used. You should be able to see this
>> in debugging mode -d2. You should see the message
>> 
>> Send digest of %s to server, if it goesover the net
>> 
>> and
>> 
>> CompareCheckSums(%s,%s), if it does not
>> 
> 
> Mark, my apologies.  You're absolutely right.  I'm not sure 
> exactly how I got so far off the mark, but now I figured out why
> I'm seeing what I'm seeing and it doesn't have to do with the
> checksums.  I'm not sure if it's a bug or just something I need to
> update in my configs from 2.0.3 to 2.0.4, but here goes:
> 
> I have a class, CF_TESTBED, which cfagent computes at runtime to
> let it know if it should sync it's binaries and config files with
> the production version or the testbed version (the version that will
> eventually be production but isn't yet).  It's controlled by the
> presence of a /var/cfengine/TESTBED file on those machines which are
> to run the testbed code.  It's defined thusly in my update.conf:
> 
> classes:
> 
>    # The following machines get the testbed configuration files rather 
>    # than the production files!
>    CF_TESTBED = ( FileExists(/var/cfengine/TESTBED) )
> 
> In 2.0.3, this works fine.  In 2.0.4b1, I see the following in the
> debugging output:
> 
> [.....]
> Actionsequence item shellcommands
> linux.UPDATE_BINARIES_CHANGED is excluded!
> Purging private classes from context update
> Deleting context private class CF_TESTBED from heap
> Delete Item: CF_TESTBED
> 
>  * (Changing context state to: main) *
> 
> AddClassToHeap(Users_high_normal)
> AddMacroValue(value_users=8)
> Added Macro at hash address 285: value_users=8
> AddMacroValue(average_users=2.4)
> Added Macro at hash address 186: average_users=2.4
> [....]
> 
> 
> The DeleteClassesFromContext() function seems to be new in 2.0.4b1.
> Is there something else I should be doing to use the CF_TESTBED class
> properly?  Right now, when I run 2.0.4b1, this behavior copies the
> production 2.0.3 binaries.  When cfagent runs the next time, it doesn't
> delete the class so copies the 2.0.4b1 binaries, which means that it
> runs next time with this code and so copies the 2.0.3... you get the
> idea.
> 
>       Thanks,
>         David
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






reply via email to

[Prev in Thread] Current Thread [Next in Thread]