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

View: New views
10 Messages — Rating Filter:   Alert me  

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

by Matt Richards-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Greetings.

If /var/cfengine/cfagent.hostname.log does not exist, I get this error:

cf3  -> Using literal pathtype for /etc/services
cf3  -> Handling file existence constraints on /etc/services
cf3 File /var/cfengine/cfagent.XXXX.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.XXXX.log


This counts as a promise not repaired. I am not sure if this is still
needed cf3.
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine

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

by Nakarin Phooripoom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This log file was provided for compatibility with cf2, but it is no  
longer 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

On Nov 6, 2009, at 1:41 PM, Matt Richards wrote:

> Greetings.
>
> If /var/cfengine/cfagent.hostname.log does not exist, I get this  
> error:
>
> cf3  -> Using literal pathtype for /etc/services
> cf3  -> Handling file existence constraints on /etc/services
> cf3 File /var/cfengine/cfagent.XXXX.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.XXXX.log
>
>
> This counts as a promise not repaired. I am not sure if this is still
> needed cf3.
> _______________________________________________
> Bug-cfengine mailing list
> Bug-cfengine@...
> https://cfengine.org/mailman/listinfo/bug-cfengine

_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine

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

by Matt Richards-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
<mynameisjeang@...> wrote:
> This log file was provided for compatibility with cf2, but it is no longer
> 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
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine

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

by Eystein Måløy Stenberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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åløy 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
> <mynameisjeang@...>  wrote:
>> This log file was provided for compatibility with cf2, but it is no longer
>> 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
> Bug-cfengine@...
> https://cfengine.org/mailman/listinfo/bug-cfengine
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine

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

by Mark Burgess :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


This might have been fixed already in svn. Try the latest svn. We'll follow up next week
when I return from a conference.

Eystein Måløy Stenberg 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åløy 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
>> <mynameisjeang@...>  wrote:
>>> This log file was provided for compatibility with cf2, but it is no longer
>>> 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
>> Bug-cfengine@...
>> https://cfengine.org/mailman/listinfo/bug-cfengine
> _______________________________________________
> Bug-cfengine mailing list
> Bug-cfengine@...
> https://cfengine.org/mailman/listinfo/bug-cfengine

--
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine

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

by Jacque LaRue :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I agree this a permanent fix would be ideal, I would be interested on how this is done in Nova, if that is not a proprietary secret... Just an exclude on this kind of issue?
--Jack
--- On Fri, 11/6/09, Matt Richards <defrayable@...> wrote:

> From: Matt Richards <defrayable@...>
> Subject: Re: cf3 (svn): cfagent.hostname.log, promises not repaired
> To: "Nakarin Phooripoom" <mynameisjeang@...>
> Cc: "bug-cfengine" <bug-cfengine@...>
> Date: Friday, November 6, 2009, 1:12 PM
> 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
> <mynameisjeang@...>
> wrote:
> > This log file was provided for compatibility with cf2,
> but it is no longer
> > 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
> Bug-cfengine@...
> https://cfengine.org/mailman/listinfo/bug-cfengine
>


     
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine

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

by Matt Richards-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 => { "test"};

}

bundle agent test {

  files:

    "/tmp/test"
       comment   => "create a test file",
       create       => "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åløy Stenberg
<eystein.stenberg@...> 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åløy 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
>> <mynameisjeang@...>  wrote:
>>> This log file was provided for compatibility with cf2, but it is no longer
>>> 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
>> Bug-cfengine@...
>> https://cfengine.org/mailman/listinfo/bug-cfengine
> _______________________________________________
> Bug-cfengine mailing list
> Bug-cfengine@...
> https://cfengine.org/mailman/listinfo/bug-cfengine
>
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine

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

by Matt Richards-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I did manage to get svn604 to compile, something odd with libtool, and
I do get the same results.

On Fri, Nov 6, 2009 at 1:10 PM, Mark Burgess <Mark.Burgess@...> wrote:
>
> This might have been fixed already in svn. Try the latest svn. We'll follow up next week
> when I return from a conference.
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine

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

by Mark Burgess :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I have changed this status so that it no longer reports as not repaired.

Matt Richards wrote:

> Greetings.
>
> If /var/cfengine/cfagent.hostname.log does not exist, I get this error:
>
> cf3  -> Using literal pathtype for /etc/services
> cf3  -> Handling file existence constraints on /etc/services
> cf3 File /var/cfengine/cfagent.XXXX.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.XXXX.log
>
>
> This counts as a promise not repaired. I am not sure if this is still
> needed cf3.
> _______________________________________________
> Bug-cfengine mailing list
> Bug-cfengine@...
> https://cfengine.org/mailman/listinfo/bug-cfengine

--
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine

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

by Matt Richards-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Mark, works like a champ. You rock. Welcome back.

On Mon, Nov 9, 2009 at 7:18 AM, Mark Burgess <Mark.Burgess@...> wrote:

>
> I have changed this status so that it no longer reports as not repaired.
>
> Matt Richards wrote:
>> Greetings.
>>
>> If /var/cfengine/cfagent.hostname.log does not exist, I get this error:
>>
>> cf3  -> Using literal pathtype for /etc/services
>> cf3  -> Handling file existence constraints on /etc/services
>> cf3 File /var/cfengine/cfagent.XXXX.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.XXXX.log
>>
>>
>> This counts as a promise not repaired. I am not sure if this is still
>> needed cf3.
>> _______________________________________________
>> Bug-cfengine mailing list
>> Bug-cfengine@...
>> https://cfengine.org/mailman/listinfo/bug-cfengine
>
> --
> Mark Burgess
>
> -------------------------------------------------
> Professor of Network and System Administration
> Oslo University College, Norway
>
> Personal Web: http://www.iu.hio.no/~mark
> Office Telf : +47 22453272
> -------------------------------------------------
>
_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine