OpenStack 服务报错解决:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task self._handle_base_image(img, base_file)
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagecache.py", line 550, in _handle_base_image
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task virtutils.chown(base_file, os.getuid())
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/utils.py", line 504, in chown
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task execute('chown', owner, path, run_as_root=True)
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/utils.py", line 50, in execute
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task return utils.execute(*args, **kwargs)
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task File "/usr/lib/python2.6/site-packages/nova/utils.py", line 177, in execute
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task return processutils.execute(*cmd, **kwargs)
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task File "/usr/lib/python2.6/site-packages/nova/openstack/common/processutils.py", line 178, in execute
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task cmd=' '.join(cmd))
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task ProcessExecutionError: Unexpected error while running command.
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task Command: sudo nova-rootwrap /etc/nova/rootwrap.conf chown 162 /data/instances/_base/333130da1ece657e40add7ba2ac68232d4a02f7e
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task Exit code: 1
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task Stdout: ''
2014-11-28 05:06:52.212 4347 TRACE nova.openstack.common.periodic_task Stderr: 'sudo: sorry, you must have a tty to run sudo\n'
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf chown 162 /data/instances/_base/333130da1ece657e40add7ba2ac68232d4a02f7e
2014-11-28 03:33:02.939 10469 TRACE nova.openstack.common.service Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c
|
1, ps 查看 各个组件用户启动权限,是否是Nova 用户
2, 查看/var/lib/nova/tmp目录下文件权限是否是nova 用户权限
3, 查看/etc/sudocers.d/是否有Nova sudo 权限配置
本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1583998