在openstack上安装多个实例时没有免费的nbd设备

时间:2016-07-08 21:34:57

标签: linux python-2.7 openstack openstack-nova openstack-neutron

我已经在openstack上运行Cirros OS实例,现在我正在尝试在OpenStack上安装ubuntu实例,但是当我在控制器上输入命令nova list时,它给了我错误消息,如附带的屏幕打印所示。

我检查了var / log / nova / nova-compute.log,它显示没有免费的nbd设备,最后因超时而失败。

任何帮助都会很棒。

请找到日志的屏幕打印。 screen1.png

2 个答案:

答案 0 :(得分:1)

这是真正的错误日志:运行命令时出现意外错误。 命令:sudo nova-rootwrap /etc/nova/rootwrap.conf ovs-vsctl

日志:

错误nova.network.linux_net [ - ]无法执行['ovs-vsctl',' - timeout = 120',' - ',' - if-exists','del-port',u 'qvo474102f0-19',' - ','add-port','br-int',u'qvo474102f0-19',' - ','set','Interface',u'qvo474102f0-19', u'external-id:iface-id = 474102f0-192c-42ae-a7d0-0de30021f07c','external-ids:iface-status = active',u'external-id:attached-mac = fa:16:3e:4e :bb:8e','external-id:vm-uuid = 19ef2bf4-7370-48c9-a3e4-111f6921188d']。例外:运行命令时出现意外错误。 命令:sudo nova-rootwrap /etc/nova/rootwrap.conf ovs-vsctl --timeout = 120 - --if-exists del-port qvo474102f0-19 - add-port br-int qvo474102f0-19 - set interface qvo474102f0-19 external-ids:iface-id = 474102f0-192c-42ae-a7d0-0de30021f07c external-ids:iface-status = active external-ids:attached-mac = fa:16:3e:4e:bb:8e external- IDS:VM-UUID = 19ef2bf4-7370-48c9-a3e4-111f6921188d 退出代码:1 Stdout:你'' Stderr:u'sudo:无法解析主机openstack-compute \ n2016-07-08T21:25:51Z | 00002 |重新连接| WARN | unix:/var/run/openvswitch/db.sock:连接尝试失败(协议错误) \ novs-vsctl:unix:/var/run/openvswitch/db.sock:数据库连接失败(协议错误)\ n'

答案 1 :(得分:0)

The issue was with ovs (openvswitch), just restart the openvswitch on the neutron and compute node of openstack and try again to run the instance, the issue get solved.

Check the ovs status after restarting the services

Check the neutron agent-list status on the controller node and everything should be up.