[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Broken multi-pass editfile functionality for the same file
From: |
Chris (Ducky) Chapin |
Subject: |
Re: Broken multi-pass editfile functionality for the same file |
Date: |
Wed, 24 Jul 2002 08:35:08 -0700 (PDT) |
On 24 Jul 2002, Adrian Phillips wrote:
> On a file that does not already include "Step 1" and "Step 2" ?
>
> What does -v and/or -d show ?
On a file that exists, Only adds "Step 1".
On a file that does not exist, creates it and only adds "Step 1"
-v shows it acknowleges the existance of phase2, but does nothing.
-d reports an db error relating to locking
The -d 1 output:
===
Actionsequence item editfiles
Editfile()
DoEditFile(/tmp/somefile)
IgnoredOrExcluded(/tmp/somefile)
GetLock(editfile.phase1,_tmp_somefile,time=1027524436), ExpireAfter=120,
IfElapsed=1
GetLastLock()
CheckOldLock(lock.cfagent_conf.opus.editfile.phase1._tmp_somefile)
Unable to find lock data
lock.cfagent_conf.opus.editfile.phase1._tmp_somefile
SetLock(lock.cfagent_conf.opus.editfile.phase1._tmp_somefile)
PutLock(lock.cfagent_conf.opus.editfile.phase1._tmp_somefile)
Unable to delete lock
[lock.cfagent_conf.opus.editfile.phase1._tmp_somefile]: DB_NOTFOUND: No
matching key/data pair found
cfengine:opus: Creating file /tmp/somefile, mode 644
Begin editing /tmp/somefile
Appending [Step 1]
End editing /tmp/somefile
.....................................................................
CompareToFile(/tmp/somefile)
cfengine:opus: Edited file /tmp/somefile
ReleaseCurrentLock(lock.cfagent_conf.opus.editfile.phase1._tmp_somefile)
PutLock(last.cfagent_conf.100.opus.editfile.phase1._tmp_somefile)
LockLog(Lock removed normally )
Job start time set to Wed Jul 24 08:27:16 2002
===
This has been tried on 3 different hosts - 1 solaris, 1 redhat linux, 1
debian linux, debian's cfengine (2.0.1) being installed via apt than from
source (2.0.3 for the others). All 3 report the same error.
-Ducky
--
Christopher 'Ducky' Chapin ducky@qualcomm.com
Unix Systems Administrator - Qualcomm, Inc. (858) 651-5433
IT Host Services - AE-209F