bug-cfengine
[Top][All Lists]
Advanced

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

three bugs and a wishes


From: Uwe Zeisberger
Subject: three bugs and a wishes
Date: Fri, 16 May 2003 18:09:55 +0200
User-agent: Mutt/1.2.5i

hello,

I have 2 bugs and 2 wishes concerning cfengine. I use version 2.0.5 and
found these things not corrected reading the changelog. So I hope my
report is usefull for you...

first the bugs, as they are more important:

1)
if I want to check /var (which is a locally mounted partition) for free
space, ie:

required:
    /var
        freespace=200mb
        inform=true

I never get informed (if not force=true), because /var and /var/.. are
on different file systems (see mount.c +144). If that's a feature - but
I don't think so - it's at least not documented. There is only a hint
concerning NFS mounted file systems.

2)
Searching for the reason of bug 1, I saw a unsensible check at 
mount.c +112:

strncmp(host,VFQNAME,strlen(host)) == 0

Since strncmp("host", "hosts", strlen("host")) == 0, using

strncmp(host,VFQNAME,strlen(host) + 1) == 0

is better. Well, comparing two fqdn, it's quite unlikely that it make
any difference, but maybe this construct is used anywhere else...

3)
I'm not able to negate an evaluated class. for example:

groups:
    missing_var = ( !IsDir(/var) )

this results in: 'Wildcards cannot be used in this context'.

Now to my wish:
It is imho cumbersomely to check on which hosts cfengine did something.
By now I use Inform = ( on ). Changing the config results in approx
40 mails. When (or if) I realize that there is a mail less than there
have to be, I spend much time comparing these mails with a hostlist.
Sadly I have no concrete proposition, but maybe you have.

Originally there was a fifth thing, because logmails sometimes
disappear. But I saw, that's already done for version 2.0.7 .

Greets
Uwe


-- 
Uwe Zeisberger

Set the I_WANT_A_BROKEN_PS environment variable to force BSD syntax ...
        -- manpage of procps




reply via email to

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