launching instance fails "add bridge failed: No such process" if network is assigned

asked 2014-06-11 12:03:42 -0500

Yuanzhen Gu gravatar image

updated 2014-06-13 17:05:48 -0500

smaffulli gravatar image

I have controller, compute and networking, three nodes. there is no problem if I launch a new instance without assign it network, but if I configure the network and then start new vm, it be set as error status. here is the log in nova-scheduler.log (control node), any suggestion? thanks so much in advance!

2014-06-11 11:52:03.507 1133 INFO nova.scheduler.filter_scheduler [req-05153f6a-2e07-49fc-a092-b38e4816cba1 8bbb436b09e74dd5ac169c30e31a3ef3 c273bf6869d140e8be05a521a59d7ac1] Attempting to build 1 instance(s) uuids: [u'caa3ceb0-7ebb-4954-8065-d4e0479e835e']
2014-06-11 11:52:03.527 1133 INFO nova.scheduler.filter_scheduler [req-05153f6a-2e07-49fc-a092-b38e4816cba1 8bbb436b09e74dd5ac169c30e31a3ef3 c273bf6869d140e8be05a521a59d7ac1] Choosing host WeighedHost [host: asds63, weight: 2417.0] for instance caa3ceb0-7ebb-4954-8065-d4e0479e835e
2014-06-11 11:52:09.616 1133 INFO nova.scheduler.filter_scheduler [req-05153f6a-2e07-49fc-a092-b38e4816cba1 8bbb436b09e74dd5ac169c30e31a3ef3 c273bf6869d140e8be05a521a59d7ac1] Attempting to build 1 instance(s) uuids: [u'caa3ceb0-7ebb-4954-8065-d4e0479e835e']
2014-06-11 11:52:09.617 1133 ERROR nova.scheduler.filter_scheduler [req-05153f6a-2e07-49fc-a092-b38e4816cba1 8bbb436b09e74dd5ac169c30e31a3ef3 c273bf6869d140e8be05a521a59d7ac1] [instance: caa3ceb0-7ebb-4954-8065-d4e0479e835e] Error from last host: asds63 : [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1043, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1426, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1423, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2091, in spawn\n    block_device_info, context=context)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3246, in _create_domain_and_network\n    self.plug_vifs(instance, network_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 748, in plug_vifs\n    self.vif_driver.plug(instance, vif)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 805, in plug\n    return self.plug_ovs_hybrid(instance, vif)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 426, in plug_ovs_hybrid\n    utils.execute(\'brctl\', \'addbr\', br_name, run_as_root=True)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 177, in execute\n    return processutils.execute(*cmd, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/processutils.py", line 178, in execute\n    cmd=\' \'.join(cmd))\n', u"ProcessExecutionError: Unexpected error while running command.\nCommand: sudo nova-rootwrap /etc/nova/rootwrap.conf brctl addbr qbr1d1a5a28-10\nExit code: 1\nStdout: ''\nStderr: 'add bridge failed: No such process\\n'\n"]
2014-06-11 11:52:09.633 1133 WARNING nova.scheduler.driver [req-05153f6a-2e07-49fc-a092-b38e4816cba1 8bbb436b09e74dd5ac169c30e31a3ef3 c273bf6869d140e8be05a521a59d7ac1] [instance: caa3ceb0-7ebb-4954-8065-d4e0479e835e] Setting instance to ERROR state.
edit retag flag offensive close merge delete

Comments

What happens if you run the following command with nova ID on host asds63 ?

sudo nova-rootwrap /etc/nova/rootwrap.conf brctl addbr qbr1d1a5a28-10
Lawrence Lo gravatar imageLawrence Lo ( 2014-06-11 12:39:41 -0500 )edit

add bridge failed: No such process

Yuanzhen Gu gravatar imageYuanzhen Gu ( 2014-06-11 13:42:16 -0500 )edit

Is bridge module loaded ?

lsmod | grep bridge

bridge 83273 0 stp 2218 2 bridge,garp llc 5546 3 bridge,garp,stp

Lawrence Lo gravatar imageLawrence Lo ( 2014-06-11 15:22:42 -0500 )edit

I try to use command "lsmod | grep bridge", nothing appears. How to load bridge module?

dwyaneini gravatar imagedwyaneini ( 2014-07-02 02:23:24 -0500 )edit