can't launch docker instance because of vif_type

asked 2015-04-18 01:46:15 -0500

chbrian gravatar image

I try to install docker in OpenStack, following the installation guide of https://github.com/stackforge/nova-do....

However, I can't launch docker instance now, if I want to assign network interface to the instance. It works well if I don't assign interface to the instance at the provisioning time.

I use neutron(vlan) as network service. The nova-compute log:

WARNING novadocker.virt.docker.driver [-] [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] Cannot setup network: Unexpected vif_type=binding_failed 2015-04-18 11:50:43.248 4409 TRACE novadocker.virt.docker.driver [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] Traceback (most recent call last): 2015-04-18 11:50:43.248 4409 TRACE novadocker.virt.docker.driver [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] File "/usr/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 367, in _start_container 2015-04-18 11:50:43.248 4409 TRACE novadocker.virt.docker.driver [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] self.plug_vifs(instance, network_info) 2015-04-18 11:50:43.248 4409 TRACE novadocker.virt.docker.driver [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] File "/usr/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 187, in plug_vifs 2015-04-18 11:50:43.248 4409 TRACE novadocker.virt.docker.driver [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] self.vif_driver.plug(instance, vif) 2015-04-18 11:50:43.248 4409 TRACE novadocker.virt.docker.driver [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] File "/usr/lib/python2.7/dist-packages/novadocker/virt/docker/vifs.py", line 63, in plug 2015-04-18 11:50:43.248 4409 TRACE novadocker.virt.docker.driver [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] _("Unexpected vif_type=%s") % vif_type) 2015-04-18 11:50:43.248 4409 TRACE novadocker.virt.docker.driver [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] NovaException: Unexpected vif_type=binding_failed 2015-04-18 11:50:43.248 4409 TRACE novadocker.virt.docker.driver [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] 2015-04-18 11:50:43.304 4409 ERROR nova.compute.manager [-] [instance: 08a4ee3c-5381-4bdd-83d8-42d010ec566f] Instance failed to spawn

Thanks for your help.

edit retag flag offensive close merge delete