[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
binserver related bugs in cfengine 2.1.19
From: |
Jason Lander |
Subject: |
binserver related bugs in cfengine 2.1.19 |
Date: |
Tue, 28 Feb 2006 00:58:59 +0000 (GMT) |
I am a long time - and largely contented - cfengine user, but have only
recently joined this list. I apologise for the rambing message - I'm
trying to type as I debug.
Some of the changes between versions 2.1.18 and 2.1.19 have broken my
cfengine configuration. The config does not use the cfengine model and
we do not define binservers and homeservers.
There are two symptoms:
* Groups defined using unqualified host names are ignored.
Using FQDNs does work.
* Symbolic links are not created, e.g. using
/apps/umui-2.0.1.4 -> /nfs/env-apps-01_apps06/umui-2.0.1.4
gives a message like
Links didn't find any file to match /apps/umui-2.0.1.4 ->
/nfs/env-apps-01_apps06/umui-2.0.1.4
The first symptom is partly due to what would appear to be a bug in
nameinfo.c. The code for GetNameInfo uses
VDEFAULTBINSERVER.name = sp
rather than
VDEFAULTBINSERVER.name = strdup(sp)
The `sp' buffer is free()d a few lines later. The value of
VDEFAULTBINSERVER.name is used in the groups checks
A patch for this is attached.
The links error message would appear to be related to the fact that the
local host is no longer on the list of binservers.
The code in MakeLinks within do.c only attempts to call the appropriate
linking routine if it can iterate over the VBINSERVER list, VBINSERVER is
empty as globals.c has been modified to replace
PROTECTED struct Item *VBINSERVERS = &VDEFAULTBINSERVER;
with
PROTECTED struct Item *VBINSERVERS = NULL;
cfagent.c apparently tries to make set VDEFAULTBINSERVER to the head of
VBINSERVER list.
Explicitly adding `localhost' as a binserver seems to help, but I do not
know if this is a long term solution.
- Jason
--
Jason Lander address@hidden
cfpatch-1
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- binserver related bugs in cfengine 2.1.19,
Jason Lander <=