3

我尝试在 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

4

1 回答 1

0

这似乎是一个令人讨厌的错误,现在接下来的操作将解决问题:

[root@server nova]# vim /etc/nova/nova.conf

添加:

fixed_range = 10.11.0.0/24 #####(无论你的网络是什么,不要添加评论)

service openstack-nova-network restart 停止 openstack-nova-network: [FAILED] 启动 openstack-nova-network: [ OK ]

2014-04-03 19:58:24 801893 AUDIT nova.service [-] 启动网络节点(版本 2012.2.4-1.el6)

2014-04-03 19:58:48 801893 INFO nova.openstack.common.rpc.impl_qpid [-] 连接到控制器上的 AMQP 服务器:5672

希望这可以帮助。

于 2014-04-03T18:02:53.413 回答