[Pacemaker] Possible bug: Strange behaviour of cibadmin -D

Andrew Beekhof andrew at beekhof.net
Tue Dec 1 09:11:49 UTC 2009


On Mon, Nov 30, 2009 at 10:47 PM, Michael Schwartzkopff
<misch at multinet.de> wrote:
> Hi,
>
> I start with a fresh cluster, no cib.
>
> 1) Add a #health attribute and verify that is it i nthe CIB:
> # attrd_update -n "#health-smart" -U "red" -d "1s"
> # cibadmin -Q | grep health
> <nvpair id="status-..." name="#health-smart" value="red"/>
>
> 2) So far so good. I delete the attribute. Since this is a virtual machine
> with limited access I have to do the following:
> # cibadmin -Q | grep health > health.cib
> # cibadmin -D -x health.cib
> # cibadmin -Q | grep health
> -> nothing, entry gone. So far so good.

Nope.
Because the value is still in attrd, which is the authoritative source
for node attributes.
You need to delete it with attrd_updater too.

>
> 3) Now I want to write my attribute again:
> # attrd_updater -n "#health-smart" -U "red" -d "1s"
> # cibamin -Q | grep health
> - >nothing. This is NOT ok.
>
> Somehow the CIB does not accept any #health-smart attributed any more.
>
> 4) Strange, but OK. I try to delete my whole CIB to be able to start again:
> # cibadmin -E --force
> # cibadmin -Q | grep health
> <nvpair id="status-..." name="#health-smart" value="red"/>
>
> Here Is my attribute again! After an erasure if the CIB. How could this be?
>
> If this a bug? Should I file it? Or I am just too stupid to use the command
> line?
>
> Greetings,
> --
> Dr. Michael Schwartzkopff
> MultiNET Services GmbH
> Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
> Tel: +49 - 89 - 45 69 11 0
> Fax: +49 - 89 - 45 69 11 21
> mob: +49 - 174 - 343 28 75
>
> mail: misch at multinet.de
> web: www.multinet.de
>
> Sitz der Gesellschaft: 85630 Grasbrunn
> Registergericht: Amtsgericht München HRB 114375
> Geschäftsführer: Günter Jurgeneit, Hubert Martens
>
> ---
>
> PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
> Skype: misch42
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>




More information about the Pacemaker mailing list