简体   繁体   中英

Openstack Nova-network cannot start

I try to install openstack essex on ubuntu 12.04, after finishhing all process my nova-network is not running well.

When i check error message on /var/log/nova-network.log i got error message shown below:

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 

What does that mean ?

What should I do to solve this problem ?

Tks

It seems like a nasty bug, for now the next actions will resolve the problem:

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

Add:

fixed_range = 10.11.0.0/24 #####(whatever your network is, don't add comments)

service openstack-nova-network restart Stopping openstack-nova-network: [FAILED] Starting openstack-nova-network: [ OK ]

2014-04-03 19:58:24 801893 AUDIT nova.service [-] Starting network node (version 2012.2.4-1.el6)

2014-04-03 19:58:48 801893 INFO nova.openstack.common.rpc.impl_qpid [-] Connected to AMQP server on controller:5672

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM