Ask Your Question
2

should nova-docker work on Juno?

asked 2014-11-05 12:51:21 -0500

mc gravatar image

I just installed nova-docker on a brand-new Juno release on Ubuntu 14.04. I'm seeing several errors, like "image not found" and some message timeouts on the compute node when I attempt to boot a container.

The compute node is set up according to the instructions on the wiki. Other hypervisors work on other nodes. So I was wondering if maybe nova-docker is expected to work on Juno yet. Can someone fill me in?

edit retag flag offensive close merge delete

Comments

Could you post what the errors you are facing are exactly? What is written on the log? How did you put the docker images on glance?

mark91 gravatar imagemark91 ( 2014-11-06 01:57:41 -0500 )edit

The "image not found" problem was due to an uncaught exception (calling self.docker.inspect_image) on https://github.com/stackforge/nova-docker/blob/master/novadocker/virt/docker/driver.py#L388 (line 388 of driver.py).

Catch the exception and it uses glance to get the image.

I will file a ticket.

mc gravatar imagemc ( 2014-11-06 16:13:36 -0500 )edit

I also met the image not found issue, my glance and nova-compute are on different nodes. If I manually pull the dock image like "docker pull ubuntu", it will still fai, saying "AttributeError: 'module' object has no attribute 'InstanceInfo'" Any clue for this?

Lance gravatar imageLance ( 2014-12-10 23:45:32 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
2

answered 2014-11-30 17:34:33 -0500

cloudssky gravatar image

Yes it works for me on RDO Juno release on CentOS 7 running in a VM on top of Havana, I'd to checkout the pre-i18n branch following this thread:

https://ask.openstack.org/en/question...

And installed the latest docker 1.3.2 version from this guide:

https://media-glass.es/2014/11/02/lat...

See also:

http://technodrone.blogspot.com/2014/...

 git clone https://github.com/stackforge/nova-docker.git
 cd nova-docker/
 git checkout -b pre-i18n 9045ca43b645e72751099491bf5f4f9e4bddbb91
 python setup.py install
 chmod 666 /var/run/docker.sock
 systemctl restart openstack-nova-compute
edit flag offensive delete link more
0

answered 2014-12-28 19:27:24 -0500

The image that you export to glance needs to have exact same name as the docker image.

for example:

docker pull samalba/hipache

docker save samalba/hipache | glance image-create --is-public=True --container-format=docker --disk-format=raw --name samalba/hipache

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: 2014-11-05 12:51:21 -0500

Seen: 545 times

Last updated: Nov 30 '14