Ask Your Question
0

Getting error Nova Docker container on newton

asked 2017-01-12 15:23:29 -0500

antinode gravatar image

updated 2017-01-13 15:24:51 -0500

I have configured nova docker in openstack newton. When I launch container instance using dashboard I get the following

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

I modified nova-compute.conf to point compute driver to docker and commented out qemu stuff. I added the driver and nova docker using multiple installation guide sources. I am not sure what the issue is here.

I am also able to run the hello-world docker container example after installing docker. So it's installed properly just not being picked up bu openstack.

Docker is also not showing up in dashboard hypervisor. Only qemu is showing which is down.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-01-14 09:41:42 -0500

mriedem gravatar image

The nova-docker driver is not really maintained upstream anymore, see:

http://lists.openstack.org/pipermail/...

If you're using Newton or newer, the issue could be that the nova-docker virt driver simply can't get loaded by the nova-compute service due to this change: https://review.openstack.org/#/c/309504/

As you can see here, the nova docker virt driver is not in the 'nova.virt' namespace so it won't get loaded by default:

https://github.com/openstack/nova-doc...

Out of tree virt drivers have had to deal with this, e.g. powervm did it like this:

https://review.openstack.org/#/c/311724/

The nova-docker driver would have to do something similar.

edit flag offensive delete link more
0

answered 2017-01-13 05:06:33 -0500

hkominos gravatar image

updated 2017-01-13 05:19:26 -0500

I had a similar issue some time ago. In Fuel-Kilo nova is managed my 2 files instead of one. One is nova.conf and the other is called nova-compute.conf. They are in the same place and they must both be changed. Type ps -ax |grep nova on the compute host in you will see in the config-files option where is the second file. Could be the issue if you have Fuel

edit flag offensive delete link more

Comments

@hkominos I haven't got fuel. But I have put compute_driver setting in both nova.conf and nova-compute.conf. So I am not sure this is a configuration error. Openstack doesn't seem to pickup docker on compute node.

antinode gravatar imageantinode ( 2017-01-13 13:06:50 -0500 )edit

ok then. so before even trying to boot a docker container the system MUST see docker as the underlying "hypervisor". 99%you have forgotten something. Of the top of my head: 1)Did you use correct nova--docker branch and not master? 2)did you restart nova agent after installation of nova-docker?

hkominos gravatar imagehkominos ( 2017-01-14 04:15:24 -0500 )edit

3)did you restart the service from the hypervisor list? 4)what happens now in the node if you run openstack commands? (neutron net-list for example? do they work?

hkominos gravatar imagehkominos ( 2017-01-14 04:16:35 -0500 )edit

@hkominos I used liberty with my newton setup. It was either that or mitaka. I read on some other post liberty was working. Am I wrong in making this assumption? If yes, what could I use with my newton setup?

antinode gravatar imageantinode ( 2017-01-14 09:12:07 -0500 )edit

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: 2017-01-12 15:23:29 -0500

Seen: 298 times

Last updated: Jan 14 '17