Ask Your Question
1

Docker and tenant GRE network

asked 2015-08-11 10:27:36 -0600

dm07c3 gravatar image

updated 2015-08-12 03:48:45 -0600

Hello everybody,

At the moment I try out Docker for Openstack Kilo. But now I've problems with Docker and neutron: When I want to deploy a docker container in a tenant network it will fail with:

Failed to perform requested operation on instance "XYZ", the instance has an error status: Please try again later [Error: No valid host was found. There are not enough hosts available.]

Looking in the nova-compute.log shows

2015-08-11 12:30:19.303 1980 WARNING novadocker.virt.docker.driver [-] [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099] Cannot setup network: Unexpected vif_type=binding_failed
2015-08-11 12:30:19.303 1980 TRACE novadocker.virt.docker.driver [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099] Traceback (most recent call last):
2015-08-11 12:30:19.303 1980 TRACE novadocker.virt.docker.driver [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 405, in _start_container
2015-08-11 12:30:19.303 1980 TRACE novadocker.virt.docker.driver [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]     self.plug_vifs(instance, network_info)
2015-08-11 12:30:19.303 1980 TRACE novadocker.virt.docker.driver [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 197, in plug_vifs
2015-08-11 12:30:19.303 1980 TRACE novadocker.virt.docker.driver [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]     self.vif_driver.plug(instance, vif)
2015-08-11 12:30:19.303 1980 TRACE novadocker.virt.docker.driver [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/vifs.py", line 70, in plug
2015-08-11 12:30:19.303 1980 TRACE novadocker.virt.docker.driver [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]     _("Unexpected vif_type=%s") % vif_type)
2015-08-11 12:30:19.303 1980 TRACE novadocker.virt.docker.driver [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099] NovaException: Unexpected vif_type=binding_failed
2015-08-11 12:30:19.303 1980 TRACE novadocker.virt.docker.driver [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]
2015-08-11 12:30:19.392 1980 ERROR nova.compute.manager [-] [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099] Instance failed to spawn
2015-08-11 12:30:19.392 1980 TRACE nova.compute.manager [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099] Traceback (most recent call last):
2015-08-11 12:30:19.392 1980 TRACE nova.compute.manager [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2442, in _build_resources
2015-08-11 12:30:19.392 1980 TRACE nova.compute.manager [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]     yield resources
2015-08-11 12:30:19.392 1980 TRACE nova.compute.manager [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2314, in _build_and_run_instance
2015-08-11 12:30:19.392 1980 TRACE nova.compute.manager [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]     block_device_info=block_device_info)
2015-08-11 12:30:19.392 1980 TRACE nova.compute.manager [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 448, in spawn
2015-08-11 12:30:19.392 1980 TRACE nova.compute.manager [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]     self._start_container(container_id, instance, network_info)
2015-08-11 12:30:19.392 1980 TRACE nova.compute.manager [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 414, in _start_container
2015-08-11 12:30:19.392 1980 TRACE nova.compute.manager [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099]     instance_id=instance['name'])
2015-08-11 12:30:19.392 1980 TRACE nova.compute.manager [instance: 1385483c-6d4c-4cd5-b1d3-0e1b17b87099] InstanceDeployFailure: Cannot setup network: Unexpected vif_type=binding_failed ...
(more)
edit retag flag offensive close merge delete

Comments

1

Which OS are you running ? If it's Ubuntu I don't have any more questions.
If you running RH clone on Compute node ?

1. How you installed Nova-Docker Driver ?
2. How upload to glance Docker Image ?
dbaxps gravatar imagedbaxps ( 2015-08-11 11:31:08 -0600 )edit

hi dbaxps, does it mean that ubuntu will not support docker? please advise.

senyapsudah gravatar imagesenyapsudah ( 2015-08-16 19:44:42 -0600 )edit

No. It will. I just avoid any software development Ubuntu related, so I cannot support it.

dbaxps gravatar imagedbaxps ( 2015-08-17 01:20:25 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-08-13 02:03:12 -0600

SGPJ gravatar image

Earlier, I came across this issue. After debugging I found the issue was related to insufficient resources and I increased the RAM, CPU & volume to solve it.

edit flag offensive delete link more
0

answered 2015-08-18 22:51:36 -0600

boidacarapreta gravatar image

As I remember, in Kilo you need to add:

[ovs]
...
bridge_mappings = external:br-ex

In my environment, br-ex is my external bridge. And:

[agent]
...
tunnel_types = gre

in ml2_conf.ini to work GRE network type.

Here's my file: https://github.com/boidacarapreta/openstack-ifsc/blob/master/puppet/modules/openstack-neutron/files/ml2_conf.ini-openstack0#L27 (https://github.com/boidacarapreta/ope...), which is based on http://docs.openstack.org/kilo/install-guide/install/apt/content/neutron-network-node.html (OpenStack Installation Guide).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-11 10:27:36 -0600

Seen: 257 times

Last updated: Aug 18 '15