Docker virt driver networking fails with Neutron

Bug #1247295 reported by Sam Alba
56
This bug affects 10 people
Affects Status Importance Assigned to Milestone
nova-docker
Fix Released
High
Aaron Rosen

Bug Description

When Neutron is enabled, an error occurs on network allocation.

2013-11-01 15:41:07.684 ERROR nova.compute.manager [req-c1b6e8a2-e212-4457-97c1-a32bbef4ba33 demo demo] [instance: b3322776-7d43-47a8-8283-7be1415c1fda] Instance failed to spawn
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda] Traceback (most recent call last):
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda] File "/opt/stack/nova/nova/compute/manager.py", line 1436, in _spawn
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda] block_device_info)
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda] File "/opt/stack/nova/nova/virt/docker/driver.py", line 317, in spawn
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda] instance_id=instance['name'])
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda] InstanceDeployFailure: Cannot setup network: Unexpected error while running command.
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda] Command: sudo nova-rootwrap /etc/nova/rootwrap.conf brctl addif br-int pvnetl80836
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda] Exit code: 1
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda] Stdout: ''
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda] Stderr: "can't add pvnetl80836 to bridge br-int: Operation not supported\n"
2013-11-01 15:41:07.684 TRACE nova.compute.manager [instance: b3322776-7d43-47a8-8283-7be1415c1fda]

melanie witt (melwitt)
Changed in nova:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Boden R (boden) wrote :

is the scenario here also true when using neutron ml2 plugin + linuxbridge agent? I would've expected linuxbridge agent to work here.

Note -- even when using nova-net (not neutron) i've seen this error on the 1st vm boot... however subsequent boot calls succeed so I suspect the underlying code creates the bridge regardless of the error and the bridge can then be used in subsequent boots.

affects: nova → nova-docker
Aaron Rosen (arosen)
Changed in nova-docker:
assignee: nobody → Aaron Rosen (arosen)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova-docker (master)

Fix proposed to branch: master
Review: https://review.openstack.org/85913

Changed in nova-docker:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova-docker (master)

Reviewed: https://review.openstack.org/85913
Committed: https://git.openstack.org/cgit/stackforge/nova-docker/commit/?id=e314065e0dc9d8faa7d99cf4277b2cc5af4689be
Submitter: Jenkins
Branch: master

commit e314065e0dc9d8faa7d99cf4277b2cc5af4689be
Author: Aaron Rosen <email address hidden>
Date: Mon Apr 7 14:08:31 2014 -0700

    Add Open vSwitch vif driver

    This patch introduces support for attaching docker containers to
    Open vSwitch. In addition, it now allows docker to work in conjunction
    with neutron.

    Closes-bug: 1247295

    Change-Id: Id149da05a0bb6a16b98ba513a18e336ff409c250

Changed in nova-docker:
status: In Progress → Fix Committed
Changed in nova-docker:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.