[Openstack] Compute Node OSError: [Errno 13] Permission denied: '/run'\n"

Greg Chavez greg.chavez at gmail.com
Fri Feb 8 17:21:51 UTC 2013


Figured it out myself.  The sample nova.conf at
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rsthas
this setting:

lock_path=/run/lock/nova

Gah.  Must be an Ubuntu thing?  I'm running on RHEL 6.3  I changed this to:

lock_path=/var/lock/nova

And then I had to run this:

usermod -G lock nova

After that:

[root at kvm-cs-sn-10i nova]# virsh list
 Id    Name                           State
----------------------------------------------------
 1     instance-0000000a              running


On Fri, Feb 8, 2013 at 12:05 PM, Greg Chavez <greg.chavez at gmail.com> wrote:

>
> It's a slog, but I appear to be on the cusp on launching my first VM with
> using the 3-NIC network node setup outline by
> the OpenStack_Folsom_Install_Guide_WebVersion.rst guide at github.  Right
> now, I'm getting this error on my compute node when I try to launch the
> Cirros test image.  I am sooooo close.  Can anyone help? Thanks.
>
> 2013-02-08 11:42:09 ERROR nova.compute.manager
> [req-2aa04352-6e7f-4c54-abcd-4586ce522266 65fdf1a86cfa4e50aafb6c132106e00f
> cec6647113c74b66b308de14032e591a] [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65] Instance failed to spawn
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65] Traceback (most recent call last):
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 747, in
> _spawn
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     block_device_info)
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File
> "/usr/lib/python2.6/site-packages/nova/exception.py", line 117, in wrapped
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     temp_level, payload)
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File
> "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     self.gen.next()
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File
> "/usr/lib/python2.6/site-packages/nova/exception.py", line 92, in wrapped
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     return f(*args, **kw)
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File
> "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 1092,
> in spawn
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     block_device_info)
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File
> "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 1929,
> in _create_domain_and_network
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]
> self.firewall_driver.setup_basic_filtering(instance, network_info)
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File
> "/usr/lib/python2.6/site-packages/nova/virt/libvirt/firewall.py", line 215,
> in setup_basic_filtering
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     self.refresh_provider_fw_rules()
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File
> "/usr/lib/python2.6/site-packages/nova/virt/firewall.py", line 453, in
> refresh_provider_fw_rules
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]
> self._do_refresh_provider_fw_rules()
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File
> "/usr/lib/python2.6/site-packages/nova/utils.py", line 739, in inner
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     ensure_tree(local_lock_path)
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File
> "/usr/lib/python2.6/site-packages/nova/utils.py", line 1324, in ensure_tree
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     os.makedirs(path)
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File "/usr/lib64/python2.6/os.py",
> line 150, in makedirs
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     makedirs(head, mode)
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File "/usr/lib64/python2.6/os.py",
> line 150, in makedirs
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     makedirs(head, mode)
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]   File "/usr/lib64/python2.6/os.py",
> line 157, in makedirs
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]     mkdir(name, mode)
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65] OSError: [Errno 13] Permission
> denied: '/run'
> 2013-02-08 11:42:09 40898 TRACE nova.compute.manager [instance:
> 563385d7-0654-45f0-8c81-8aaa3acdcd65]
>
> --
> \*..+.-
> --Greg Chavez
> +//..;};
>



-- 
\*..+.-
--Greg Chavez
+//..;};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130208/386857b5/attachment.html>


More information about the Openstack mailing list