Frans,

it seems that there was a small miscalculation leaving one slot that 
could never be reached. If you try the latest svn, this should fix that 
now. Sorry for the bother.

M

On 08/04/11 17:05, Frans Lawaetz wrote:
> I can't seem to figure out why a particular promise isn't activating
> universally. A few days ago I implemented the following promises:
>
>     commands:
>     day_splay.vmhost::
>     "/some/executable.sh",
>     contain => silent,
>     module => "true";
>
>     day_splay.vmhost.needsupgrade::
>     "/usr/sbin/vmware-tools-upgrader -p \"--default\"",
>     contain => silent;
>
>
> the day_splay class is defined in a common bundle as follows:
>
> "day_splay" expression => splayclass("$(sys.host)$(sys.ipv4)","daily");
>
> Currently cf-execd is set to run cf-agent every 15 minutes.
>
> The intent is to have the VMs in the environment check their VMWare
> tools version once a day and upgrade if necessary. It doesn't seem to be
> evaluating true 1x/day as promised on all hosts. It's now three days
> after the promise was implemented and I'd say 15% of my VMs haven't
> successfully upgraded their tools. I have confirmed in the logs on the
> cf-serverd side that the hosts in question are checking in regularly. If
> I remove the day_splay classification everything goes according to plan.
>
> Is it possible that with a sufficiently large splaytime in cf-execd.cf
> that day_splay and splaytime will never (or inconsistently) coincide?
> This seems counter to my understanding of cfengine's sense of time
> (e.g., lastseen) but it is all I can think of at the moment.
>
> Since it will be asked, "/some/executable.sh" contains the following:
>
>     if ! /usr/bin/vmware-config-tools.pl -h 2>&1 | grep -qi ' 8.3.7
>     build-341836'
>     then
>     echo -n '+needsupgrade'
>     fi
>
>
>
> Thanks,
> Frans
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to