分享

启动虚拟机时,报如下错误

zhangXing 发表于 2016-5-5 09:26:16 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 5 10378
启动虚拟机时,报如下错误

  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2461, in _build_resources
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]     yield resources
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2333, in _build_and_run_instance
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]     block_device_info=block_device_info)
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2382, in spawn
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]     write_to_disk=True)
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4183, in _get_guest_xml
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]     context)
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4054, in _get_guest_config
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]     flavor, virt_type)
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/vif.py", line 374, in get_config
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b]     _("Unexpected vif_type=%s") % vif_type)
2016-04-28 11:13:55.583 1892 TRACE nova.compute.manager [instance: 0d378398-b6c1-41fd-ac25-98c9ec3c498b] NovaException: Unexpected vif_type=binding_failed


在计算节点上,如下命令

ovs-vsctl list-br


值为空 没有br-int 和br-tun

已有(5)人评论

跳转到指定楼层
w123aw 发表于 2016-5-5 09:36:45
这里面存在两个问题,
1.Nova配置有问题
2.ovs有问题
楼主需细心检测,先确保服务都是正常的
回复

使用道具 举报

zhangXing 发表于 2016-5-5 10:23:36
我觉得是ovs的问题 卸载了重装后 也不好使
节点安装neutron组件时,OpenStack Neutron Open vSwitch Agent起不来,出现如下错误





neutron-openvswitch-agent.service - OpenStack Neutron Open vSwitch Agent
   Loaded: loaded (/usr[img]file:///C:\Users\ZHANG-PC\AppData\Local\Temp\)A[Y)I~](ZC9Z[3Y)IDK7LK.gif[/img]b/systemd/system/neutron-openvswitch-agent.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2016-04-29 18:47:37 CST; 3s ago
  Process: 14074 ExecStart=/usr/bin/neutron-openvswitch-agent --config-file /usrfile:///C:\Users\ZHANG-PC\AppData\Local\Temp\UG9`@AH2%L{}S0N6}3E~FO2.gif/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini --config-dir /etc/neutron/conf.d/neutron-openvswitch-agent --log-file [img]file:///C:\Users\ZHANG-PC\AppData\Local\Temp\[LC3U)F{0XCAB)LKNIT0K@G.gif[/img]ar/log/neutron/openvswitch-agent.log (code=exited, status=1/FAILURE)
Main PID: 14074 (code=exited, status=1/FAILURE)

Apr 29 18:47:37 compute2 neutron-openvswitch-agent[14074]: File "/usr[img]file:///C:\Users\ZHANG-PC\AppData\Local\Temp\)A[Y)I~](ZC9Z[3Y)IDK7LK.gif[/img]b/python2.7/site-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1731, in main
Apr 29 18:47:37 compute2 neutron-openvswitch-agent[14074]: common_config.init(sys.argv[1:])
Apr 29 18:47:37 compute2 neutron-openvswitch-agent[14074]: File "/usr[img]file:///C:\Users\ZHANG-PC\AppData\Local\Temp\)A[Y)I~](ZC9Z[3Y)IDK7LK.gif[/img]b/python2.7/site-packages/neutron/common/config.py", line 185, in init
Apr 29 18:47:37 compute2 neutron-openvswitch-agent[14074]: **kwargs)
Apr 29 18:47:37 compute2 neutron-openvswitch-agent[14074]: File "/usr[img]file:///C:\Users\ZHANG-PC\AppData\Local\Temp\)A[Y)I~](ZC9Z[3Y)IDK7LK.gif[/img]b/python2.7/site-packages/oslo_config/cfg.py", line 1860, in __call__
Apr 29 18:47:37 compute2 neutron-openvswitch-agent[14074]: self._namespace._files_permission_denied)
Apr 29 18:47:37 compute2 neutron-openvswitch-agent[14074]: oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some config files: /etc/neutron/neutron.conf
Apr 29 18:47:37 compute2 systemd[1]: neutron-openvswitch-agent.service: main process exited, code=exited, status=1/FAILURE
Apr 29 18:47:37 compute2 systemd[1]: Unit neutron-openvswitch-agent.service entered failed state.
Apr 29 18:47:37 compute2 systemd[1]: neutron-openvswitch-agent.service failed.

回复

使用道具 举报

langke93 发表于 2016-5-5 11:28:57
zhangXing 发表于 2016-5-5 10:23
我觉得是ovs的问题 卸载了重装后 也不好使
节点安装neutron组件时,OpenStack Neutron Open vSwitch Agen ...

ExecStart=/usr/bin/neutron-openvswitch-agent --config-file /usrfile:///C:\Users\ZHANG-PC\AppData\Local\Temp\UG9`
楼主则是啥
去看看日志
回复

使用道具 举报

zhangXing 发表于 2016-5-6 18:46:11
/usrfile:///C:\Users\ZHANG-PC\AppData\Local\Temp\UG9`这个是考入Windows时出错了 ,去掉这些看。


回复

使用道具 举报

andre 发表于 2016-5-20 10:28:05
Apr 29 18:47:37 compute2 neutron-openvswitch-agent[14074]: self._namespace._files_permission_denied)
Apr 29 18:47:37 compute2 neutron-openvswitch-agent[14074]: oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some config files: /etc/neutron/neutron.conf
Apr 29 18:47:37 compute2 systemd[1]: neutron-openvswitch-agent.service: main process exited, code=exited, status=1/FAILURE
===================
从日志看你的 /etc/neutron/neutron.conf 权限不对被拒绝了。
正常的权限是:
[root@compute01 ~]# ll /etc/neutron/neutron.conf
-rw-r----- 1 root neutron 36437 May 18 12:12 /etc/neutron/neutron.conf
[root@compute01 ~]#
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条