Missing LSB Headers in nova-agent initscript
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.
apt/term.
-- 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
- Chris Behrens: Approve
-
Diff: 217 lines (+57/-36)6 files modified.bzrignore (+3/-3)
unix/Makefile.am (+14/-14)
unix/commands/network.py (+5/-1)
unix/configure.ac (+3/-3)
unix/scripts/generic/nova-agent.in (+13/-2)
unix/scripts/installer.sh.in (+19/-13)
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 |
Changed in openstack-guest-agents: | |
status: | Fix Committed → Fix Released |
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.