help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems coping a directory structure.


From: Brendan Strejcek
Subject: Re: Problems coping a directory structure.
Date: Thu, 2 Dec 2004 16:48:24 -0600
User-agent: Mutt/1.5.6+20040818i

What is the model you are using for your cfservd, cfagent-client
relationship?

Do you have one central policy server that all your clients pull their
policy from?

If you have a setup like that (I think this is the most common cfengine
setup, ignorign things like failover servers), and you are trying to
have the clients copy data back up to the server, that is not going to
work.

Is that what you are trying to do?

I am unclear as to the relationship between rimmer and the other
machine.


address@hidden wrote:

> I am trying to copy a directory from one machine (rimmer) to another using
> the copy method. What I am trying to do is this:
> 
> Local machine makes local copies of its configuration files. Then the
> keeper of repository will grab those copies and copy it to a structure of
> /hosts/repository/<hostname>.
> 
> It is making the first file's "new" file, nsswitch.conf.cfnew, but then it
> just goes to sleep. I have included the -d1 output, as well as a truss
> extract.
> This works just fine for one file, it is only when I try to do an entire
> directory structure.
> 
> here is the line causing the problem:
> 
> $(repo)/etc dest=/hosts/repository/rimmer/etc recurse=inf  server=rimmer
> linktype=none  backup=false type=sum
> 
> If there is a flaw in my logic (hammering nails with a cresant wrench) or
> syntax (missing option? wrong option?), I would be a very happy newbie if
> you pointed out what I am doing wrong.
> 
> 
> here is the -d1 output:
> 
> ExpandVarstring(rimmer)
> ExpandVarstring(/export/repository/etc)
> ExpandVarstring(/hosts/repository/rimmer/etc)
> Checking copy from rimmer:/export/repository/etc to
> /hosts/repository/rimmer/etc
> ExpandVarstring(rimmer)
> Server connection to rimmer already open on 4
> Authentic connection verified
> cf_rstat(/export/repository/etc)
> GetCachedStatData(/export/repository/etc)
> Did not find in cache
> Transaction Send[t 44][Packed text]
> Attempting to send 52 bytes
> SendSocketStream, sent 52
> RecvSocketStream(8)
>     (Concatenated 8 from stream)
> Transaction Receive [t 72][]
> RecvSocketStream(72)
>     (Concatenated 72 from stream)
> Mode = 493,0
> OK: type=2
>  mode=755
>  lmode=0
>  uid=0
>  gid=1
>  size=512
>  atime=1102019790
>  mtime=1102011596 ino=248789 nlnk=3, dev=62390272
> RecvSocketStream(8)
>     (Concatenated 8 from stream)
> Transaction Receive [t 3][]
> RecvSocketStream(3)
>     (Concatenated 3 from stream)
> Linkbuffer: OK:
> GetLock(copy,_export_repository_etc__hosts_repository_rimmer_etc,time=1102020263),
>  ExpireAfter=120, IfElapsed=1
> GetLastLock()
> CheckOldLock(lock.cfagent_conf.web-prdnfs3.copy._export_repository_etc__hosts_repository_rimmer_etc)
> Unable to find lock data
> lock.cfagent_conf.web-prdnfs3.copy._export_repository_etc__hosts_repository_rimmer_etc
> SetLock(lock.cfagent_conf.web-prdnfs3.copy._export_repository_etc__hosts_repository_rimmer_etc)
> PutLock(lock.cfagent_conf.web-prdnfs3.copy._export_repository_etc__hosts_repository_rimmer_etc)
> Found no lock
> [lock.cfagent_conf.web-prdnfs3.copy._export_repository_etc__hosts_repository_rimmer_etc]:
>  DB_NOTFOUND: No matching key/data pair found
> Registering root device as 62390272
> IgnoreFile(/export/repository/etc,)
> Directory for /hosts/repository/rimmer/etc/ exists. Okay
> CfOpenDir(rimmer:/export/repository/etc)
> Transaction Send[t 30][Packed text]
> Attempting to send 38 bytes
> SendSocketStream, sent 38
> RecvSocketStream(8)
>     (Concatenated 8 from stream)
> Transaction Receive [t 161][]
> RecvSocketStream(161)
>     (Concatenated 161 from stream)
> Filename /export/repository/etc/. is classified as ignorable
> Filename /export/repository/etc/.. is classified as ignorable
> IgnoreFile(/export/repository/etc,nsswitch.conf)
> WildMatch(ftp,nsswitch.conf)
> WildMatch(projects,nsswitch.conf)
> WildMatch(RootMailLog,nsswitch.conf)
> WildMatch(!*,nsswitch.conf)
> WildMatch(.X11,nsswitch.conf)
> WildMatch(www,nsswitch.conf)
> cf_rstat(/export/repository/etc/nsswitch.conf)
> GetCachedStatData(/export/repository/etc/nsswitch.conf)
> Did not find in cache
> Transaction Send[t 58][Packed text]
> Attempting to send 66 bytes
> SendSocketStream, sent 66
> RecvSocketStream(8)
>     (Concatenated 8 from stream)
> Transaction Receive [t 72][]
> RecvSocketStream(72)
>     (Concatenated 72 from stream)
> Mode = 420,0
> OK: type=0
>  mode=644
>  lmode=0
>  uid=0
>  gid=3
>  size=784
>  atime=1100803696
>  mtime=1100803696 ino=248794 nlnk=1, dev=62390272
> RecvSocketStream(8)
>     (Concatenated 8 from stream)
> Transaction Receive [t 3][]
> RecvSocketStream(3)
>     (Concatenated 3 from stream)
> Linkbuffer: OK:
> FileObjectFilter(/export/repository/etc/nsswitch.conf)
> IgnoredOrExcluded(nsswitch.conf)
> cf_rstat(/export/repository/etc/nsswitch.conf)
> GetCachedStatData(/export/repository/etc/nsswitch.conf)
> Found in cache
> ExpandVarstring(rimmer)
> IgnoredOrExcluded(/export/repository/etc/nsswitch.conf)
> cfengine:web-prdnfs3: /hosts/repository/rimmer/etc/nsswitch.conf wasn't at
> destination (copying)
> cfengine:web-prdnfs3: Copying from
> rimmer:/export/repository/etc/nsswitch.conf
> This is a remote copy from server: rimmer
> Transaction Send[t 45][Packed text]
> Attempting to send 53 bytes
> SendSocketStream, sent 53
> RecvSocketStream(784)
>     (Concatenated 122 from stream)
> cfengine:web-prdnfs3: Received signal 2 (SIGINT) while doing
> [lock.cfagent_conf.web-prdnfs3.copy._export_repository_etc__hosts_repository_rimmer_etc]
> cfengine:web-prdnfs3: Logical start time Thu Dec  2 12:44:23 2004
> cfengine:web-prdnfs3: This sub-task started really at Thu Dec  2 12:44:23
> 2004
> 
> ReleaseCurrentLock(lock.cfagent_conf.web-prdnfs3.copy._export_repository_etc__hosts_repository_rimmer_etc)
> PutLock(last.cfagent_conf.web-prdnfs3.copy._export_repository_etc__hosts_repository_rimmer_etc)
> LockLog(Lock removed normally )
> 
> Truss info:
> 
> stat("/hosts/repository/rimmer/etc/nsswitch.conf", 0xFFBDE578) Err#2 ENOENT
> cfengine:web-prdnfs3: /hosts/repository/rimmer/etc/nsswitch.conf wasn't at
> destination (copying)
> write(1, " c f e n g i n e : w e b".., 97)      = 97
> cfengine:web-prdnfs3: Copying from
> rimmer:/export/repository/etc/nsswitch.conf
> write(1, " c f e n g i n e : w e b".., 79)      = 79
> unlink("/hosts/repository/rimmer/etc/nsswitch.conf.cfnew") Err#2 ENOENT
> open("/hosts/repository/rimmer/etc/nsswitch.conf.cfnew",
> O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0600) = 5
> send(4, " t   4 5\0\0\0\0 G E T  ".., 53, 0)    = 53
> recv(4, " t   1 1 4\0\018 B A D :".., 784, 0)   = 122
> recv(4, 0x001730C2, 662, 0)     (sleeping...)
> signotifywait()                 (sleeping...)
> lwp_cond_wait(0xFEE734E8, 0xFEE734F8, 0xFEE6CD80) (sleeping...)
> lwp_cond_wait(0xFEE734E8, 0xFEE734F8, 0xFEE6CD80) (sleeping...)
> door_return(0x00000000, 0, 0x00000000, 0) (sleeping...)
> lwp_cond_wait(0xFEE734E8, 0xFEE734F8, 0xFEE6CD80) (sleeping...)
> Russell Conner
> Systems Engineer, VMS & Unix Systems
> Health Net, Inc.
> (916)935-3610
> 
> 
> 
> This  message,together  with  any  attachments, is
> intended only for the use of the individual or entity
> to which it is addressed. It may contain information
> that is confidential and prohibited from disclosure.
> If you are not the intended recipient, you are hereby
> notified that  any dissemination  or copying of this
> message or any attachment is strictly prohibited. If
> you have received this message in error, please notify
> the  original  sender immediately by telephone or by
> return e-mail and delete this message, along with any
> attachments, from your computer.  Thank you.
> 
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-cfengine
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]