Corosync/Pacemaker: Error when enabling Pacemaker service,Error when starting the cluster
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcs (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Xenial |
Fix Released
|
Low
|
Bryan Quigley |
Bug Description
[Impact]
* Low, requires users to change the config pcs just generated for them because the logging paths aren't correct on Debian/Ubuntu.
* While easy to workaround it its broken by default.
[Test Case]
Install Pacemaker packages:
sudo apt-get install pcs
Set the password for the default user:
sudo passwd hacluster
#To clear files
sudo pcs cluster destroy
Enable and start pcsd/pacemaker:
#this is not needed on yakkety/zesty, why?
sudo systemctl start pcsd
sudo pcs cluster auth pacemaker-1 pacemaker-2 -u hacluster -p haclusterpassword
#this is not needed on yakkety/zesty, why?
sudo systemctl enable pacemaker
sudo pcs cluster setup --name hacluster pacemaker-1 pacemaker-2
sudo pcs cluster start
**FAILS***
Starting Cluster...
Job for corosync.service failed because the control process exited with error code. See "systemctl status corosync.service" and "journalctl -xe" for details.
Error: unable to start corosync
(Then to actually bring the cluster up you need to sudo systemctl start pacemaker)
__
Workaround
On both nodes, Replace the line:
logfile: /var/log/
with
logfile: /var/log/
[Regression Potential]
* Seems unlikely this changes is only in the setup cluster function. This exact same fix is now in the Debian package, we just make the logging directory the right one.
* The only potential I see is if someone has scripted creating a cluster using pcs and worked around this bug by making the corosync directory instead of changing the config file.
[Other Info]
* This is already fixed in 16.10 and 17.04.
description: | updated |
description: | updated |
affects: | ubuntu → pcs (Ubuntu) |
description: | updated |
description: | updated |
Changed in pcs (Ubuntu): | |
importance: | Undecided → Low |
tags: | added: xenial |
Changed in pcs (Ubuntu): | |
status: | New → Fix Released |
Changed in pcs (Ubuntu Xenial): | |
assignee: | nobody → Bryan Quigley (bryanquigley) |
Changed in pcs (Ubuntu Xenial): | |
importance: | Undecided → Low |
Changed in pcs (Ubuntu Xenial): | |
status: | New → Triaged |
status: | Triaged → In Progress |
tags: | added: sts |
On zesty it all works without errors, namely:
Install Pacemaker packages:
sudo apt-get install pcs
Set the password for the default user:
sudo passwd hacluster
#To clear files
sudo pcs cluster destroy
sudo pcs cluster auth pacemaker-1 pacemaker-2 -u hacluster -p haclusterpassword
sudo pcs cluster setup --name hacluster pacemaker-1 pacemaker-2
(And start doesn't error out)