我尝试在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
那是什么意思 ?
我该怎么做才能解决这个问题?
ks
最佳答案
看来这是一个令人讨厌的错误,目前,接下来的操作将解决该问题:
[root @ server nova]#vim /etc/nova/nova.conf
加:
fixed_range = 10.11.0.0/24 #####(无论您的网络是什么,都不要添加评论)
服务openstack-nova-network重新启动
停止openstack-nova-network:[失败]
启动openstack-nova-network:[确定]
2014-04-03 19:58:24 801893 AUDIT nova.service [-]启动网络节点(版本2012.2.4-1.el6)
2014-04-03 19:58:48 801893信息nova.openstack.common.rpc.impl_qpid [-]已连接到控制器上的AMQP服务器:5672
希望这可以帮助。
关于cloud - Openstack Nova网络无法启动,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12293008/