openipmi adding to autoload fail

Bug #1596474 reported by Alex
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openipmi (Debian)
Fix Released
Unknown
openipmi (Ubuntu)
Fix Released
High
Unassigned
Xenial
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

 * Attempting to set the openipmi service to autostart (or any other systemd manipulation of that service) results in:

/bin/systemctl enable openipmi
openipmi.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable openipmi
update-rc.d: error: openipmi Default-Start contains no runlevels, aborting.

  * The fix specifies the common default values for Default-Start and Default-Stop in the init-script.

[Test Case]

 * Install openipmi and execute `systemctl enable openipmi`. A successful execution indicates the issue has been fixed.

[Regression Potential]

 * Currently, the init-script provides no Default-Start or Default-Stop value. I believe the chance for regression by adding these is very low, as they are expected to be specified by systemd (at least).

I tried to add openipmi service to autostart and I've got following error:

/bin/systemctl enable openipmi
openipmi.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable openipmi
update-rc.d: error: openipmi Default-Start contains no runlevels, aborting.
echo $?
1

update-rc.d openipmi enable
update-rc.d: error: openipmi Default-Start contains no runlevels, aborting.

grep Default-Start /etc/init.d/openipmi
# Default-Start:

lsb_release -rd
Description: Ubuntu 16.04 LTS
Release: 16.04

apt-cache policy openipmi
openipmi:
  Installed: 2.0.18-0ubuntu11
  Candidate: 2.0.18-0ubuntu11
  Version table:
 *** 2.0.18-0ubuntu11 500
        500 mirror://<OUR CORPORATE UP-TO-DATE MIRROR>/ubuntu/lists/archive.ubuntu.com-list-<OUR CORPORATE ID> xenial/main amd64 Packages
        100 /var/lib/dpkg/status

Angle brackets and text inside changed manually while bug reporting.

After changing /etc/init.d/openipmi line above to
# Default-Start: 2 3 4 5
problem was solved.

Alex (alex-username)
description: updated
Robie Basak (racb)
tags: added: bitesize server-next
Changed in openipmi (Ubuntu):
importance: Undecided → High
Nish Aravamudan (nacc)
Changed in openipmi (Ubuntu):
assignee: nobody → Nish Aravamudan (nacc)
Revision history for this message
Nish Aravamudan (nacc) wrote :
Revision history for this message
Nish Aravamudan (nacc) wrote :

I have reported this to Debian as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829037 and have also provided in the same bug the same debdiff. I'm currently pushing all of our 16.10 delta to Debian, and I'm hoping we might be able to sync openipmi in 16.10. If that is the case, then 16.10 will get the fix via that route (and presuming Debian accepts the same change, admittedly). At which point, we can SRU the attached debdiff to Xenial.

description: updated
Nish Aravamudan (nacc)
Changed in openipmi (Ubuntu):
status: New → Triaged
Changed in openipmi (Debian):
status: Unknown → Confirmed
Nish Aravamudan (nacc)
Changed in openipmi (Ubuntu):
status: Triaged → In Progress
Changed in openipmi (Ubuntu Xenial):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openipmi - 2.0.18-0ubuntu12

---------------
openipmi (2.0.18-0ubuntu12) yakkety; urgency=medium

  * debian/openipmi.init: add Default-Start and Default-Stop values
    (LP: #1596474).
  * Forward-port fix from 2.0.16-1.1: fix pkg-config files: pthread.pc
    does not exist in Ubuntu (LP: #1311888).

 -- Nishanth Aravamudan <email address hidden> Mon, 12 Sep 2016 10:56:21 -0700

Changed in openipmi (Ubuntu):
status: In Progress → Fix Released
Nish Aravamudan (nacc)
Changed in openipmi (Ubuntu):
assignee: Nish Aravamudan (nacc) → nobody
Changed in openipmi (Ubuntu Xenial):
assignee: nobody → Nish Aravamudan (nacc)
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Alexander, or anyone else affected,

Accepted openipmi into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/openipmi/2.0.18-0ubuntu11.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 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 openipmi (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Alex (alex-username) wrote :

# systemctl enable openipmi
openipmi.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable openipmi
insserv: warning: current start runlevel(s) (empty) of script `openipmi' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (2 3 4 5) of script `openipmi' overrides LSB defaults (0 1 6).
insserv: warning: current stop runlevel(s) (empty) of script `openipmi' overrides LSB defaults

Revision history for this message
PeterSouter (p-morsou) wrote :

Proposed fixes the issue for me too:

Old:
root@homebox:~# dpkg -s openipmi | grep Version
Version: 2.0.18-0ubuntu11
root@homebox:~# /bin/systemctl enable openipmi
openipmi.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable openipmi
update-rc.d: error: openipmi Default-Start contains no runlevels, aborting.

Proposed
root@homebox:~# apt-get install openipmi/xenial-proposed
[...]
root@homebox:~# dpkg -s openipmi | grep Version
Version: 2.0.18-0ubuntu11.1
root@homebox:~# /bin/systemctl enable openipmi
openipmi.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable openipmi

PeterSouter (p-morsou)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openipmi - 2.0.18-0ubuntu11.1

---------------
openipmi (2.0.18-0ubuntu11.1) xenial; urgency=medium

  * debian/openipmi.init: add Default-Start and Default-Stop values
    (LP: #1596474).
  * Forward-port fix from 2.0.16-1.1: fix pkg-config files: pthread.pc
    does not exist in Ubuntu (LP: #1311888).

 -- Nishanth Aravamudan <email address hidden> Wed, 29 Jun 2016 15:11:08 -0700

Changed in openipmi (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for openipmi has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Nish Aravamudan (nacc)
Changed in openipmi (Ubuntu Xenial):
assignee: Nish Aravamudan (nacc) → nobody
Changed in openipmi (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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