Re: Weird behavior with update promises and subfolder

Jean-Noël Rivasseau <[email protected]> Tue, 1 Dec 2009 09:27:50 -0800
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
--===============0347765968==
Content-Type: multipart/alternative; boundary=0016e65c8c02d39ace0479ae1348

--0016e65c8c02d39ace0479ae1348
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello,

I am replying to this old thread (two monthes old only, actually) that I
found via Googling. I also have this problem and it is 100% reproducible in
my case.

I am using Gentoo on both the server and the client, with version 3.0.2. Th=
e
version of OpenSSL is identical in both cases, 0.9.8l (note that it also
failed using 0.9.8l on the server and 0.9.8k on the client).

This is my promises.cf:

bundle agent setupPhase
{
        files:
                "/srv/demo-phpbb/" copy_from =3D>
fastCopyFromRemote("${global.OVERMIND_HOST}",
"${global.UNISON_REPOSITORY_PATH}demo-phpbb/"), depth_search =3D> recurse,
perms =3D> apache;
}

body copy_from fastCopyFromRemote(server, path)
{
    servers =3D> {"${server}"};
    encrypt =3D> "true";
    trustkey =3D> "true";
    source =3D> "${path}";
    compare =3D> "digest";
    preserve =3D> "false";
    purge =3D> "true";
    copy_backup =3D> "false";
}

body depth_search recurse
{
    depth =3D> "inf";
}

I am linking the demo-phpbb/ directory for you to reproduce the bug, as I
think it is somehow important (on other directories I am not hit by this
problem, so it is something strange in this directory that is causing the
bug, although I checked and everything seems normal...). It is available at

http://test.elvanor.net/bugs/demo-phpbb.zip

I hope you can debug and fix this problem as it is quite critical IMHO (not
only it does not copy correctly the directory, it completely hangs the
cf-agent process while encountering garbage).

Jean-Noel

Mark,
>
> On the Ubuntu server I have OpenSSL 0.9.8g
> On the Cygwin client I have OpenSSL 0.9.8k
> And on the Fedora client, I have OpenSSL 0.9.8k-fips
>
> So yes, it's more than likely that it is a OpenSSL issue since both
> clients fails the same way,
>
> Regards,
> Nicolas
>
> Mark Burgess a =C3=A9crit :
> > Nicholas,
> >
> > I have been trying hard to reproduce this error but I have not been abl=
e to.
> > The problem is that encryption fails in the final transmission causing =
file
> > data
> > to be apparent garbage.
> >
> > I will try a few more things before giving up. May I ask what kind of s=
ystems
> > are running this? Do they have the same versions of OpenSSL?
> >
> > M
> >
> >
> > Nicolas Charles wrote:
> >
> >> Hi,
> >>
> >> I'm having a nasty behavior with the updating of promises when having =
a
> >> subfolder.
> >> Here is my update.cf :
> >>
> >>
> >> #
> >> # Define what an agent has to do when it updates
> >> # its promises
> >> #
> >>
> >> #simple copy method
> >> body copy_from remote(server, path) {
> >>
> >> servers =3D> {
> >> "${server}"
> >> };
> >> encrypt =3D> "true";
> >> trustkey =3D> "true";
> >> source =3D> "${path}";
> >> compare =3D> "digest";
> >> preserve =3D> "false"; #preserver permissions
> >> verify =3D> "true";
> >> purge =3D> "true";
> >> owners =3D> {"slave"};
> >> }
> >>
> >> #simple recurse method
> >>
> >>
> >> bundle agent update {
> >> vars:
> >> any::
> >> "cfserved" string =3D> "192.168.56.101"; #server IP
> >> "policy_files" string =3D> "/srv/cf-served"; #directory where to look =
for
> >> promises in the server for that client
> >> "server_inputs" string =3D> "${policy_files}/inputs"; #actual director=
y
> >> with promises, just to show the use of variables
> >> "client_inputs" string =3D> "${sys.workdir}/inputs"; #where to put the
> >> files on the client when downloaded
> >>
> >> files:
> >> any::
> >> "${client_inputs}" #that's a loop on each files in client_inputs
> >> copy_from =3D> remote("${cfserved}","${server_inputs}"),
> >> depth_search =3D> recurse_visible("inf");
> >> }
> >>
> >>
> >>
> >> On my server, I have
> >> /srv/cf-served/inputs : the promises
> >> /srv/cf-served/inputs/resources : variables, resources, etc
> >> If resources folder is empty (or better, doesn't exist), it is great
> >> If there is one empty file, it works great
> >>
> >> But if /srv/cf-served/inputs/resources contains a file (let's call it
> >> simple_its.txt) containing "foo baz" (or whatever), here is the update
> >> behavior :
> >> cf3 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >> cf3 files in bundle update (1)
> >> cf3 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >> cf3
> >> cf3 Verifying SQL table promises is only available with Cfengine Nova =
or
> >> above
> >> cf3
> >> cf3 .........................................................
> >> cf3 Promise handle:
> >> cf3 Promise made by: /var/cfengine/inputs
> >> cf3 .........................................................
> >> cf3
> >> cf3 -> Handling file existence constraints on /var/cfengine/inputs
> >> cf3 -> Copy file /var/cfengine/inputs from /srv/cf-served/inputs check
> >> cf3 Found address (192.168.56.101) for host 192.168.56.101
> >> cf3 Found address (192.168.56.101) for host 192.168.56.101
> >> cf3 No existing connection to 192.168.56.101 is established...
> >> cf3 Set cfengine port number to 5308 =3D 5308
> >> cf3 Connect to 192.168.56.101 =3D 192.168.56.101, port =3D (5308=3D530=
8)
> >> cf3 LastSaw host 192.168.56.101 now
> >> cf3 Found address (192.168.56.101) for host 192.168.56.101
> >> cf3 Loaded /var/cfengine/ppkeys/root-192.168.56.101.pub
> >> cf3 .....................[.h.a.i.l.].................................
> >> cf3 Strong authentication of server=3D192.168.56.101 connection confir=
med
> >> cf3 Found address (192.168.56.101) for host 192.168.56.101
> >> cf3 !! (Destination purging enabled)
> >> cf3 ->> Entering /srv/cf-served/inputs
> >> (snip)
> >> cf3 -> Destination file /var/cfengine/inputs/site.cf already exists
> >> cf3 -> File permissions on /var/cfengine/inputs/site.cf as promised
> >> cf3 -> File /var/cfengine/inputs/site.cf is an up to date copy of sour=
ce
> >> cf3 -> /var/cfengine/inputs/update.cf~ wasn't at destination (copying)
> >> cf3 -> Copying from 192.168.56.101:/srv/cf-served/inputs/update.cf~
> >> cf3 -> Copy of regular file succeeded /srv/cf-served/inputs/update.cf~
> >> to /var/cfengine/inputs/update.cf~.cfnew
> >> cf3 ?? Final verification of transmission ...
> >> cf3 -> New file /var/cfengine/inputs/update.cf~.cfnew transmitted
> >> correctly - verified
> >> cf3 -> Group of /var/cfengine/inputs/update.cf~ was 513, setting to 0
> >> cf3 -> File permissions on /var/cfengine/inputs/update.cf~ as promised
> >> cf3 -> Updated file from 192.168.56.101:/srv/cf-served/inputs/update.c=
f~
> >> cf3 ->> Entering /var/cfengine/inputs/resources
> >> cf3 -> File permissions on /var/cfengine/inputs/resources as promised
> >> cf3 -> Destination file /var/cfengine/inputs/resources/simple_ips.txt~
> >> already exists
> >> cf3 -> File permissions on
> >> /var/cfengine/inputs/resources/simple_ips.txt~ as promised
> >> cf3 -> File /var/cfengine/inputs/resources/simple_ips.txt~ is an up to
> >> date copy of source
> >> cf3 -> /var/cfengine/inputs/resources/simple_ips.txt wasn't at
> >> destination (copying)
> >> cf3 -> Copying from
> >> 192.168.56.101:/srv/cf-served/inputs/resources/simple_ips.txt
> >> cf3 !! Copy from
> >> 192.168.56.101:/srv/cf-served/inputs/resources/simple_ips.txt failed
> >> cf3 !! Purging /var/cfengine/inputs/resources/simple_ips.txt.cfnew in
> >> copy dest directory
> >> cf3 Transmission refused or failed statting
> >> /srv/cf-served/inputs/ocsi-agent.cf
> >> Got: =C3=89=C3=B2=C3=9E=C2=88=C2=A1=C3=8D=C3=A4=C3=AD
> >> cf3 !! (Can't stat /srv/cf-served/inputs/ocsi-agent.cf)
> >> cf3 !!! System error for cf_stat: "Operation not permitted"
> >> cf3 -> Destination file /var/cfengine/inputs/promises.cf already exist=
s
> >> cf3 !! Image file /var/cfengine/inputs/promises.cf has a wrong MD5
> >> checksum (should be copy of /srv/cf-served/inputs/promises.cf)
> >> cf3 -> Updated /var/cfengine/inputs/promises.cf from source
> >> /srv/cf-served/inputs/promises.cf on 192.168.56.101
> >> cf3 Was not able to copy /srv/cf-served/inputs/promises.cf to
> >> /var/cfengine/inputs/promises.cf
> >> cf3 I: Report relates to a promise with handle ""
> >> cf3 I: Made in version 'not specified' of
> >> '/var/cfengine/inputs/update.cf' near line 37
> >> cf3 -> Destination file /var/cfengine/inputs/library.cf already exists
> >> cf3 !! Image file /var/cfengine/inputs/library.cf has a wrong MD5
> >> checksum (should be copy of /srv/cf-served/inputs/library.cf)
> >> cf3 -> Updated /var/cfengine/inputs/library.cf from source
> >> /srv/cf-served/inputs/library.cf on 192.168.56.101
> >> cf3 -> Copy of regular file succeeded /srv/cf-served/inputs/library.cf
> >> to /var/cfengine/inputs/library.cf.cfnew
> >> cf3 !! New file /var/cfengine/inputs/library.cf.cfnew seems to have be=
en
> >> corrupted in transit (sizes 1304 and 0), aborting!
> >> cf3 Was not able to copy /srv/cf-served/inputs/library.cf to
> >> /var/cfengine/inputs/library.cf
> >> cf3 I: Report relates to a promise with handle ""
> >> cf3 I: Made in version 'not specified' of
> >> '/var/cfengine/inputs/update.cf' near line 37
> >> cf3 -> Destination file /var/cfengine/inputs/update.cf already exists
> >> cf3 !! Image file /var/cfengine/inputs/update.cf has a wrong MD5
> >> checksum (should be copy of /srv/cf-served/inputs/update.cf)
> >> cf3 -> Updated /var/cfengine/inputs/update.cf from source
> >> /srv/cf-served/inputs/update.cf on 192.168.56.101
> >> cf3 -> Copy of regular file succeeded /srv/cf-served/inputs/update.cf =
to
> >> /var/cfengine/inputs/update.cf.cfnew
> >> cf3 ?? Final verification of transmission ...
> >> cf3 -> New file /var/cfengine/inputs/update.cf.cfnew transmitted
> >> correctly - verified
> >> cf3 -> Group of /var/cfengine/inputs/update.cf was 513, setting to 0
> >> cf3 -> Object /var/cfengine/inputs/update.cf had permission 600, chang=
ed
> >> it to 644
> >> cf3 -> Destination file /var/cfengine/inputs/failsafe.cf already exist=
s
> >> cf3 !! Image file /var/cfengine/inputs/failsafe.cf has a wrong MD5
> >> checksum (should be copy of /srv/cf-served/inputs/failsafe.cf)
> >> cf3 -> Updated /var/cfengine/inputs/failsafe.cf from source
> >> /srv/cf-served/inputs/failsafe.cf on 192.168.56.101
> >> cf3 Was not able to copy /srv/cf-served/inputs/failsafe.cf to
> >> /var/cfengine/inputs/failsafe.cf
> >> cf3 I: Report relates to a promise with handle ""
> >> cf3 I: Made in version 'not specified' of
> >> '/var/cfengine/inputs/update.cf' near line 37
> >> cf3 Transmission refused or failed statting
> >> /srv/cf-served/inputs/cf-served.cf
> >> Got: CFD_TRUE
> >> cf3 !! (Can't stat /srv/cf-served/inputs/cf-served.cf)
> >> cf3 !!! System error for cf_stat: "Operation not permitted"
> >> cf3 -> Destination file /var/cfengine/inputs/yum.cf already exists
> >> cf3 -> File permissions on /var/cfengine/inputs/yum.cf as promised
> >> cf3 -> File /var/cfengine/inputs/yum.cf is an up to date copy of sourc=
e
> >> cf3 Transmission refused or failed statting
> >> /srv/cf-served/inputs/virtual-machines.cf
> >> Got: =C5=92F=C3=9A=C3=B0QCa=C2=95
> >> cf3 !! (Can't stat /srv/cf-served/inputs/virtual-machines.cf)
> >> cf3 !!! System error for cf_stat: "Operation not permitted"
> >> cf3 -> Destination file /var/cfengine/inputs/exim4.cf already exists
> >> cf3 !! Image file /var/cfengine/inputs/exim4.cf has a wrong MD5 checks=
um
> >> (should be copy of /srv/cf-served/inputs/exim4.cf)
> >> cf3 -> Updated /var/cfengine/inputs/exim4.cf from source
> >> /srv/cf-served/inputs/exim4.cf on 192.168.56.101
> >> cf3 Was not able to copy /srv/cf-served/inputs/exim4.cf to
> >> /var/cfengine/inputs/exim4.cf
> >> cf3 I: Report relates to a promise with handle ""
> >> cf3 I: Made in version 'not specified' of
> >> '/var/cfengine/inputs/update.cf' near line 37
> >> cf3 !! Purging /var/cfengine/inputs/exim4.cf.cfnew in copy dest direct=
ory
> >> cf3 !! Purging /var/cfengine/inputs/failsafe.cf.cfnew in copy dest dir=
ectory
> >> cf3 !! Purging /var/cfengine/inputs/library.cf.cfnew in copy dest dire=
ctory
> >> cf3 !! Purging /var/cfengine/inputs/promises.cf.cfnew in copy dest dir=
ectory
> >> cf3 !! Purging /var/cfengine/inputs/update.cf.cfsaved in copy dest dir=
ectory
> >> cf3 Performance(Copy(192.168.56.101:/srv/cf-served/inputs >
> >> /var/cfengine/inputs)): time=3D2.0000 secs, av=3D2.6912 +/- 0.8668
> >> cf3 Existing connection just became free...
> >>
> >> Then files content are messed up (ending with content from one file in
> >> another one)
> >>
> >> Both client and server are the 3.0.2 release
> >>
> >> Regards,
> >> Nicolas
>
>

--0016e65c8c02d39ace0479ae1348
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello,<br><br>I am replying to this old thread (two monthes old only, actua=
lly) that I found via Googling. I also have this problem and it is 100% rep=
roducible in my case.<br><br>I am using Gentoo on both the server and the c=
lient, with version 3.0.2. The version of OpenSSL is identical in both case=
s, 0.9.8l (note that it also failed using 0.9.8l on the server and 0.9.8k o=
n the client).<br>
<br>This is my <a href=3D"http://promises.cf">promises.cf</a>:<br><br>bundl=
e agent setupPhase<br>{<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 files=
:<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 &quot;/srv/demo-phpbb/&quot; copy_from =3D&gt; fastCo=
pyFromRemote(&quot;${global.OVERMIND_HOST}&quot;, &quot;${global.UNISON_REP=
OSITORY_PATH}demo-phpbb/&quot;), depth_search =3D&gt; recurse, perms =3D&gt=
; apache;<br>
}<br><br>body copy_from fastCopyFromRemote(server, path)<br>{<br>=C2=A0=C2=
=A0=C2=A0 servers =3D&gt; {&quot;${server}&quot;};<br>=C2=A0=C2=A0=C2=A0 en=
crypt =3D&gt; &quot;true&quot;;<br>=C2=A0=C2=A0=C2=A0 trustkey =3D&gt; &quo=
t;true&quot;;<br>=C2=A0=C2=A0=C2=A0 source =3D&gt; &quot;${path}&quot;;<br>
=C2=A0=C2=A0=C2=A0 compare =3D&gt; &quot;digest&quot;;<br>=C2=A0=C2=A0=C2=
=A0 preserve =3D&gt; &quot;false&quot;;<br>=C2=A0=C2=A0=C2=A0 purge =3D&gt;=
 &quot;true&quot;;<br>=C2=A0=C2=A0=C2=A0 copy_backup =3D&gt; &quot;false&qu=
ot;;<br>}<br><br>body depth_search recurse<br>{<br>=C2=A0=C2=A0=C2=A0 depth=
 =3D&gt; &quot;inf&quot;;<br>
}<br><br>I am linking the demo-phpbb/ directory for you to reproduce the bu=
g, as I think it is somehow important (on other directories I am not hit by=
 this problem, so it is something strange in this directory that is causing=
 the bug, although I checked and everything seems normal...). It is availab=
le at<br>
<br><a href=3D"http://test.elvanor.net/bugs/demo-phpbb.zip">http://test.elv=
anor.net/bugs/demo-phpbb.zip</a><br><br>I hope you can debug and fix this p=
roblem as it is quite critical IMHO (not only it does not copy correctly th=
e directory, it completely hangs the cf-agent process while encountering ga=
rbage).<br>
<br>Jean-Noel<br><br><blockquote style=3D"border-left: 1px solid rgb(204, 2=
04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class=3D"gmail_quo=
te"><pre>Mark,<br><br>On the Ubuntu server I have OpenSSL 0.9.8g<br>On the =
Cygwin client I have OpenSSL 0.9.8k<br>
And on the Fedora client, I have OpenSSL 0.9.8k-fips<br><br>So yes, it&#39;=
s more than likely that it is a OpenSSL issue since both <br>clients fails =
the same way,<br><br>Regards,<br>Nicolas<br><br>Mark Burgess a =C3=A9crit :=
<br>
&gt; Nicholas,<br>&gt;<br>&gt; I have been trying hard to reproduce this er=
ror but I have not been able to.<br>&gt; The problem is that encryption fai=
ls in the final transmission causing file <br>&gt; data<br>&gt; to be appar=
ent garbage.<br>
&gt;<br>&gt; I will try a few more things before giving up. May I ask what =
kind of systems<br>&gt; are running this? Do they have the same versions of=
 OpenSSL?<br>&gt;<br>&gt; M<br>&gt;<br>&gt;<br>&gt; Nicolas Charles wrote:<=
br>
&gt;   <br>&gt;&gt; Hi,<br>&gt;&gt;<br>&gt;&gt; I&#39;m having a nasty beha=
vior with the updating of promises when having a <br>&gt;&gt; subfolder.<br=
>&gt;&gt; Here is my <a href=3D"http://update.cf">update.cf</a> :<br>&gt;&g=
t;<br>
&gt;&gt;<br>&gt;&gt; #<br>&gt;&gt; # Define what an agent has to do when it=
 updates<br>&gt;&gt; # its promises<br>&gt;&gt; #<br>&gt;&gt;<br>&gt;&gt; #=
simple copy method<br>&gt;&gt; body copy_from remote(server, path) {<br>
&gt;&gt;<br>&gt;&gt; servers =3D&gt; {<br>&gt;&gt; &quot;${server}&quot;<br=
>&gt;&gt; };<br>&gt;&gt; encrypt =3D&gt; &quot;true&quot;;<br>&gt;&gt; trus=
tkey =3D&gt; &quot;true&quot;;<br>&gt;&gt; source =3D&gt; &quot;${path}&quo=
t;;<br>
&gt;&gt; compare =3D&gt; &quot;digest&quot;;<br>&gt;&gt; preserve =3D&gt; &=
quot;false&quot;; #preserver permissions<br>&gt;&gt; verify =3D&gt; &quot;t=
rue&quot;;<br>&gt;&gt; purge =3D&gt; &quot;true&quot;;<br>&gt;&gt; owners =
=3D&gt; {&quot;slave&quot;};<br>
&gt;&gt; }<br>&gt;&gt;<br>&gt;&gt; #simple recurse method<br>&gt;&gt;<br>&g=
t;&gt;<br>&gt;&gt; bundle agent update {<br>&gt;&gt; vars:<br>&gt;&gt; any:=
:<br>&gt;&gt; &quot;cfserved&quot; string =3D&gt; &quot;192.168.56.101&quot=
;; #server IP<br>
&gt;&gt; &quot;policy_files&quot; string =3D&gt; &quot;/srv/cf-served&quot;=
; #directory where to look for <br>&gt;&gt; promises in the server for that=
 client<br>&gt;&gt; &quot;server_inputs&quot; string =3D&gt; &quot;${policy=
_files}/inputs&quot;; #actual directory <br>
&gt;&gt; with promises, just to show the use of variables<br>&gt;&gt; &quot=
;client_inputs&quot; string =3D&gt; &quot;${sys.workdir}/inputs&quot;; #whe=
re to put the <br>&gt;&gt; files on the client when downloaded<br>&gt;&gt;<=
br>
&gt;&gt; files:<br>&gt;&gt; any::<br>&gt;&gt; &quot;${client_inputs}&quot; =
#that&#39;s a loop on each files in client_inputs<br>&gt;&gt; copy_from =3D=
&gt; remote(&quot;${cfserved}&quot;,&quot;${server_inputs}&quot;),<br>&gt;&=
gt; depth_search =3D&gt; recurse_visible(&quot;inf&quot;);<br>
&gt;&gt; }<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On my server, I =
have<br>&gt;&gt; /srv/cf-served/inputs : the promises<br>&gt;&gt; /srv/cf-s=
erved/inputs/resources : variables, resources, etc<br>&gt;&gt; If resources=
 folder is empty (or better, doesn&#39;t exist), it is great<br>
&gt;&gt; If there is one empty file, it works great<br>&gt;&gt;<br>&gt;&gt;=
 But if /srv/cf-served/inputs/resources contains a file (let&#39;s call it =
<br>&gt;&gt; simple_its.txt) containing &quot;foo baz&quot; (or whatever), =
here is the update <br>
&gt;&gt; behavior :<br>&gt;&gt; cf3 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>&gt;&gt; cf3 f=
iles in bundle update (1)<br>&gt;&gt; cf3 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>&gt;&gt;=
 cf3<br>
&gt;&gt; cf3 Verifying SQL table promises is only available with Cfengine N=
ova or <br>&gt;&gt; above<br>&gt;&gt; cf3<br>&gt;&gt; cf3 .................=
........................................<br>&gt;&gt; cf3 Promise handle:<br=
>
&gt;&gt; cf3 Promise made by: /var/cfengine/inputs<br>&gt;&gt; cf3 ........=
.................................................<br>&gt;&gt; cf3<br>&gt;&g=
t; cf3 -&gt; Handling file existence constraints on /var/cfengine/inputs<br=
>
&gt;&gt; cf3 -&gt; Copy file /var/cfengine/inputs from /srv/cf-served/input=
s check<br>&gt;&gt; cf3 Found address (192.168.56.101) for host 192.168.56.=
101<br>&gt;&gt; cf3 Found address (192.168.56.101) for host 192.168.56.101<=
br>
&gt;&gt; cf3 No existing connection to 192.168.56.101 is established...<br>=
&gt;&gt; cf3 Set cfengine port number to 5308 =3D 5308<br>&gt;&gt; cf3 Conn=
ect to 192.168.56.101 =3D 192.168.56.101, port =3D (5308=3D5308)<br>&gt;&gt=
; cf3 LastSaw host 192.168.56.101 now<br>
&gt;&gt; cf3 Found address (192.168.56.101) for host 192.168.56.101<br>&gt;=
&gt; cf3 Loaded /var/cfengine/ppkeys/root-192.168.56.101.pub<br>&gt;&gt; cf=
3 .....................[.h.a.i.l.].................................<br>
&gt;&gt; cf3 Strong authentication of server=3D192.168.56.101 connection co=
nfirmed<br>&gt;&gt; cf3 Found address (192.168.56.101) for host 192.168.56.=
101<br>&gt;&gt; cf3 !! (Destination purging enabled)<br>&gt;&gt; cf3 -&gt;&=
gt; Entering /srv/cf-served/inputs<br>
&gt;&gt; (snip)<br>&gt;&gt; cf3 -&gt; Destination file /var/cfengine/inputs=
/<a href=3D"http://site.cf">site.cf</a> already exists<br>&gt;&gt; cf3 -&gt=
; File permissions on /var/cfengine/inputs/<a href=3D"http://site.cf">site.=
cf</a> as promised<br>
&gt;&gt; cf3 -&gt; File /var/cfengine/inputs/<a href=3D"http://site.cf">sit=
e.cf</a> is an up to date copy of source<br>&gt;&gt; cf3 -&gt; /var/cfengin=
e/inputs/<a href=3D"http://update.cf">update.cf</a>~ wasn&#39;t at destinat=
ion (copying)<br>
&gt;&gt; cf3 -&gt; Copying from 192.168.56.101:/srv/cf-served/inputs/<a hre=
f=3D"http://update.cf">update.cf</a>~<br>&gt;&gt; cf3 -&gt; Copy of regular=
 file succeeded /srv/cf-served/inputs/<a href=3D"http://update.cf">update.c=
f</a>~ <br>
&gt;&gt; to /var/cfengine/inputs/<a href=3D"http://update.cf">update.cf</a>=
~.cfnew<br>&gt;&gt; cf3 ?? Final verification of transmission ...<br>&gt;&g=
t; cf3 -&gt; New file /var/cfengine/inputs/<a href=3D"http://update.cf">upd=
ate.cf</a>~.cfnew transmitted <br>
&gt;&gt; correctly - verified<br>&gt;&gt; cf3 -&gt; Group of /var/cfengine/=
inputs/<a href=3D"http://update.cf">update.cf</a>~ was 513, setting to 0<br=
>&gt;&gt; cf3 -&gt; File permissions on /var/cfengine/inputs/<a href=3D"htt=
p://update.cf">update.cf</a>~ as promised<br>
&gt;&gt; cf3 -&gt; Updated file from 192.168.56.101:/srv/cf-served/inputs/<=
a href=3D"http://update.cf">update.cf</a>~<br>&gt;&gt; cf3 -&gt;&gt; Enteri=
ng /var/cfengine/inputs/resources<br>&gt;&gt; cf3 -&gt; File permissions on=
 /var/cfengine/inputs/resources as promised<br>
&gt;&gt; cf3 -&gt; Destination file /var/cfengine/inputs/resources/simple_i=
ps.txt~ <br>&gt;&gt; already exists<br>&gt;&gt; cf3 -&gt; File permissions =
on <br>&gt;&gt; /var/cfengine/inputs/resources/simple_ips.txt~ as promised<=
br>
&gt;&gt; cf3 -&gt; File /var/cfengine/inputs/resources/simple_ips.txt~ is a=
n up to <br>&gt;&gt; date copy of source<br>&gt;&gt; cf3 -&gt; /var/cfengin=
e/inputs/resources/simple_ips.txt wasn&#39;t at <br>&gt;&gt; destination (c=
opying)<br>
&gt;&gt; cf3 -&gt; Copying from <br>&gt;&gt; 192.168.56.101:/srv/cf-served/=
inputs/resources/simple_ips.txt<br>&gt;&gt; cf3 !! Copy from <br>&gt;&gt; 1=
92.168.56.101:/srv/cf-served/inputs/resources/simple_ips.txt failed<br>
&gt;&gt; cf3 !! Purging /var/cfengine/inputs/resources/simple_ips.txt.cfnew=
 in <br>&gt;&gt; copy dest directory<br>&gt;&gt; cf3 Transmission refused o=
r failed statting <br>&gt;&gt; /srv/cf-served/inputs/<a href=3D"http://ocsi=
-agent.cf">ocsi-agent.cf</a><br>
&gt;&gt; Got: =C3=89=C3=B2=C3=9E=C2=88=C2=A1=C3=8D=C3=A4=C3=AD<br>&gt;&gt; =
cf3 !! (Can&#39;t stat /srv/cf-served/inputs/<a href=3D"http://ocsi-agent.c=
f">ocsi-agent.cf</a>)<br>&gt;&gt; cf3 !!! System error for cf_stat: &quot;O=
peration not permitted&quot;<br>&gt;&gt; cf3 -&gt; Destination file /var/cf=
engine/inputs/<a href=3D"http://promises.cf">promises.cf</a> already exists=
<br>
&gt;&gt; cf3 !! Image file /var/cfengine/inputs/<a href=3D"http://promises.=
cf">promises.cf</a> has a wrong MD5 <br>&gt;&gt; checksum (should be copy o=
f /srv/cf-served/inputs/<a href=3D"http://promises.cf">promises.cf</a>)<br>
&gt;&gt; cf3 -&gt; Updated /var/cfengine/inputs/<a href=3D"http://promises.=
cf">promises.cf</a> from source <br>&gt;&gt; /srv/cf-served/inputs/<a href=
=3D"http://promises.cf">promises.cf</a> on 192.168.56.101<br>&gt;&gt; cf3 W=
as not able to copy /srv/cf-served/inputs/<a href=3D"http://promises.cf">pr=
omises.cf</a> to <br>
&gt;&gt; /var/cfengine/inputs/<a href=3D"http://promises.cf">promises.cf</a=
><br>&gt;&gt; cf3 I: Report relates to a promise with handle &quot;&quot;<b=
r>&gt;&gt; cf3 I: Made in version &#39;not specified&#39; of <br>&gt;&gt; &=
#39;/var/cfengine/inputs/<a href=3D"http://update.cf">update.cf</a>&#39; ne=
ar line 37<br>
&gt;&gt; cf3 -&gt; Destination file /var/cfengine/inputs/<a href=3D"http://=
library.cf">library.cf</a> already exists<br>&gt;&gt; cf3 !! Image file /va=
r/cfengine/inputs/<a href=3D"http://library.cf">library.cf</a> has a wrong =
MD5 <br>
&gt;&gt; checksum (should be copy of /srv/cf-served/inputs/<a href=3D"http:=
//library.cf">library.cf</a>)<br>&gt;&gt; cf3 -&gt; Updated /var/cfengine/i=
nputs/<a href=3D"http://library.cf">library.cf</a> from source <br>&gt;&gt;=
 /srv/cf-served/inputs/<a href=3D"http://library.cf">library.cf</a> on 192.=
168.56.101<br>
&gt;&gt; cf3 -&gt; Copy of regular file succeeded /srv/cf-served/inputs/<a =
href=3D"http://library.cf">library.cf</a> <br>&gt;&gt; to /var/cfengine/inp=
uts/library.cf.cfnew<br>&gt;&gt; cf3 !! New file /var/cfengine/inputs/libra=
ry.cf.cfnew seems to have been <br>
&gt;&gt; corrupted in transit (sizes 1304 and 0), aborting!<br>&gt;&gt; cf3=
 Was not able to copy /srv/cf-served/inputs/<a href=3D"http://library.cf">l=
ibrary.cf</a> to <br>&gt;&gt; /var/cfengine/inputs/<a href=3D"http://librar=
y.cf">library.cf</a><br>
&gt;&gt; cf3 I: Report relates to a promise with handle &quot;&quot;<br>&gt=
;&gt; cf3 I: Made in version &#39;not specified&#39; of <br>&gt;&gt; &#39;/=
var/cfengine/inputs/<a href=3D"http://update.cf">update.cf</a>&#39; near li=
ne 37<br>
&gt;&gt; cf3 -&gt; Destination file /var/cfengine/inputs/<a href=3D"http://=
update.cf">update.cf</a> already exists<br>&gt;&gt; cf3 !! Image file /var/=
cfengine/inputs/<a href=3D"http://update.cf">update.cf</a> has a wrong MD5 =
<br>
&gt;&gt; checksum (should be copy of /srv/cf-served/inputs/<a href=3D"http:=
//update.cf">update.cf</a>)<br>&gt;&gt; cf3 -&gt; Updated /var/cfengine/inp=
uts/<a href=3D"http://update.cf">update.cf</a> from source <br>&gt;&gt; /sr=
v/cf-served/inputs/<a href=3D"http://update.cf">update.cf</a> on 192.168.56=
.101<br>
&gt;&gt; cf3 -&gt; Copy of regular file succeeded /srv/cf-served/inputs/<a =
href=3D"http://update.cf">update.cf</a> to <br>&gt;&gt; /var/cfengine/input=
s/update.cf.cfnew<br>&gt;&gt; cf3 ?? Final verification of transmission ...=
<br>
&gt;&gt; cf3 -&gt; New file /var/cfengine/inputs/update.cf.cfnew transmitte=
d <br>&gt;&gt; correctly - verified<br>&gt;&gt; cf3 -&gt; Group of /var/cfe=
ngine/inputs/<a href=3D"http://update.cf">update.cf</a> was 513, setting to=
 0<br>
&gt;&gt; cf3 -&gt; Object /var/cfengine/inputs/<a href=3D"http://update.cf"=
>update.cf</a> had permission 600, changed <br>&gt;&gt; it to 644<br>&gt;&g=
t; cf3 -&gt; Destination file /var/cfengine/inputs/<a href=3D"http://failsa=
fe.cf">failsafe.cf</a> already exists<br>
&gt;&gt; cf3 !! Image file /var/cfengine/inputs/<a href=3D"http://failsafe.=
cf">failsafe.cf</a> has a wrong MD5 <br>&gt;&gt; checksum (should be copy o=
f /srv/cf-served/inputs/<a href=3D"http://failsafe.cf">failsafe.cf</a>)<br>
&gt;&gt; cf3 -&gt; Updated /var/cfengine/inputs/<a href=3D"http://failsafe.=
cf">failsafe.cf</a> from source <br>&gt;&gt; /srv/cf-served/inputs/<a href=
=3D"http://failsafe.cf">failsafe.cf</a> on 192.168.56.101<br>&gt;&gt; cf3 W=
as not able to copy /srv/cf-served/inputs/<a href=3D"http://failsafe.cf">fa=
ilsafe.cf</a> to <br>
&gt;&gt; /var/cfengine/inputs/<a href=3D"http://failsafe.cf">failsafe.cf</a=
><br>&gt;&gt; cf3 I: Report relates to a promise with handle &quot;&quot;<b=
r>&gt;&gt; cf3 I: Made in version &#39;not specified&#39; of <br>&gt;&gt; &=
#39;/var/cfengine/inputs/<a href=3D"http://update.cf">update.cf</a>&#39; ne=
ar line 37<br>
&gt;&gt; cf3 Transmission refused or failed statting <br>&gt;&gt; /srv/cf-s=
erved/inputs/<a href=3D"http://cf-served.cf">cf-served.cf</a><br>&gt;&gt; G=
ot: CFD_TRUE<br>&gt;&gt; cf3 !! (Can&#39;t stat /srv/cf-served/inputs/<a hr=
ef=3D"http://cf-served.cf">cf-served.cf</a>)<br>
&gt;&gt; cf3 !!! System error for cf_stat: &quot;Operation not permitted&qu=
ot;<br>&gt;&gt; cf3 -&gt; Destination file /var/cfengine/inputs/<a href=3D"=
http://yum.cf">yum.cf</a> already exists<br>&gt;&gt; cf3 -&gt; File permiss=
ions on /var/cfengine/inputs/<a href=3D"http://yum.cf">yum.cf</a> as promis=
ed<br>
&gt;&gt; cf3 -&gt; File /var/cfengine/inputs/<a href=3D"http://yum.cf">yum.=
cf</a> is an up to date copy of source<br>&gt;&gt; cf3 Transmission refused=
 or failed statting <br>&gt;&gt; /srv/cf-served/inputs/<a href=3D"http://vi=
rtual-machines.cf">virtual-machines.cf</a><br>
&gt;&gt; Got: =C5=92F=C3=9A=C3=B0QCa=C2=95<br>&gt;&gt; cf3 !! (Can&#39;t st=
at /srv/cf-served/inputs/<a href=3D"http://virtual-machines.cf">virtual-mac=
hines.cf</a>)<br>&gt;&gt; cf3 !!! System error for cf_stat: &quot;Operation=
 not permitted&quot;<br>
&gt;&gt; cf3 -&gt; Destination file /var/cfengine/inputs/<a href=3D"http://=
exim4.cf">exim4.cf</a> already exists<br>&gt;&gt; cf3 !! Image file /var/cf=
engine/inputs/<a href=3D"http://exim4.cf">exim4.cf</a> has a wrong MD5 chec=
ksum <br>
&gt;&gt; (should be copy of /srv/cf-served/inputs/<a href=3D"http://exim4.c=
f">exim4.cf</a>)<br>&gt;&gt; cf3 -&gt; Updated /var/cfengine/inputs/<a href=
=3D"http://exim4.cf">exim4.cf</a> from source <br>&gt;&gt; /srv/cf-served/i=
nputs/<a href=3D"http://exim4.cf">exim4.cf</a> on 192.168.56.101<br>
&gt;&gt; cf3 Was not able to copy /srv/cf-served/inputs/<a href=3D"http://e=
xim4.cf">exim4.cf</a> to <br>&gt;&gt; /var/cfengine/inputs/<a href=3D"http:=
//exim4.cf">exim4.cf</a><br>&gt;&gt; cf3 I: Report relates to a promise wit=
h handle &quot;&quot;<br>
&gt;&gt; cf3 I: Made in version &#39;not specified&#39; of <br>&gt;&gt; &#3=
9;/var/cfengine/inputs/<a href=3D"http://update.cf">update.cf</a>&#39; near=
 line 37<br>&gt;&gt; cf3 !! Purging /var/cfengine/inputs/exim4.cf.cfnew in =
copy dest directory<br>
&gt;&gt; cf3 !! Purging /var/cfengine/inputs/failsafe.cf.cfnew in copy dest=
 directory<br>&gt;&gt; cf3 !! Purging /var/cfengine/inputs/library.cf.cfnew=
 in copy dest directory<br>&gt;&gt; cf3 !! Purging /var/cfengine/inputs/pro=
mises.cf.cfnew in copy dest directory<br>
&gt;&gt; cf3 !! Purging /var/cfengine/inputs/update.cf.cfsaved in copy dest=
 directory<br>&gt;&gt; cf3 Performance(Copy(192.168.56.101:/srv/cf-served/i=
nputs &gt; <br>&gt;&gt; /var/cfengine/inputs)): time=3D2.0000 secs, av=3D2.=
6912 +/- 0.8668<br>
&gt;&gt; cf3 Existing connection just became free...<br>&gt;&gt;<br>&gt;&gt=
; Then files content are messed up (ending with content from one file in <b=
r>&gt;&gt; another one)<br>&gt;&gt;<br>&gt;&gt; Both client and server are =
the 3.0.2 release<br>
&gt;&gt;<br>&gt;&gt; Regards,<br>&gt;&gt; Nicolas<br></pre></blockquote><br=
>

--0016e65c8c02d39ace0479ae1348--

--===============0347765968==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

--===============0347765968==--