RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 961557 - Missing /var/lock/nova' Directory
Summary: Missing /var/lock/nova' Directory
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: RDO
Classification: Community
Component: openstack-nova
Version: unspecified
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-10 00:03 UTC by itzikb
Modified: 2015-06-04 21:51 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-10 13:09:38 UTC
Embargoed:


Attachments (Terms of Use)

Description itzikb 2013-05-10 00:03:36 UTC
Description of problem:

When Launching a new Instance I'm getting the following error:

2013-05-09 15:25:15.319 6734 TRACE nova.manager Traceback (most recent call last):
2013-05-09 15:25:15.319 6734 TRACE nova.manager   File "/usr/lib/python2.6/site-packages/nova/manager.py", line 241, in periodic_tasks
2013-05-09 15:25:15.319 6734 TRACE nova.manager     task(self, context)
2013-05-09 15:25:15.319 6734 TRACE nova.manager   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 4007, in _run_image_cache_manager_pass
2013-05-09 15:25:15.319 6734 TRACE nova.manager     storage_users.register_storage_use(CONF.instances_path, CONF.host)
2013-05-09 15:25:15.319 6734 TRACE nova.manager   File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 210, in inner
2013-05-09 15:25:15.319 6734 TRACE nova.manager     fileutils.ensure_tree(local_lock_path)
2013-05-09 15:25:15.319 6734 TRACE nova.manager   File "/usr/lib/python2.6/site-packages/nova/openstack/common/fileutils.py", line 29, in ensure_tree
2013-05-09 15:25:15.319 6734 TRACE nova.manager     os.makedirs(path)
2013-05-09 15:25:15.319 6734 TRACE nova.manager   File "/usr/lib64/python2.6/os.py", line 157, in makedirs
2013-05-09 15:25:15.319 6734 TRACE nova.manager     mkdir(name, mode)
2013-05-09 15:25:15.319 6734 TRACE nova.manager OSError: [Errno 13] Permission denied: '/var/lock/nova'

Running:
mkdir /var/lock/nova
chown nova:nova /var/lock/nova

Solved the problem.

Version-Release number of selected component (if applicable):
openstack-nova-compute-2013.1-2.el6.noarch

How reproducible:
Always after Installation

Steps to Reproduce:
1.Install openstack-compute Node with a proper configuration.
2.Launch an Instance
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Pádraig Brady 2013-05-10 11:36:57 UTC
RDO nova should come configured with lock_path=/var/lib/nova/tmp
in /etc/nova/nova.conf

/var/lock is controlled by the system, rather than nova,
and so the nova process doesn't have write access there.
Is there some reason why /var/lib/nova/tmp doesn't suffice?

Note it's important to define some value for lock_path,
as leaving it as "None" will trigger buggy tmp dir logic in nova.


Note You need to log in before you can comment on or make changes to this bug.