353868 (1) [Avatar] Offline
#1
Hello

I followed the instruction in the book and could not start nova-cert. I found this error in /var/log/upstart/nova-cert.log. The /usr/lib/python2.7/dist-packages/CA folder does not exist. My nova.conf does not have ca_path. Please help.

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 346, in fire_timers
timer()
File "/usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 56, in __call__
cb(*args, **kw)
File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
result = function(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py", line 483, in run_service
service.start()
File "/usr/lib/python2.7/dist-packages/nova/service.py", line 163, in start
self.manager.init_host()
File "/usr/lib/python2.7/dist-packages/nova/cert/manager.py", line 42, in init_host
crypto.ensure_ca_filesystem()
File "/usr/lib/python2.7/dist-packages/nova/crypto.py", line 122, in ensure_ca_filesystem
fileutils.ensure_tree(ca_dir)
File "/usr/lib/python2.7/dist-packages/nova/openstack/common/fileutils.py", line 37, in ensure_tree
os.makedirs(path)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/CA'
2015-08-27 21:54:30.507 1067 ERROR nova.openstack.common.threadgroup [-] [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/CA'
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.
py", line 117, in wait
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup x.wait()
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.
py", line 49, in wait
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup return self.thread.wait()
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168
, in wait
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup return self._exit_event.wait()
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in w
ait
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup return hubs.get_hub().switch()
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, i
n switch
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup return self.greenlet.switch()
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194
, in main
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup result = function(*args, **kwargs)
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py",
line 483, in run_service
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup service.start()
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/service.py", line 163, in sta
rt
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup self.manager.init_host()
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/cert/manager.py", line 42, in
init_host
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup crypto.ensure_ca_filesystem()
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/crypto.py", line 122, in ensu
re_ca_filesystem
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup fileutils.ensure_tree(ca_dir)
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/fileutils.py
", line 37, in ensure_tree
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup os.makedirs(path)
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/os.py", line 157, in makedirs
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup mkdir(name, mode)
2015-08-27 21:54:30.507 1067 TRACE nova.openstack.common.threadgroup OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/CA