[SRU] Use the hostname as the node name instead of hardcoded 'node1'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack HA Cluster Charm |
Fix Released
|
High
|
Unassigned | ||
corosync (Ubuntu) |
Fix Released
|
Undecided
|
Lucas Kanashiro | ||
Focal |
Won't Fix
|
Medium
|
Lucas Kanashiro | ||
Groovy |
Won't Fix
|
Undecided
|
Unassigned | ||
Hirsute |
Won't Fix
|
Undecided
|
Unassigned | ||
pacemaker (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Groovy |
Invalid
|
Undecided
|
Unassigned | ||
Hirsute |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Users upgrading from Bionic to Focal are getting a different default node name. The former is using the hostname (output of "$(uname -n)"), and the latter uses a hardcoded name "node1". This issue was already fixed on Impish onward, so now only Focal is using the hardcoded "node1" node name.
[Test Plan]
$ lxc launch ubuntu-daily:focal corosync-sru
$ lxc shell corosync-sru
# apt update && apt upgrade -y
# apt install -y corosync pacemaker crmsh
# crm status
Cluster Summary:
* Stack: corosync
* Current DC: corosync-sru (version 2.0.3-4b1f869f0f) - partition with quorum
* Last updated: Tue Apr 5 20:21:32 2022
* Last change: Tue Apr 5 20:20:33 2022 by hacluster via crmd on corosync-sru
* 1 node configured
* 0 resource instances configured
Node List:
* Online: [ corosync-sru ]
Full List of Resources:
* No resources
In the 'Node List' section the node should be called 'corosync-sru' and not 'node1'.
[Where problems could occur]
This might be a problem if Focal users are already relying in the 'node1' node name, other than that I do not foresee any issue.
[Original Message]
Testing of masakari on focal zaza tests failed because the test checks that all pacemaker nodes are online. This check failed due the appearance of a new node called 'node1' which was marked as offline. I don't know where that node came from or what is supposed to represent but it seems like an unwanted change in behaviour.
Related branches
- Simon Quigley (community): Approve
- Sergio Durigan Junior (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 81 lines (+23/-6)3 files modifieddebian/changelog (+9/-0)
debian/patches/Make-the-example-config-valid.patch (+13/-5)
debian/tests/quorumtool (+1/-1)
- Lucas Kanashiro (community): Approve
- Canonical Server: Pending requested
-
Diff: 390 lines (+255/-9)7 files modifieddebian/changelog (+212/-0)
debian/control (+5/-2)
debian/patches/Make-the-example-config-valid.patch (+13/-5)
debian/patches/lp1918735/0001-allow_knet_handle_fallback_default_yes.patch (+22/-0)
debian/patches/series (+1/-0)
debian/tests/control (+1/-1)
debian/tests/quorumtool (+1/-1)
- Bryce Harrington (community): Approve
- git-ubuntu developers: Pending requested
-
Diff: 368 lines (+240/-9)7 files modifieddebian/changelog (+197/-0)
debian/control (+5/-2)
debian/patches/Make-the-example-config-valid.patch (+13/-5)
debian/patches/lp1918735/0001-allow_knet_handle_fallback_default_yes.patch (+22/-0)
debian/patches/series (+1/-0)
debian/tests/control (+1/-1)
debian/tests/quorumtool (+1/-1)
- Sergio Durigan Junior (community): Approve
- Canonical Server: Pending requested
-
Diff: 81 lines (+23/-6)3 files modifieddebian/changelog (+9/-0)
debian/patches/Make-the-example-config-valid.patch (+13/-5)
debian/tests/quorumtool (+1/-1)
Changed in pacemaker (Ubuntu): | |
assignee: | nobody → Rafael David Tinoco (rafaeldtinoco) |
Changed in pacemaker (Ubuntu): | |
status: | New → Invalid |
Changed in charm-hacluster: | |
status: | In Progress → Triaged |
assignee: | Aurelien Lourot (aurelien-lourot) → nobody |
tags: | added: cdo-qa foundations-engine |
tags: | added: seg |
Changed in pacemaker (Ubuntu): | |
status: | Invalid → New |
Changed in pacemaker (Ubuntu Focal): | |
status: | New → Invalid |
Changed in pacemaker (Ubuntu Hirsute): | |
status: | New → Invalid |
Changed in pacemaker (Ubuntu Groovy): | |
status: | New → Invalid |
Changed in corosync (Ubuntu Focal): | |
status: | New → Triaged |
Changed in corosync (Ubuntu Groovy): | |
status: | New → Triaged |
Changed in corosync (Ubuntu Hirsute): | |
status: | New → Triaged |
Changed in pacemaker (Ubuntu): | |
assignee: | Rafael David Tinoco (rafaeldtinoco) → nobody |
Changed in corosync (Ubuntu): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Changed in corosync (Ubuntu Focal): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Changed in corosync (Ubuntu Groovy): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Changed in corosync (Ubuntu Hirsute): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
summary: |
- Focal/Groovy deploy creates a 'node1' node + [SRU] Use the hostname as the node name instead of hardcoded 'node1' |
Changed in corosync (Ubuntu Focal): | |
importance: | Undecided → Medium |
description: | updated |
Changed in corosync (Ubuntu Focal): | |
status: | Triaged → In Progress |
description: | updated |
Changed in charm-hacluster: | |
milestone: | none → 22.04 |
Changed in charm-hacluster: | |
status: | Fix Committed → Fix Released |
tags: | removed: server-todo |
HAving looked into it further it seems to be the name of the node that has changed.
juju deploy cs:bionic/ubuntu bionic-ubuntu
juju deploy cs:focal/ubuntu focal-ubuntu
juju run --unit bionic-ubuntu/0 "sudo apt install --yes crmsh pacemaker"
juju run --unit focal-ubuntu/0 "sudo apt install --yes crmsh pacemaker"
$ juju run --unit focal-ubuntu/0 "sudo crm status"
Cluster Summary:
* Stack: corosync
* Current DC: node1 (version 2.0.3-4b1f869f0f) - partition with quorum
* Last updated: Fri Apr 24 15:03:52 2020
* Last change: Fri Apr 24 15:02:20 2020 by hacluster via crmd on node1
* 1 node configured
* 0 resource instances configured
Node List:
* Online: [ node1 ]
Full List of Resources:
* No resources
$ juju run --unit bionic-ubuntu/0 "sudo crm status" hatest2- 0 (version 1.1.18-2b07d5c5a9) - partition WITHOUT quorum hatest2- 0
Stack: corosync
Current DC: juju-27f7a7-
Last updated: Fri Apr 24 15:04:05 2020
Last change: Fri Apr 24 15:00:43 2020 by hacluster via crmd on juju-27f7a7-
1 node configured
0 resources configured
Online: [ juju-27f7a7- hatest2- 0 ]
No resources