Warning messages during package installation

Bug #1564922 reported by Dr. Jens Harbott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ceph (Ubuntu)
Invalid
Undecided
Unassigned
init-system-helpers (Ubuntu)
New
Undecided
Unassigned

Bug Description

When having a custom /usr/sbin/policy-rc.d, there are various warnings during installation, like:

Preparing to unpack .../ceph_10.1.0.dfsg-0ubuntu1~ubuntu16.04.1~ppa201603311201_amd64.deb ...
deb-systemd-invoke only supports /usr/sbin/policy-rc.d return code 101 and 104!
Got return code 100, ignoring.
deb-systemd-invoke only supports /usr/sbin/policy-rc.d return code 101 and 104!
Got return code 100, ignoring.
Unpacking ceph (10.1.0.dfsg-0ubuntu1~ubuntu16.04.1~ppa201603311201) over (10.0.5-0ubuntu1) ...
Preparing to unpack .../ceph-common_10.1.0.dfsg-0ubuntu1~ubuntu16.04.1~ppa201603311201_amd64.deb ...
deb-systemd-invoke only supports /usr/sbin/policy-rc.d return code 101 and 104!
Got return code 100, ignoring.

The issue seems to be that deb-systemd-invoke is called with the systemd-type service name, while /usr/sbin/policy-rc.d expects the "old" service name as parameter, e.g. "ceph-mon.service" vs "ceph-mon":

root@controller-node11:~# /usr/sbin/policy-rc.d ceph-mon start
root@controller-node11:~# echo $?
104
root@controller-node11:~# /usr/sbin/policy-rc.d ceph-mon.service start
root@controller-node11:~# echo $?
100

Revision history for this message
James Page (james-page) wrote :

 Exit status codes:

 100 - unknown initscript id

Revision history for this message
James Page (james-page) wrote :

Jens

Do you have an /usr/sbin/policy-rc.d installed on your servers? This file is not provided by distro - the warning from deb-systemd-invoke is just a warning and the maintainer script only calls it for:

  deb-systemd-invoke start ceph-create-keys.service ceph-mon.service

I'm going to drop this for the fix for enablement of those two services anyway; but something local to your install is triggering this message.

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

Right, this seems to be something local, I'll have to check where is comes from. Still it behaves correctly for the "old" service name without ".service" appended, so this still looks like a bug in deb-systemd-invoke to me:

root@controller-node11:~# /usr/sbin/policy-rc.d ceph-mon start
root@controller-node11:~# echo $?
104
root@controller-node11:~# /usr/sbin/policy-rc.d ceph-mon.service start
root@controller-node11:~# echo $?
100

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

I'm now seeing the warnings also in the postinst for dmeventd, so probably deb-systemd-invoke should be fixed as being the common denominator.

Changed in ceph (Ubuntu):
status: New → Invalid
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.