Ask Your Question
0

Nova spawning docker instance on kvm hypervisor not docker one

asked 2015-06-16 06:38:39 -0500

HoopsMcann gravatar image

updated 2015-06-16 08:20:57 -0500

HI There,

I have a small 4 node, a controller and 3 compute nodes, deployment. I want to add a 4th compute node that handles docker instances. I have followed the online instructions, installed the driver on the compute node, added the docker type to glance, checked that docker is working etc etc. The new compute node shows up in the hypervisors list as a docker system. When I try and spawn a docker instance however, the system just spawns it on a regular kvm compute node. It seems that nova on the controller doesn't seem to acknowledge that the image is a docker image, despite being imported with "container=docker".

Has anyone else had this problem?

Mark Guz

edit retag flag offensive close merge delete

Comments

Which OS are you running on Compute nodes ?

dbaxps gravatar imagedbaxps ( 2015-06-16 08:36:05 -0500 )edit

I'm running on RHEL7, installed from the RDO kilo repos

HoopsMcann gravatar imageHoopsMcann ( 2015-06-16 08:53:22 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-06-17 02:05:43 -0500

alfredcs@yahoo.com gravatar image

Did you create a glance image with docker container format? Did you boot a VM with the docker image? Have you tried to designate the hypervisor for docker containers using --availability-zone ?

edit flag offensive delete link more

Comments

Your style of asking questions remind me a style of police officer.

dbaxps gravatar imagedbaxps ( 2015-06-17 04:26:24 -0500 )edit

I created the image with the docker format. I spawned an image using the same image but the controller spawned it on a kvm hypervisor. I tried using the aggregates but havent tried availability zones yet.

HoopsMcann gravatar imageHoopsMcann ( 2015-06-17 06:21:59 -0500 )edit

Nice.. Using availability zones it worked.. Is that how it should work? The controller needs to have the hyperivsors segregated into zones? Seems like it should be able to just check the container type and match it on the hypervisor type.

HoopsMcann gravatar imageHoopsMcann ( 2015-06-17 06:40:37 -0500 )edit
0

answered 2015-06-16 10:05:44 -0500

dbaxps gravatar image

updated 2015-06-16 14:50:38 -0500

You can manage on Compute Node following :- http://bderzhavets.blogspot.com/2015/...

Scrolling down from instruction  "At this point we start tuning versions of CentOS 7.1 packages required for successful build of Kilo Nova-Docker Driver"

All glance updates should be done on Controller/Network node. Approach has been tested on CentOS 7.1 landscape.

UPDATE 1. Nova-Docker is built by

# yum install docker-io -y
# git clone http://github.com/stackforge/nova-docker.git
# cd nova-docker
# git checkout -b kilo origin/stable/kilo
# python setup.py install <== Driver building command
# systemctl start docker
# systemctl enable docker
# chmod 666  /var/run/docker.sock
# mkdir /etc/nova/rootwrap.d
edit flag offensive delete link more

Comments

yes that is one of the howtos i followed. glance is updated on the controller with the additional container type and the compute node nova-compute is running the driver, yet still the controller ignore the docker hypervisor and spawns on regular old kvm hypervisors.

HoopsMcann gravatar imageHoopsMcann ( 2015-06-16 10:32:36 -0500 )edit

Check entry in nova.conf on Compute:-

compute_driver = novadocker.virt.docker.DockerDriver

to be in place and to be unique

dbaxps gravatar imagedbaxps ( 2015-06-16 11:27:51 -0500 )edit

yip exactly how it is configured

HoopsMcann gravatar imageHoopsMcann ( 2015-06-16 12:39:57 -0500 )edit

See UPDATE 1 in answer field.

dbaxps gravatar imagedbaxps ( 2015-06-16 14:51:18 -0500 )edit

Yes done that also. like i said in my original post, Everything is installed and running. That is what is perplexing me. I have followed the install instructions methodically, and yet the controller keeps spawning the docker image like it's a regular kvm image

HoopsMcann gravatar imageHoopsMcann ( 2015-06-16 16:33:11 -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: 2015-06-16 06:38:39 -0500

Seen: 1,371 times

Last updated: Jun 17 '15