简体   繁体   English

Openstack Nova-network无法启动

[英]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. 我尝试在ubuntu 12.04上安装openstack essex,在完成所有进程后,我的nova-network运行不正常。

When i check error message on /var/log/nova-network.log i got error message shown below: 当我检查/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 

What does that mean ? 这意味着什么 ?

What should I do to solve this problem ? 我该怎么做才能解决这个问题?

Tks TKS

It seems like a nasty bug, for now the next actions will resolve the problem: 这似乎是一个讨厌的bug,现在下一步行动将解决问题:

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

Add: 加:

fixed_range = 10.11.0.0/24 #####(whatever your network is, don't add comments) fixed_range = 10.11.0.0/24 #####(无论你的网络是什么,都不要添加评论)

service openstack-nova-network restart Stopping openstack-nova-network: [FAILED] Starting openstack-nova-network: [ OK ] service openstack-nova-network restart停止openstack-nova-network:[FAILED]启动openstack-nova-network:[确定]

2014-04-03 19:58:24 801893 AUDIT nova.service [-] Starting network node (version 2012.2.4-1.el6) 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 [-] Connected to AMQP server on controller:5672 2014-04-03 19:58:48 801893 INFO nova.openstack.common.rpc.impl_qpid [ - ]连接到控制器上的AMQP服务器:5672

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 OpenStack Nova API - openstack nova api 使用OpenStack Nova API以编程方式设置实例名称 - Programmatically setting instance name with the OpenStack Nova API OpenStack Python CLI - “nova”无法识别云配置 - OpenStack Python CLI - Clouds Config Not Recognized By "nova" OpenStack上的多种网络类型 - Multiple network type on openstack 我可以在不安装Nova的情况下安装OpenStack的Swift(OpenStack存储基础架构)吗? - Can I install Swift (OpenStack Storage Infrastructure) of OpenStack without installing Nova? OpenStack + OpenContrail:在将OpenContrail与现有Openstack集成之前,是否需要确保OpenStack网络状态干净? - OpenStack+OpenContrail: Do I need to ensure OpenStack network state is clean before integrate OpenContrail with an existing Openstack? 如何从外部网络访问本地计算机上的Openstack? - How to Access Openstack on my local machine from External network? 如何从VM访问外网的openstack vm实例 - How to access the openstack vm instance from external network from VM Openstack Neutron:找不到Openstack neutron可能的错误响应消息的列表 - Openstack Neutron: Cannot find list of possible error response messages for Openstack neutron 有什么方法可以将 PrivateIP 从主机的机器网络子网分配给 Openstack 实例 - Is there any way I can allocate PrivateIP from my Host's Machine network subnet to an Openstack instance
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM