Re: cf3 (svn): cfagent.hostname.log, promises not repaired

Matt Richards <[email protected]> Fri, 6 Nov 2009 13:36:25 -0500
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
Sorry, I should have posted the details. I tried the most recent svn,
but svn604 will not compile for me. svn596 was the last version that
worked for me. Below is the test case:

body common control {

  bundlesequence =3D> { "test"};

}

bundle agent test {

  files:

    "/tmp/test"
       comment   =3D> "create a test file",
       create       =3D> "true";

}

Below is the relevant output:

cf3     .........................................................
cf3     Promise handle:
cf3     Promise made by: /tmp/test
cf3
cf3     Comment:  create a test file
cf3     .........................................................
cf3
cf3  -> Using literal pathtype for /tmp/test
cf3  -> File /tmp/test exists as promised
cf3  -> Handling file existence constraints on /tmp/test
cf3 File /var/cfengine/cfagent.hostname.log could not be loaded
cf3  !!! System reports error for stat: "No such file or directory"
cf3 Did not find a previous setuid log /var/cfengine/cfagent.hostname.log
cf3
cf3      +  Private classes augmented:
cf3
cf3      -  Private classes diminished:
cf3
cf3
cf3


On Fri, Nov 6, 2009 at 1:00 PM, Eystein M=E5l=F8y Stenberg
<[email protected]> wrote:
> Thank you for the report.
> I am unable to reproduce the problem right now, could you please check
> if it still exists in current svn, and if so, provide a the policy that
> causes it?
>
> Best regards,
> Eystein M=E5l=F8y Stenberg
>
> On 11/06/2009 02:12 PM, Matt Richards wrote:
>> Yes, that could be done, but I believe a permanent fix would be better.
>>
>> On Fri, Nov 6, 2009 at 8:05 AM, Nakarin Phooripoom
>> <[email protected]> =A0wrote:
>>> This log file was provided for compatibility with cf2, but it is no lon=
ger
>>> used for cf3. You may trick cf3 to count it as Promises observed to be =
kept
>>> by using this command.
>>>
>>> # touch /var/cfengine/cfagent.`hostname`.log
>>>
>>> Cheers,
>>> --Nakarin
>> _______________________________________________
>> Bug-cfengine mailing list
>> [email protected]
>> https://cfengine.org/mailman/listinfo/bug-cfengine
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine
>