Missing LSB Headers in nova-agent initscript

Bug #894102 reported by James Glenn
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openstack-guest-agents
Fix Released
Undecided
Johannes Erdfelt

Bug Description

There is an error that is happening on Debian Based images on XenServer.
Nova Agent Needs to have the LSB headers added to the script so that an error is taken care of,
This error is not something that is causing instability, it is just a warning; however, it is an error and I have been asked about this by customers. --

-- Steps to Replicate the problem
If a service is added to the system that updates the update-rc.d it creates this error. I discovered this while installing NGINX, I used the source repositories.

Here is the error that is thrown because of the missing headers :
using dependency based boot sequencing
insserv: warning: script 'nova-agent' missing LSB tags and overrides

Here are the errors from the apt/term.log
apt/term.log:insserv: warning: script 'K01nova-agent' missing LSB tags and overrides
apt/term.log:insserv: warning: script 'nova-agent' missing LSB tags and overrides

-- Steps to resolve the problem --

Here are the headers I have placed on the my own server :

### BEGIN INIT INFO
# Provides: Nova-Agent
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO

After I placed these headers on the nova-agent script, the error stopped.

Related branches

summary: - Missing LBS Headers in Nova agent init Script
+ Missing LSB Headers in nova-agent initscript
Changed in openstack-guest-agents:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
Changed in openstack-guest-agents:
status: New → Fix Committed
Revision history for this message
Christian A. Bryant (prokennexusa) wrote :

I had a similar bug that appeared on a fresk Debian 6 64-bit install. Here is what we did to solve the issue.

sudo vi /etc/init.d/nova-agent

added the following after #!/bin/sh:

### BEGIN INIT INFO
# Provides: Nova-Agent
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO

Saved the changes, the bug disappeared.

Abhishek Kumar (abionic)
Changed in openstack-guest-agents:
status: Fix Committed → Fix Released
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.