"systemctl enable corosync-qdevice.service" fails

Bug #1809682 reported by Don van der Haghen on 2018-12-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
corosync (Ubuntu)
Don van der Haghen

Bug Description

"systemctl enable corosync-qdevice.service" fails:
Synchronizing state of corosync-qdevice.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable corosync-qdevice
update-rc.d: error: corosync-qdevice Default-Start contains no runlevels, aborting.

Reason is that an init.d script as well as a systemd service definition exists:
# dpkg -L corosync-qdevice

Therefore, using pcs to add a qdevice to the cluster fails:
pcs quorum device add model net host=qdevice-host algorithm=ffsplit
I, [2018-12-24T22:39:00.208158 #149] INFO -- : Running: systemctl enable corosync-qdevice.service
I, [2018-12-24T22:39:00.208322 #149] INFO -- : CIB USER: hacluster, groups:
I, [2018-12-24T22:39:00.463878 #149] INFO -- : Return Value: 1
E, [2018-12-24T22:39:00.464110 #149] ERROR -- : Enabling corosync-qdevice failed

Workaround is to manually remove the "/etc/init.d/corosync-qdevice" script.

Solution is to remove the "/etc/init.d/corosync-qdevice" file from the "corosync-qdevice" package.

Don van der Haghen (donvdh) wrote :

I forgot to mention, this bug report concerns:
Ubuntu 18.04
Package: corosync-qdevice
Version: 2.4.3-0ubuntu1

Andreas Hasenack (ahasenack) wrote :

Bug confirmed. It's an odd looking initscript, as it does not have the usual actions in itself.

Changed in corosync (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Don van der Haghen (donvdh) wrote :

Attached debdiff, based on corosync (2.4.3-0ubuntu1) for Ubuntu 18.04/bionic removes the debian/corosync-qdevice.init script from the package. If already installed previously, it removes the /etc/init.d/corosync-qdevice script through the corosync-qdevice.postinst script upon package upgrade.

I also tried to reproduce the issue on Debian 9.7.0: On Debian the package also includes and installs the same script. However on Debian systemctl prefers to use systemd service definitions instead of the init scripts, therefore the issue doesn't occur on Debian.

I would like to kindly ask a sponsor to review the patch and let me know which changes would be required to get it accepted.

Thank you very much in advance.

Changed in corosync (Ubuntu):
assignee: nobody → Don van der Haghen (donvdh)

The attachment "bionic-fix-for-corosync-qdevice-lp1809682.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Jeremy Bicha (jbicha) on 2019-02-14
tags: added: bionic rls-bb-incoming
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers