我尝试在 ubuntu 12.04 上安装 openstack essex,在完成所有进程后,我的 nova-network 运行不正常。
当我检查 /var/log/nova-network.log 上的错误消息时,我收到如下所示的错误消息:
Exit code: 2
Stdout: ''
Stderr: "Bad argument `SNAT'\nError occurred at line: 23\nTry `iptables-restore -h' or 'iptables-restore --help' for more information.\n"
2012-09-06 11:24:25 TRACE nova Traceback (most recent call last):
2012-09-06 11:24:25 TRACE nova File "/usr/bin/nova-network", line 49, in <module>
2012-09-06 11:24:25 TRACE nova service.wait()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in wait
2012-09-06 11:24:25 TRACE nova _launcher.wait()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in wait
2012-09-06 11:24:25 TRACE nova service.wait()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
2012-09-06 11:24:25 TRACE nova return self._exit_event.wait()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2012-09-06 11:24:25 TRACE nova return hubs.get_hub().switch()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
2012-09-06 11:24:25 TRACE nova return self.greenlet.switch()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
2012-09-06 11:24:25 TRACE nova result = function(*args, **kwargs)
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server
2012-09-06 11:24:25 TRACE nova server.start()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in start
2012-09-06 11:24:25 TRACE nova self.manager.init_host()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1695, in init_host
2012-09-06 11:24:25 TRACE nova self.l3driver.initialize()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/l3.py", line 84, in initialize
2012-09-06 11:24:25 TRACE nova linux_net.init_host()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 442, in init_host
2012-09-06 11:24:25 TRACE nova add_snat_rule(ip_range)
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 432, in add_snat_rule
2012-09-06 11:24:25 TRACE nova iptables_manager.apply()
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 943, in inner
2012-09-06 11:24:25 TRACE nova retval = f(*args, **kwargs)
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 334, in apply
2012-09-06 11:24:25 TRACE nova attempts=5)
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 813, in _execute
2012-09-06 11:24:25 TRACE nova return utils.execute(*cmd, **kwargs)
2012-09-06 11:24:25 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 242, in execute
2012-09-06 11:24:25 TRACE nova cmd=' '.join(cmd))
2012-09-06 11:24:25 TRACE nova ProcessExecutionError: Unexpected error while running command.
2012-09-06 11:24:25 TRACE nova Command: sudo nova-rootwrap iptables-restore
2012-09-06 11:24:25 TRACE nova Exit code: 2
2012-09-06 11:24:25 TRACE nova Stdout: ''
2012-09-06 11:24:25 TRACE nova Stderr: "Bad argument `SNAT'\nError occurred at line: 23\nTry `iptables-restore -h' or 'iptables-restore --help' for more information.\n"
2012-09-06 11:24:25 TRACE nova
这意味着什么 ?
我应该怎么做才能解决这个问题?
Tks