Mailing List Archive

crmsh error : cib-bootstrap-options already exist
Hi Dejan

I caught this error with 1.2.6-rc1 when loading configuration file.
---
crm configure load update config.crm
ERROR: elements cib-bootstrap-options already exist
---

config.crm
---
property \
no-quorum-policy="ignore" \
stonith-enabled="false"

rsc_defaults \
resource-stickiness="INFINITY" \
migration-threshold="1"
---

I use
- RHEL6
- Pacemaker 83fc351 (latest)

Thanks,
Takatoshi MATSUO
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Takatoshi-san,

On Thu, Aug 08, 2013 at 11:26:54AM +0900, Takatoshi MATSUO wrote:
> Hi Dejan
>
> I caught this error with 1.2.6-rc1 when loading configuration file.
> ---
> crm configure load update config.crm
> ERROR: elements cib-bootstrap-options already exist
> ---
>
> config.crm
> ---
> property \
> no-quorum-policy="ignore" \
> stonith-enabled="false"
>
> rsc_defaults \
> resource-stickiness="INFINITY" \
> migration-threshold="1"
> ---
>
> I use
> - RHEL6
> - Pacemaker 83fc351 (latest)

Should be fixed now. Thanks for reporting.

Cheers,

Dejan

> Thanks,
> Takatoshi MATSUO
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Dejan

Thank you. I confirmed it.
But I catch another error.
I can't use a file which includes comment(#) again.

config.crm
-----------------------------------
property \
no-quorum-policy="ignore" \
stonith-enabled="false"

# comment
rsc_defaults \
resource-stickiness="INFINITY" \
migration-threshold="1"
-----------------------------------

# crm configure load update config.crm > /dev/null
Call cib_apply_diff failed (-203): Update does not conform to the
configured schema
ERROR: could not patch cib (rc=203)
INFO: offending xml diff: <diff crm_feature_set="3.0.7">
(snip)

Regards,
Takatoshi MATSUO

2013/8/9 Dejan Muhamedagic <dejan@suse.de>:
> Hi Takatoshi-san,
>
> On Thu, Aug 08, 2013 at 11:26:54AM +0900, Takatoshi MATSUO wrote:
>> Hi Dejan
>>
>> I caught this error with 1.2.6-rc1 when loading configuration file.
>> ---
>> crm configure load update config.crm
>> ERROR: elements cib-bootstrap-options already exist
>> ---
>>
>> config.crm
>> ---
>> property \
>> no-quorum-policy="ignore" \
>> stonith-enabled="false"
>>
>> rsc_defaults \
>> resource-stickiness="INFINITY" \
>> migration-threshold="1"
>> ---
>>
>> I use
>> - RHEL6
>> - Pacemaker 83fc351 (latest)
>
> Should be fixed now. Thanks for reporting.
>
> Cheers,
>
> Dejan
>
>> Thanks,
>> Takatoshi MATSUO
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Takatoshi-san,

Unfortunately, Dejan is on vacation and I am not yet very familiar with
the crmsh code base, but I will try to solve the problem you are
experiencing.

On Fri, 9 Aug 2013 09:42:36 +0900
Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:

> # crm configure load update config.crm > /dev/null
> Call cib_apply_diff failed (-203): Update does not conform to the
> configured schema
> ERROR: could not patch cib (rc=203)
> INFO: offending xml diff: <diff crm_feature_set="3.0.7">

I have been unable to reproduce this error in my test cluster. Could
you provide the current cluster configuration, prior to applying the
configuration update?

Thank you,
Kristoffer Grönlund
kgronlund@suse.com
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Kristoffer

2013/8/9 Kristoffer Grönlund <kgronlund@suse.com>:
> Hi Takatoshi-san,
>
> Unfortunately, Dejan is on vacation and I am not yet very familiar with
> the crmsh code base, but I will try to solve the problem you are
> experiencing.

Sorry for my late reply.
I had been on vacation too.

>
> On Fri, 9 Aug 2013 09:42:36 +0900
> Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:
>
>> # crm configure load update config.crm > /dev/null
>> Call cib_apply_diff failed (-203): Update does not conform to the
>> configured schema
>> ERROR: could not patch cib (rc=203)
>> INFO: offending xml diff: <diff crm_feature_set="3.0.7">
>
> I have been unable to reproduce this error in my test cluster. Could
> you provide the current cluster configuration, prior to applying the
> configuration update?

I'll take and provide it.
Could you wait till tomorrow?

>
> Thank you,
> Kristoffer Grönlund
> kgronlund@suse.com

Thanks,
Takatoshi MATSUO
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Takatoshi-san,

On Tue, 20 Aug 2013 14:18:49 +0900
Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:

> Hi Kristoffer
>
> 2013/8/9 Kristoffer Grönlund <kgronlund@suse.com>:
> > I have been unable to reproduce this error in my test cluster. Could
> > you provide the current cluster configuration, prior to applying the
> > configuration update?
>
> I'll take and provide it.
> Could you wait till tomorrow?
>

Yes, no problem! Thank you.

> >
> > Thank you,
> > Kristoffer Grönlund
> > kgronlund@suse.com
>
> Thanks,
> Takatoshi MATSUO
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/



--
// Kristoffer Grönlund
// kgronlund@suse.com
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Kristoffer

I reproduced the error with latest changest(b5ffd99e).

My config.crm file
-----------------------------------------
property \
no-quorum-policy="ignore" \
stonith-enabled="false"

# comment
rsc_defaults \
resource-stickiness="INFINITY" \
migration-threshold="1"
-----------------------------------------

# rpm -qa | grep pacemaker
pacemaker-cli-1.1.11-0.1.83fc351.git.el6.x86_64
pacemaker-cluster-libs-1.1.11-0.1.83fc351.git.el6.x86_64
pacemaker-libs-1.1.11-0.1.83fc351.git.el6.x86_64
pacemaker-1.1.11-0.1.83fc351.git.el6.x86_64

# python --version
Python 2.6.6

# crm --version
1.2.6-0.rc1.el6 (Build b5ffd99e8bce)

# crm configure load update config.crm
Call cib_apply_diff failed (-203): Update does not conform to the
configured schema
<cib epoch="5" num_updates="1" admin_epoch="0"
validate-with="pacemaker-1.2" crm_feature_set="3.0.7"
cib-last-written="Wed Aug 21 13:46:15 2013" update-origin="16-sl6"
update-client="cibadmin" have-quorum="0" dc-uuid="1084752244">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-dc-version"
name="dc-version" value="1.1.11-0.1.83fc351.git.el6-83fc351"/>
<nvpair id="cib-bootstrap-options-cluster-infrastructure"
name="cluster-infrastructure" value="corosync"/>
<nvpair name="no-quorum-policy" value="ignore"
id="cib-bootstrap-options-no-quorum-policy"/>
<nvpair name="stonith-enabled" value="false"
id="cib-bootstrap-options-stonith-enabled"/>
</cluster_property_set>
</crm_config>
<nodes>
<node id="1084752244" uname="16-sl6"/>
</nodes>
<resources/>
<constraints/>
<rsc_defaults>
<meta_attributes id="rsc-options">
<comment/>
<nvpair name="resource-stickiness" value="INFINITY"
id="rsc-options-resource-stickiness"/>
<nvpair name="migration-threshold" value="1"
id="rsc-options-migration-threshold"/>
</meta_attributes>
</rsc_defaults>
</configuration>
<status>
<node_state id="1084752244" uname="16-sl6" in_ccm="true"
crmd="online" crm-debug-origin="do_state_transition" join="member"
expected="member">
<lrm id="1084752244">
<lrm_resources/>
</lrm>
<transient_attributes id="1084752244">
<instance_attributes id="status-1084752244">
<nvpair id="status-1084752244-probe_complete"
name="probe_complete" value="true"/>
</instance_attributes>
</transient_attributes>
</node_state>
</status>
</cib>
ERROR: could not patch cib (rc=203)
INFO: offending xml diff: <diff crm_feature_set="3.0.7">
<diff-removed>
<cib epoch="3"/>
</diff-removed>
<diff-added>
<cib epoch="4" num_updates="4" admin_epoch="0"
validate-with="pacemaker-1.2" crm_feature_set="3.0.7"
cib-last-written="Wed Aug 21 13:22:06 2013" update-origin="16-sl6"
update-client="crmd" have-quorum="0" dc-uuid="1084752244">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair name="no-quorum-policy" value="ignore"
id="cib-bootstrap-options-no-quorum-policy"
__crm_diff_marker__="added:top"/>
<nvpair name="stonith-enabled" value="false"
id="cib-bootstrap-options-stonith-enabled"
__crm_diff_marker__="added:top"/>
</cluster_property_set>
</crm_config>
<rsc_defaults __crm_diff_marker__="added:top">
<meta_attributes id="rsc-options">
<!--# comment-->
<nvpair name="resource-stickiness" value="INFINITY"
id="rsc-options-resource-stickiness"/>
<nvpair name="migration-threshold" value="1"
id="rsc-options-migration-threshold"/>
</meta_attributes>
</rsc_defaults>
</configuration>
</cib>
</diff-added>
</diff>


FYI, I have no error if I remove comment line.
-----------------------------------------
property \
no-quorum-policy="ignore" \
stonith-enabled="false"

rsc_defaults \
resource-stickiness="INFINITY" \
migration-threshold="1"
-----------------------------------------

Regards,
Takatoshi MATSUO

2013/8/21 Kristoffer Grönlund <kgronlund@suse.com>:
> Hi Takatoshi-san,
>
> On Tue, 20 Aug 2013 14:18:49 +0900
> Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:
>
>> Hi Kristoffer
>>
>> 2013/8/9 Kristoffer Grönlund <kgronlund@suse.com>:
>> > I have been unable to reproduce this error in my test cluster. Could
>> > you provide the current cluster configuration, prior to applying the
>> > configuration update?
>>
>> I'll take and provide it.
>> Could you wait till tomorrow?
>>
>
> Yes, no problem! Thank you.
>
>> >
>> > Thank you,
>> > Kristoffer Grönlund
>> > kgronlund@suse.com
>>
>> Thanks,
>> Takatoshi MATSUO
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
>
>
>
> --
> // Kristoffer Grönlund
> // kgronlund@suse.com
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Takatoshi-san,

On Wed, 21 Aug 2013 13:56:34 +0900
Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:

> Hi Kristoffer
>
> I reproduced the error with latest changest(b5ffd99e).

Thank you, with your description I was able to reproduce and create a
test case for the problem. I have pushed a workaround for the issue in
the crm shell which stops the crm shell from adding comments to the
CIB. (changeset e35236439b8e)

However, it may be that this is a problem that ought to be fixed in
Pacemaker, so I have not created a new release candidate containing the
workaround. I will try to investigate this possibility before doing so.

Thank you,

--
// Kristoffer Grönlund
// kgronlund@suse.com
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Kristoffer

2013/8/22 Kristoffer Grönlund <kgronlund@suse.com>:
> Hi Takatoshi-san,
>
> On Wed, 21 Aug 2013 13:56:34 +0900
> Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:
>
>> Hi Kristoffer
>>
>> I reproduced the error with latest changest(b5ffd99e).
>
> Thank you, with your description I was able to reproduce and create a
> test case for the problem. I have pushed a workaround for the issue in
> the crm shell which stops the crm shell from adding comments to the
> CIB. (changeset e35236439b8e)

I confirmed that I can load configuration file using new changeset.

> However, it may be that this is a problem that ought to be fixed in
> Pacemaker, so I have not created a new release candidate containing the
> workaround. I will try to investigate this possibility before doing so.

I see.
Thank you.

Takatoshi MATSUO

> Thank you,
>
> --
> // Kristoffer Grönlund
> // kgronlund@suse.com
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
22.08.2013 13:57, Kristoffer Grönlund wrote:
> Hi Takatoshi-san,
>
> On Wed, 21 Aug 2013 13:56:34 +0900
> Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:
>
>> Hi Kristoffer
>>
>> I reproduced the error with latest changest(b5ffd99e).
>
> Thank you, with your description I was able to reproduce and create a
> test case for the problem. I have pushed a workaround for the issue in
> the crm shell which stops the crm shell from adding comments to the
> CIB. (changeset e35236439b8e)

Kristoffer, Dejan, could you please also look why I loose the whole
rsc_defaults $id="rsc_options"
section when I do 'crm configure edit' and edit one of
property $id="cib-bootstrap-options"?

pacemaker is 1.1.10, crmsh is latest tip.

Relevant log lines from cib process are:
Aug 23 08:44:23 mgmt01 crm_verify[5891]: notice: crm_log_args: Invoked: crm_verify -V -p
Aug 23 08:44:24 mgmt01 cibadmin[5897]: notice: crm_log_args: Invoked: cibadmin -p -P
Aug 23 08:44:25 mgmt01 crmd[10180]: notice: do_state_transition: State transition S_IDLE -> S_POLICY_ENGINE [ input=I_PE_CALC cause=C_FSA_INTERNAL origin=abort_transition_graph ]
Aug 23 08:44:25 mgmt01 cib[10175]: notice: log_cib_diff: cib:diff: Local-only Change: 0.772.1
Aug 23 08:44:25 mgmt01 cib[10175]: notice: cib:diff: -- <nvpair value="100" id="cib-bootstrap-options-default-resource-stickiness"/>
Aug 23 08:44:25 mgmt01 cib[10175]: notice: cib:diff: -- <meta_attributes id="rsc_options">
Aug 23 08:44:25 mgmt01 cib[10175]: notice: cib:diff: -- <nvpair name="allow-migrate" value="false" id="rsc_options-allow-migrate"/>
Aug 23 08:44:25 mgmt01 cib[10175]: notice: cib:diff: -- <nvpair name="failure-timeout" value="10m" id="rsc_options-failure-timeout"/>
Aug 23 08:44:25 mgmt01 cib[10175]: notice: cib:diff: -- <nvpair name="migration-threshold" value="INFINITY" id="rsc_options-migration-threshold"/>
Aug 23 08:44:25 mgmt01 cib[10175]: notice: cib:diff: -- <nvpair name="multiple-active" value="stop_start" id="rsc_options-multiple-active"/>
Aug 23 08:44:25 mgmt01 cib[10175]: notice: cib:diff: -- <nvpair name="priority" value="0" id="rsc_options-priority"/>
Aug 23 08:44:25 mgmt01 cib[10175]: notice: cib:diff: -- </meta_attributes>
Aug 23 08:44:25 mgmt01 cib[10175]: notice: cib:diff: ++ <nvpair name="default-resource-stickiness" value="10" id="cib-bootstrap-options-default-resource-stickiness"/>
Aug 23 08:44:28 mgmt01 crmd[10180]: notice: run_graph: Transition 84 (Complete=3, Pending=0, Fired=0, Skipped=0, Incomplete=0, Source=/var/lib/pacemaker/pengine/pe-input-28.bz2): Complete
Aug 23 08:44:28 mgmt01 crmd[10180]: notice: do_state_transition: State transition S_TRANSITION_ENGINE -> S_IDLE [ input=I_TE_SUCCESS cause=C_FSA_INTERNAL origin=notify_crmd ]
Aug 23 08:44:28 mgmt01 pengine[10179]: notice: process_pe_message: Calculated Transition 84: /var/lib/pacemaker/pengine/pe-input-28.bz2

What I edited is default-resource-stickiness, but the whole <meta_attributes id="rsc_options">
gone too.

Vladislav

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Vladislav,

On Fri, 23 Aug 2013 11:50:54 +0300
Vladislav Bogdanov <bubble@hoster-ok.com> wrote:

> Kristoffer, Dejan, could you please also look why I loose the whole
> rsc_defaults $id="rsc_options"
> section when I do 'crm configure edit' and edit one of
> property $id="cib-bootstrap-options"?
>

Hm, that is not good. I suspect that this may be a regression that I
caused when creating the workaround for the previously reported error.
I have narrowed the fix to be more precise in the crmsh repository
(commit 8a539c209eb0), it would be great if you could try using that
version of crmsh instead and see if that solves your issue.

Thank you,

--
// Kristoffer Grönlund
// kgronlund@suse.com
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
23.08.2013 16:10, Kristoffer Grönlund wrote:
> Hi Vladislav,
>
> On Fri, 23 Aug 2013 11:50:54 +0300
> Vladislav Bogdanov <bubble@hoster-ok.com> wrote:
>
>> Kristoffer, Dejan, could you please also look why I loose the whole
>> rsc_defaults $id="rsc_options"
>> section when I do 'crm configure edit' and edit one of
>> property $id="cib-bootstrap-options"?
>>
>
> Hm, that is not good. I suspect that this may be a regression that I
> caused when creating the workaround for the previously reported error.

No-no, it was before that fix too, at least with 19a3f1e5833c.
Should I still try?

> I have narrowed the fix to be more precise in the crmsh repository
> (commit 8a539c209eb0), it would be great if you could try using that
> version of crmsh instead and see if that solves your issue.
>
> Thank you,
>

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi,

On Fri, 23 Aug 2013 16:33:28 +0300
Vladislav Bogdanov <bubble@hoster-ok.com> wrote:

> No-no, it was before that fix too, at least with 19a3f1e5833c.
> Should I still try?
>

Ah, in that case, it has not been fixed.

No need to try. I will investigate further.

--
// Kristoffer Grönlund
// kgronlund@suse.com
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
23.08.2013 16:48, Kristoffer Grönlund wrote:
> Hi,
>
> On Fri, 23 Aug 2013 16:33:28 +0300
> Vladislav Bogdanov <bubble@hoster-ok.com> wrote:
>
>> No-no, it was before that fix too, at least with 19a3f1e5833c.
>> Should I still try?
>>
>
> Ah, in that case, it has not been fixed.
>
> No need to try. I will investigate further.

I verified that crm_diff produces correct xml diff if I change just one
property, so problem should really be in crmsh.

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi,

On Tue, Aug 27, 2013 at 12:06:40PM +0300, Vladislav Bogdanov wrote:
> 23.08.2013 16:48, Kristoffer Grönlund wrote:
> > Hi,
> >
> > On Fri, 23 Aug 2013 16:33:28 +0300
> > Vladislav Bogdanov <bubble@hoster-ok.com> wrote:
> >
> >> No-no, it was before that fix too, at least with 19a3f1e5833c.
> >> Should I still try?
> >>
> >
> > Ah, in that case, it has not been fixed.
> >
> > No need to try. I will investigate further.
>
> I verified that crm_diff produces correct xml diff if I change just one
> property, so problem should really be in crmsh.

Yes, just found where it is. The fix will be pushed tomorrow.

Cheers,

Dejan

> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi all,

On Thu, Aug 22, 2013 at 12:57:20PM +0200, Kristoffer Grönlund wrote:
> Hi Takatoshi-san,
>
> On Wed, 21 Aug 2013 13:56:34 +0900
> Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:
>
> > Hi Kristoffer
> >
> > I reproduced the error with latest changest(b5ffd99e).
>
> Thank you, with your description I was able to reproduce and create a
> test case for the problem. I have pushed a workaround for the issue in
> the crm shell which stops the crm shell from adding comments to the
> CIB. (changeset e35236439b8e)
>
> However, it may be that this is a problem that ought to be fixed in
> Pacemaker, so I have not created a new release candidate containing the
> workaround. I will try to investigate this possibility before doing so.

This is an issue with cibadmin. Before that gets fixed, we'll
have to disable the cibadmin -P commit method and keep the old
one. At least I don't see any other sensible alternative.

Cheers,

Dejan

> Thank you,
>
> --
> // Kristoffer Grönlund
> // kgronlund@suse.com
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
27.08.2013 19:11, Dejan Muhamedagic wrote:
> Hi,
>
> On Tue, Aug 27, 2013 at 12:06:40PM +0300, Vladislav Bogdanov wrote:
>> 23.08.2013 16:48, Kristoffer Grönlund wrote:
>>> Hi,
>>>
>>> On Fri, 23 Aug 2013 16:33:28 +0300
>>> Vladislav Bogdanov <bubble@hoster-ok.com> wrote:
>>>
>>>> No-no, it was before that fix too, at least with 19a3f1e5833c.
>>>> Should I still try?
>>>>
>>>
>>> Ah, in that case, it has not been fixed.
>>>
>>> No need to try. I will investigate further.
>>
>> I verified that crm_diff produces correct xml diff if I change just one
>> property, so problem should really be in crmsh.
>
> Yes, just found where it is. The fix will be pushed tomorrow.

Yeeesssss!!!!!
Thank you for info.
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
On Tue, Aug 27, 2013 at 09:14:31PM +0300, Vladislav Bogdanov wrote:
> 27.08.2013 19:11, Dejan Muhamedagic wrote:
> > Hi,
> >
> > On Tue, Aug 27, 2013 at 12:06:40PM +0300, Vladislav Bogdanov wrote:
> >> 23.08.2013 16:48, Kristoffer Grönlund wrote:
> >>> Hi,
> >>>
> >>> On Fri, 23 Aug 2013 16:33:28 +0300
> >>> Vladislav Bogdanov <bubble@hoster-ok.com> wrote:
> >>>
> >>>> No-no, it was before that fix too, at least with 19a3f1e5833c.
> >>>> Should I still try?
> >>>>
> >>>
> >>> Ah, in that case, it has not been fixed.
> >>>
> >>> No need to try. I will investigate further.
> >>
> >> I verified that crm_diff produces correct xml diff if I change just one
> >> property, so problem should really be in crmsh.
> >
> > Yes, just found where it is. The fix will be pushed tomorrow.
>
> Yeeesssss!!!!!
> Thank you for info.

A new RC has been released today. It contains both fixes. It
doesn't do atomic updates anymore, because cibadmin or something
cannot stomach comments. The updates for several distributions
are, as usual, available here:

http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/

And many thanks for testing.

Cheers,

Dejan

> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Dejan

Thank you for your updating.
It works well for me :)

BTW, why doesn't "crm site" support "up" command ?
Only "end" is official ?

----
# crm site
crm(live)site# up
ERROR: 1: syntax: up
----

It seems that other all commands support it.

----
crm(live)resource#
? exit migrate reprobe stop up
bye failcount move restart trace
utilization
cd help param secret unmanage
cleanup list promote show unmigrate
demote manage quit start unmove
end meta refresh status untrace
----
----
crm(live)node#
? clearstate fence online standby
utilization
attribute delete help quit status
bye end list ready status-attr
cd exit maintenance show up
----

Regards,
Takatoshi MATSUO

2013/8/29 Dejan Muhamedagic <dejan@suse.de>:
> On Tue, Aug 27, 2013 at 09:14:31PM +0300, Vladislav Bogdanov wrote:
>> 27.08.2013 19:11, Dejan Muhamedagic wrote:
>> > Hi,
>> >
>> > On Tue, Aug 27, 2013 at 12:06:40PM +0300, Vladislav Bogdanov wrote:
>> >> 23.08.2013 16:48, Kristoffer Grönlund wrote:
>> >>> Hi,
>> >>>
>> >>> On Fri, 23 Aug 2013 16:33:28 +0300
>> >>> Vladislav Bogdanov <bubble@hoster-ok.com> wrote:
>> >>>
>> >>>> No-no, it was before that fix too, at least with 19a3f1e5833c.
>> >>>> Should I still try?
>> >>>>
>> >>>
>> >>> Ah, in that case, it has not been fixed.
>> >>>
>> >>> No need to try. I will investigate further.
>> >>
>> >> I verified that crm_diff produces correct xml diff if I change just one
>> >> property, so problem should really be in crmsh.
>> >
>> > Yes, just found where it is. The fix will be pushed tomorrow.
>>
>> Yeeesssss!!!!!
>> Thank you for info.
>
> A new RC has been released today. It contains both fixes. It
> doesn't do atomic updates anymore, because cibadmin or something
> cannot stomach comments. The updates for several distributions
> are, as usual, available here:
>
> http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/
>
> And many thanks for testing.
>
> Cheers,
>
> Dejan
>
>> _______________________________________________________
>> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Takatoshi-san,

On Thu, 29 Aug 2013 10:25:14 +0900
Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:

> BTW, why doesn't "crm site" support "up" command ?
> Only "end" is official ?

Thank you for noticing this problem, the code which sets up command
aliases like "up" was missing for the site command. This has been fixed
in changeset 8a4ecedda149.

Best regards,

// Kristoffer
// kgronlund@suse.com
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Kristoffer

Thank you.
I confirmd it.

Regards,
Takatoshi MATSUO


2013/8/29 Kristoffer Grönlund <kgronlund@suse.com>:
> Hi Takatoshi-san,
>
> On Thu, 29 Aug 2013 10:25:14 +0900
> Takatoshi MATSUO <matsuo.tak@gmail.com> wrote:
>
>> BTW, why doesn't "crm site" support "up" command ?
>> Only "end" is official ?
>
> Thank you for noticing this problem, the code which sets up command
> aliases like "up" was missing for the site command. This has been fixed
> in changeset 8a4ecedda149.
>
> Best regards,
>
> // Kristoffer
> // kgronlund@suse.com
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
On 2013-08-28T20:13:43, Dejan Muhamedagic <dejan@suse.de> wrote:

> A new RC has been released today. It contains both fixes. It
> doesn't do atomic updates anymore, because cibadmin or something
> cannot stomach comments.

Couldn't find the upstream bug report :-( Can you give me the pacemaker
bugid, please? Thanks!


Regards,
Lars

--
Architect Storage/HA
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: crmsh error : cib-bootstrap-options already exist [ In reply to ]
Hi Lars,

On Thu, Aug 29, 2013 at 10:49:33AM +0200, Lars Marowsky-Bree wrote:
> On 2013-08-28T20:13:43, Dejan Muhamedagic <dejan@suse.de> wrote:
>
> > A new RC has been released today. It contains both fixes. It
> > doesn't do atomic updates anymore, because cibadmin or something
> > cannot stomach comments.
>
> Couldn't find the upstream bug report :-( Can you give me the pacemaker
> bugid, please? Thanks!

The bug's been reported here:


https://bugzilla.novell.com/show_bug.cgi?id=836965

Thanks,

Dejan

>
> Regards,
> Lars
>
> --
> Architect Storage/HA
> SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/