Thanks, Mark! I was beating my head against the wall on this one. :)

I'll update the ticket I opened and let support know this is a known
issue so they can close the ticket.

Justin

-----Original Message-----
From: Mark Burgess [mailto:mark.burg...@iu.hio.no] 
Sent: Wednesday, February 17, 2010 1:57 AM
To: Justin Lloyd
Cc: help-cfengine@cfengine.org
Subject: Re: Directory perms and ownership not getting set


Justin,

have you broken our software again ;-)  We found this problem last week
- remarkable that
it's the simplest things that go awry. Anyway, this will be fixed in the
updates that will
be available at the end of the month. Sorry for the inconvenience.

cheers,
Mark

Justin Lloyd wrote:
> I've opened a ticket with Cfengine but I wanted to see if anyone else
> can replicate this problem. I've whittled it down to its essence,
having
> copied in the library.cf:mog() body for test consistency. Basically, I
> cannot seem to get Cfengine Nova to create a directory and set its
> ownership and permissions. I have tested this on RHEL 5 and Solaris
10.
> Can anyone duplicate this?
> 
> Thanks,
> Justin
> 
> [r...@gdcscf3lgmt01 masterfiles.devel]# cat dirtest.cf 
> body common control {
>     bundlesequence => { "test" };
> }
> 
> bundle agent test {
>     files:
>         "/var/testdir/."
>             create => "true",
>             perms => mog("0775", "root", "sys");
> }
> 
> body perms mog(mode,user,group)
> {
> owners => { "$(user)" };
> groups => { "$(group)" };
> mode   => "$(mode)";
> }
> 
> [r...@gdcscf3lgmt01 masterfiles.devel]# ls -ld /var/testdir
> ls: /var/testdir: No such file or directory
> [r...@gdcscf3lgmt01 masterfiles.devel]# /var/cfengine/bin/cf-agent
-vKf
> ./dirtest.cf 
> [...snipped output for brevity...]
> nova>     .........................................................
> nova>     Promise handle: promise_dirtest_cf_9
> nova>     Promise made by: /var/testdir/.
> nova>     .........................................................
> nova> 
> nova>  -> Using literal pathtype for /var/testdir/.
> nova>  -> Created directory /var/testdir/.
> nova>  -> Handling file existence constraints on /var/testdir/.
> nova>  -> Promise to skip base directory /var/testdir/.
> nova> 
> nova>      +  Private classes augmented:
> nova> 
> nova>      -  Private classes diminished:
> nova> 
> nova> 
> nova> 
> nova>    =========================================================
> nova>    files in bundle test (2)
> nova>    =========================================================
> nova> 
> nova> 
> nova>      +  Private classes augmented:
> nova> 
> nova>      -  Private classes diminished:
> nova> 
> nova> 
> nova> 
> nova>    =========================================================
> nova>    files in bundle test (3)
> nova>    =========================================================
> nova> 
> nova> Outcome of version (not specified) (agent-0): Promises observed
to
> be kept 50%, Promises repaired 50%, Promises not repaired 0%
> [r...@gdcscf3lgmt01 masterfiles.devel]# ls -ld /var/testdir
> drwxr-xr-x 2 root root 4096 Feb 16 23:12 /var/testdir
> [r...@gdcscf3lgmt01 masterfiles.devel]#
> 
> 
> 
> This electronic communication and any attachments may contain
confidential and proprietary 
> information of DigitalGlobe, Inc. If you are not the intended
recipient, or an agent or employee 
> responsible for delivering this communication to the intended
recipient, or if you have received 
> this communication in error, please do not print, copy, retransmit,
disseminate or 
> otherwise use the information. Please indicate to the sender that you
have received this 
> communication in error, and delete the copy you received. DigitalGlobe
reserves the 
> right to monitor any electronic communication sent or received by its
employees, agents 
> or representatives.
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-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
-------------------------------------------------

This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to