本帖最后由 xioaxu790 于 2014-4-14 09:21 编辑
错误一:启动nova-network
root@control:~# nova-network restart
2014-04-14 09:09:43 AUDIT nova.service [-] Starting network node (version 2012.1.4-LOCALBRANCH:LOCALREVISION)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 336, 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 192, in main
result = function(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server
server.start()
File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in start
self.manager.init_host()
File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1700, in init_host
self.l3driver.initialize()
File "/usr/lib/python2.7/dist-packages/nova/network/l3.py", line 84, in initialize
linux_net.init_host()
File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 444, in init_host
add_snat_rule(ip_range)
File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 434, in add_snat_rule
iptables_manager.apply()
File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 988, in inner
retval = f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 328, in apply
attempts=5)
File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 818, in _execute
return utils.execute(*cmd, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 247, in execute
cmd=' '.join(cmd))
ProcessExecutionError: Unexpected error while running command.
Command: sudo nova-rootwrap iptables-save -t filter
Exit code: 1
Stdout: ''
Stderr: 'sudo: /etc/sudoers is owned by uid 1000, should be 0\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin\n'
2014-04-14 09:09:48 CRITICAL nova [-] Unexpected error while running command.
Command: sudo nova-rootwrap iptables-save -t filter
Exit code: 1
Stdout: ''
Stderr: 'sudo: /etc/sudoers is owned by uid 1000, should be 0\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin\n'
问题二:启动nova-volume错误
root@control:~# nova-volume restart
2014-04-14 09:19:11 AUDIT nova.service [-] Starting volume node (version 2012.1.4-LOCALBRANCH:LOCALREVISION)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 336, 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 192, in main
result = function(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server
server.start()
File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in start
self.manager.init_host()
File "/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 93, in init_host
self.driver.check_for_setup_error()
File "/usr/lib/python2.7/dist-packages/nova/volume/driver.py", line 103, in check_for_setup_error
run_as_root=True)
File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 247, in execute
cmd=' '.join(cmd))
ProcessExecutionError: Unexpected error while running command.
Command: sudo nova-rootwrap vgs --noheadings -o name
Exit code: 1
Stdout: ''
Stderr: 'sudo: /etc/sudoers is owned by uid 1000, should be 0\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin\n'
2014-04-14 09:19:11 CRITICAL nova [-] Unexpected error while running command.
Command: sudo nova-rootwrap vgs --noheadings -o name
Exit code: 1
Stdout: ''
Stderr: 'sudo: /etc/sudoers is owned by uid 1000, should be 0\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin\n'
谢谢各位赐教,我们可以一起讨论
|