Trusty's "crm configure load" fails to update cluster configuration

Bug #1353011 reported by Rafael David Tinoco
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
crmsh (Ubuntu)
Fix Released
Undecided
Rafael David Tinoco
Trusty
Fix Released
Medium
Unassigned

Bug Description

[Impact]

 * crm configure load update does not work in Trusty.
 * it is not possible to restore previous cluster configuration.

[Test Case]

 * crm configure save
 * crm configure load
 * see the error

[Regression Potential]

 * based on upstream commit.
 * tested by community and assigner. fixes the issue.
 * not working today so no potential regression.

[Other Info]

 * Original bug description:

----------------

It was brought to me (~inaddy) the following situation:

""""""

* Environment
Ubuntu 14.04 LTS
Pacemaker 1.1.10+git20130802-1ubuntu2

* Issue
I cannot use "crm configure load update".
It cause an error as below.

# crm configure load update settings.crm
ERROR: elements cib-bootstrap-options already exist

My pacemaker settings.
--------------------------------------------
property no-quorum-policy="ignore" \
stonith-enabled="true" \
startup-fencing="false" \
crmd-transition-delay="2s"

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

group grpStonith1 \
prmStonith1-2

group grpStonith2 \
prmStonith2-2

fencing_topology \
A1MB101: prmStonith1-2 \
A1MB102: prmStonith2-2

primitive prmStonith1-2 stonith:external/ssh \
params \
pcmk_reboot_timeout="300s" \
hostlist="A1MB101" \
op start interval="0s" timeout="60s" on-fail="restart" \
op monitor interval="10s" timeout="60s" on-fail="restart" \
op stop interval="0s" timeout="60s" on-fail="ignore"

primitive prmStonith2-2 stonith:external/ssh \
params \
pcmk_reboot_timeout="300s" \
hostlist="A1MB102" \
op start interval="0s" timeout="60s" on-fail="restart" \
op monitor interval="10s" timeout="60s" on-fail="restart" \
op stop interval="0s" timeout="60s" on-fail="ignore"

location rsc_location-grpStonith1 grpStonith1 \
rule -INFINITY: #uname eq A1MB101
location rsc_location-grpStonith2 grpStonith2 \
rule -INFINITY: #uname eq A1MB102
--------------------------------------------

* Request
1. It may be a bug. Can you fix it?

I found this thread.
http://www.gossamer-threads.com/lists/linuxha/dev/87790

""""""

I was able to reproduce the following error:

root@trustycluster01:~# crm configure load xml replace ./cluster.xml
ERROR: elements 739246090,739246088,739246089,739246087,cib-bootstrap-options already exist

Exporting and trying to re-import my personal cluster configuration.

And based on the public discussion (when this was reported):
http://www.gossamer-threads.com/lists/linuxha/dev/87790

I could see developer "fixed" this behavior on Aug 8 2013. After digging a little on crm configure load
I could find that this error came from a file on the package crmsh and on crmsh upstream tree I found this:

<email address hidden>:/bugs/00070402/sources/upstream/crmsh$ git log --since 2013-08-06 --until 2013-08-12 --pretty=format:'%ad %an | %h ||| %s' --date=local --date-order --graph | cat
* Thu Aug 8 09:55:23 2013 Dejan Muhamedagic | b146349 ||| Medium: cibconf: repair configure load update

So I'm assuming (and testing right now) this will fix the issue... Opening the public bug for the fix I'll provide after tests.

description: updated
Changed in crmsh (Ubuntu):
status: New → Confirmed
assignee: nobody → Rafael David Tinoco (inaddy)
description: updated
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

## After applying the fix I could successfully load my previous cluster configuration:

root@trustycluster01:~# crm configure load xml replace ./cluster.xml

root@trustycluster01:~# crm resource
crm(live)resource# list
 p_fence_cluster01 (stonith:external/vcenter): Stopped
 p_fence_cluster02 (stonith:external/vcenter): Stopped
 p_fence_cluster03 (stonith:external/vcenter): Stopped
 p_fence_cluster04 (stonith:external/vcenter): Stopped
 clusterip (ocf::heartbeat:IPaddr2): Started
crm(live)resource# start all
ERROR: 2: resource all does not exist
crm(live)resource# start p_fence_cluster01
crm(live)resource# start p_fence_cluster02
crm(live)resource# start p_fence_cluster03
crm(live)resource# start p_fence_cluster04
crm(live)resource# end
crm(live)# end
crm(live)# quit
bye

## and resources were active again:

root@trustycluster01:~# crm_mon -1
Last updated: Tue Aug 5 14:22:38 2014
Last change: Tue Aug 5 14:22:20 2014 via cibadmin on trustycluster02
Stack: corosync
Current DC: trustycluster02 (739246088) - partition with quorum
Version: 1.1.10-42f2063
4 Nodes configured
5 Resources configured

Online: [ trustycluster01 trustycluster02 trustycluster03 trustycluster04 ]

 p_fence_cluster01 (stonith:external/vcenter): Started trustycluster02
 p_fence_cluster02 (stonith:external/vcenter): Started trustycluster01
 p_fence_cluster03 (stonith:external/vcenter): Started trustycluster04
 p_fence_cluster04 (stonith:external/vcenter): Started trustycluster03
 clusterip (ocf::heartbeat:IPaddr2): Started trustycluster01

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Created one public PPA so the SRU proposal can be tested before asking for sponsorship:

https://launchpad.net/~inaddy/+archive/ubuntu/lp1353011

# apt-add-repository ppa:inaddy/lp1353011
# apt-get update
# apt-get dist-upgrade

* attention: this will replace current trusty crmsh version:
crmsh_1.2.5+hg1034-1ubuntu3

* to version:
crmsh_1.2.5+hg1034-1ubuntu4

* because versioning is already ready for the SRU proposal.
* to get back to current trusty version you will have to remove
* the crmsh by hand and install it again (maybe ignoring
* dependencies if you don't want to reinstall hole clustering
* packages).

After upgrading to version: crmsh_1.2.5+hg1034-1ubuntu4

Anyone who is suffering for this issue can try to
# "crm configure load ..."
again.

Tks

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

The upstream fix commit was introduced in 1.2.6-rc2.

<email address hidden>:/bugs/00070402/sources/upstream/crmsh$ git tag --contains b146349
1.2.6
1.2.6-rc2
1.2.6-rc3
2.0.0
2.1.0

And Utopic is using:

 crmsh | 1.2.6+git+e77add-1.2ubuntu1 | utopic | source, all

So fix is already in Utopic.

description: updated
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Attaching fix for trusty.

description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Rafael, or anyone else affected,

Accepted crmsh into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/crmsh/1.2.5+hg1034-1ubuntu4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in crmsh (Ubuntu Trusty):
status: New → Triaged
importance: Undecided → Medium
Changed in crmsh (Ubuntu):
status: Confirmed → Fix Released
Changed in crmsh (Ubuntu Trusty):
status: Triaged → Fix Committed
tags: added: verification-needed
tags: added: verification-node
removed: verification-needed
Nobuto Murata (nobuto)
tags: added: verification-done
removed: verification-node
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package crmsh - 1.2.5+hg1034-1ubuntu4

---------------
crmsh (1.2.5+hg1034-1ubuntu4) trusty; urgency=medium

  * cibconf: repair configure load update (LP: #1353011).
 -- Rafael David Tinoco <email address hidden> Thu, 28 Aug 2014 13:17:21 -0700

Changed in crmsh (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of the Stable Release Update for crmsh has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.