[Pacemaker] trouble with crm configure load replace / crm config in a VCS

Lars Marowsky-Bree lmb at suse.de
Thu Feb 4 04:45:38 EST 2010


On 2010-02-04T10:03:58, Marc Fournier <marc.fournier at camptocamp.com> wrote:

> Hello,
> 
> I'm quite new to pacemaker and I would like to have my cluster
> configuration revisioned in a VCS.
> 
> My idea is to edit the configuration in a text file, then load it onto a
> test cluster. Once I'm happy with my changes, push the file to one of the
> production machines via the VCS and load it into the production cluster.
> 
> Unfortunately I'm having some issues with "crm configure load replace".
> This command seems to stop, then remove all resources before re-creating
> and starting them again (maybe I'm wrong).
> 
> As show below, just dumping the current configuration to a file, and
> loading it again, fails.

Please file a bugzilla report with hb_report. Thanks for catching this.

>  - should "crm configure load replace" work as I naively expect ? Maybe I
>    just have something wrong in my configuration ?

I think so. Replacing/updating an object should be atomic and not expand
to delete + recreate. Naively, I have no idea how much effort this will
take to fix though.

>  - how can I convert a file containing crm cli commands to an xml cib file ?

That's an interesting separate request, maybe you can file an
enhancement bugzilla for this?

It's probably possible right now using something (untested) like

export CIB_file=/tmp/output.xml
crm configure load ...


But a "crm configure expand" or some such might be useful to have as
well.


Regards,
    Lars

-- 
Architect Storage/HA, OPS Engineering, Novell, Inc.
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde





More information about the Pacemaker mailing list