nova-volume fails at start time: bad init script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm runing nova-volume from 2012.1~
Starting volume node (version 2012.1-
2012-03-09 11:43:14 CRITICAL nova [-] [Errno 2] No such file or directory: '/var/lock/nova'
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/bin/
(nova): TRACE: service.wait()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: _launcher.wait()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: service.wait()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return self._exit_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return hubs.get_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return self.greenlet.
(nova): TRACE: File "/usr/lib/
(nova): TRACE: result = function(*args, **kwargs)
(nova): TRACE: File "/usr/lib/
(nova): TRACE: server.start()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: utils.cleanup_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: files = os.listdir(
(nova): TRACE: OSError: [Errno 2] No such file or directory: '/var/lock/nova'
(nova): TRACE:
This is due a missing check for '/var/lock/nova' in nova-volume.conf init script:
description "Nova Volume server"
author "Soren Hansen <email address hidden>"
start on (filesystem and net-device-up IFACE!=lo)
stop on runlevel [016]
chdir /var/run
pre-start script
mkdir -p /var/run/nova
chown nova:root /var/run/nova/
end script
exec su -s /bin/sh -c "exec nova-volume --flagfile=
So you can fix it just adding:
mkdir -p /var/lock/nova
chown nova:root /var/lock/nova/
as you do in other Nova packages.