Upgrade from Xenial to Bionic breaks pacemaker resource naming
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack HA Cluster Charm |
Fix Released
|
High
|
Felipe Reyes |
Bug Description
A Cloud environment was upgraded from Xenial to Bionic using "juju upgrade-series" and manually running "do-release-
Containers have ethX interfaces, and the pacemaker resource name on all the containers that use charm-hacluster are of the type "res_eth0_vip".
After the upgrade to Bionic, I had to manually fix the duplicated VIP by removing the resource that was not configured on any group:
https:/
However, I think I will run into the same issue because the "ha" relation shows the new resource name ("res_nova_
I think charm-hacluster should use the already configured resource or reconfigure (rename) it.
~$ u=ncc-hacluster
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
nova-cloud-
tags: | added: sts |
Changed in charm-hacluster: | |
milestone: | none → 19.10 |
Changed in charm-hacluster: | |
assignee: | nobody → Felipe Reyes (freyes) |
Changed in charm-hacluster: | |
importance: | Undecided → High |
Changed in charm-hacluster: | |
status: | Fix Committed → Fix Released |
This also occurs when upgrading charms.
Reproducer:
1. Deploy bundle:
http:// paste.ubuntu. com/p/KRTgNsr9K h/
2. Verify "crm_mon -Af -1" before continuing:
# crm_mon -Af -1 default- 0 default- 3 (version 1.1.14-70404b0) - partition with quorum
Last updated: Tue Oct 8 16:13:57 2019 Last change: Tue Oct 8 16:11:00 2019 by hacluster via crmd on juju-93c0af-
Stack: corosync
Current DC: juju-93c0af-
3 nodes and 4 resources configured
Online: [ juju-93c0af- default- 0 juju-93c0af- default- 2 juju-93c0af- default- 3 ]
Resource Group: grp_ks_vips ks_ens3_ vip (ocf::heartbeat :IPaddr2) : Started juju-93c0af- default- 0 default- 0 juju-93c0af- default- 2 juju-93c0af- default- 3 ]
res_
Clone Set: cl_ks_haproxy [res_ks_haproxy]
Started: [ juju-93c0af-
Node Attributes: default- 0: default- 2: default- 3:
* Node juju-93c0af-
* Node juju-93c0af-
* Node juju-93c0af-
Migration Summary: default- 3: default- 0: default- 2:
* Node juju-93c0af-
* Node juju-93c0af-
* Node juju-93c0af-
3. Upgrade keystone
juju upgrade-charm keystone
4. Once complete, upgrade hacluster
juju upgrade-charm hacluster
5. The charm is now stuck in a waiting "Resource: res_ks_242d562_vip not yet configured" state
6. Investigate "crm_mon -Af -1"
# crm_mon -Af -1 default- 3 default- 3 (version 1.1.14-70404b0) - partition with quorum
Last updated: Tue Oct 8 16:32:19 2019 Last change: Tue Oct 8 16:22:15 2019 by root via cibadmin on juju-93c0af-
Stack: corosync
Current DC: juju-93c0af-
3 nodes and 4 resources configured
Online: [ juju-93c0af- default- 0 juju-93c0af- default- 2 juju-93c0af- default- 3 ]
Resource Group: grp_ks_vips ks_ens3_ vip (ocf::heartbeat :IPaddr2) : Started juju-93c0af- default- 0 default- 0 juju-93c0af- default- 2 juju-93c0af- default- 3 ]
res_
Clone Set: cl_ks_haproxy [res_ks_haproxy]
Started: [ juju-93c0af-
Node Attributes: default- 0: default- 2: default- 3:
* Node juju-93c0af-
* Node juju-93c0af-
* Node juju-93c0af-
Migration Summary: default- 3: default- 0: default- 2:
* Node juju-93c0af-
* Node juju-93c0af-
* Node juju-93c0af-