Ask Your Question
3

Docker Openstack: Nova instances don't boot

asked 2014-08-21 10:22:52 -0500

tiaguin11111111111 gravatar image

I have installed Docker driver with Openstack. Pulled an image, for example Centos, and then added to glace. When I do glance image-list it is shown ok. Then I create an instance in Nova, via nova boot or UI, Instance is build successfuly, but when I go through UI in Open console, it shows errors saying that No bootable device and not find Bootable disk. The status if the Nova instance is Active/Running, but inside it cannot boot. If I tru the pulled image from docker command doing for example: docker run centos /bin/bash, It works ok.

What could be wrong? What am I missing?

Thanks for the help.

edit retag flag offensive close merge delete

Comments

Which platform? how did you install openstack and docker? what are the logs saying? Edit the question, add more details.

smaffulli gravatar imagesmaffulli ( 2014-08-22 16:26:22 -0500 )edit

Is your Docker image base image? I suppose you can try to boot a vm from the image via kvm and libvirt manually to verify that image.

IBM_ZongQiang ZHANG gravatar imageIBM_ZongQiang ZHANG ( 2014-08-24 21:44:23 -0500 )edit

@tiaguin11111111111:How did you solve this issue? Even I get the same error. I have installed Openstack using Packstack on Centos and dockers using the nova-driver.I have tried with other base VM images like hipache and busybox too(which I think are supported on Openstack).Any help is appreciated

ship gravatar imageship ( 2014-09-25 17:04:44 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
2

answered 2014-10-08 16:04:37 -0500

cloudssky gravatar image

updated 2014-10-11 17:38:32 -0500

I've the same problem using the latest RDO Juno Milestone 3 release and I guess the problem has to do with:

compute_driver=novadocker.virt.docker.DockerDriver

setting in nova.conf, if I set it, then I can't restart per "openstack-service restart" Job for openstack-nova-compute.service failed.

$ systemctl status openstack-nova-compute.service

gives me:

openstack-nova-compute.service - OpenStack Nova Compute Server Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled) Active: failed (Result: start-limit) since Wed 2014-10-08 16:59:06 EDT; 10s ago Process: 18327 ExecStart=/usr/bin/nova-compute (code=exited, status=1/FAILURE) Main PID: 18327 (code=exited, status=1/FAILURE)

Oct 08 16:59:06 csky05 systemd[1]: Failed to start OpenStack Nova Compute Server. Oct 08 16:59:06 csky05 systemd[1]: Unit openstack-nova-compute.service entered failed state. Oct 08 16:59:06 csky05 systemd[1]: openstack-nova-compute.service holdoff time over, scheduling restart. Oct 08 16:59:06 csky05 systemd[1]: Stopping OpenStack Nova Compute Server... Oct 08 16:59:06 csky05 systemd[1]: Starting OpenStack Nova Compute Server... Oct 08 16:59:06 csky05 systemd[1]: openstack-nova-compute.service start request repeated too quickly, refusing to start. Oct 08 16:59:06 csky05 systemd[1]: Failed to start OpenStack Nova Compute Server. Oct 08 16:59:06 csky05 systemd[1]: Unit openstack-nova-compute.service entered failed state.

And in nova-compute.log I see:

2014-10-08 16:59:06.160 18327 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative 2014-10-08 16:59:06.172 18327 INFO nova.virt.driver [-] Loading compute driver 'novadocker.virt.docker.DockerDriver' 2014-10-08 16:59:06.172 18327 ERROR nova.virt.driver [-] Unable to load the virtualization driver

...

2014-10-08 16:59:06.172 18327 TRACE nova.virt.driver ImportError: No module named pbr.version

Update 2014-10-11

This issue was simply solved by running:

$ pip install pbr

and running openstack-service restart on the latest RDO Juno M3 release (as per today 2014-10-11). (I also installed the latest docker 1.2.0 on CentOS 7).

But the whole thing is far from stable, at least at this time.

edit flag offensive delete link more

Comments

Perhaps Docker version 1.2.0 needed? as discussed here?: https://ask.openstack.org/en/question...

cloudssky gravatar imagecloudssky ( 2014-10-08 16:34:29 -0500 )edit

Did you upgrade docker to 1.2 version to solve the problem? Thanks in advance!

Antonio G. gravatar imageAntonio G. ( 2014-10-09 02:20:57 -0500 )edit

Yes, upgraded docker just now to version 1.2.0 following this guide: http://ask.projectatomic.io/en/questi... but it didn't help.

cloudssky gravatar imagecloudssky ( 2014-10-09 03:42:52 -0500 )edit
0

answered 2015-11-21 08:26:04 -0500

Basivireddy gravatar image

updated 2015-11-21 08:29:19 -0500

I also had a similar error and i fix it like this:

While integrating docker with openstack,If you got pbr problem, just git clone the pbr from git hub.

git clone https://github.com/openstack-dev/pbr git checkout tags/version (version depends error you got /var/log/nova/nova-compute.log)

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

2 followers

Stats

Asked: 2014-08-21 10:22:52 -0500

Seen: 1,910 times

Last updated: Nov 21 '15