[Bug 1673579] Re: Corosync/Pacemaker: Error when enabling Pacemaker service, Error when starting the cluster

Brian Murray brian at ubuntu.com
Thu May 4 21:47:16 UTC 2017


Hello Akash, or anyone else affected,

Accepted pcs into xenial-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/pcs/0.9.149-1ubuntu1.1
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 on 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: pcs (Ubuntu Xenial)
       Status: In Progress => Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1673579

Title:
  Corosync/Pacemaker: Error when enabling Pacemaker service,Error when
  starting the cluster

Status in pcs package in Ubuntu:
  Fix Released
Status in pcs source package in Xenial:
  Fix Committed

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/cluster/corosync.log
  with
  logfile: /var/log/corosync/corosync.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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcs/+bug/1673579/+subscriptions



More information about the Ubuntu-sponsors mailing list