Ask Your Question
2

Which version of nova-docker should be used with OpenStack Juno

asked 2014-12-03 12:46:35 -0500

fikovnik gravatar image

I was wondering what is the right nova-docker version (commit) to use for OpenStack Juno? If I use master I run into some compatibility problems (e.g. 'module' object has no attribute 'InstanceInfo'). I had a success with 9045ca43b645e72751099491bf5f4f9e4bddbb91, but that seems to be quite old.

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
2

answered 2014-12-09 11:54:37 -0500

mephi42 gravatar image

I've been successful with 3fd99f8516f890b45b928b0bce4439bb003c0bb1^:

# cd src/novadocker
# git log -SInstanceInfo origin/master
commit 3fd99f8516f890b45b928b0bce4439bb003c0bb1
Author: Davanum Srinivas <dims@linux.vnet.ibm.com>
Date:   Thu Nov 20 12:34:45 2014 -0500

    Follow changes in Nova trunk

    Trunk changed the structure of tests directory by introducing
    a new unit package:
    Id42ba373c1bda6a312b673ab2b489ca56da8c628

    Instance Info is now an object as well, not a dicitionary:
    Ia4e4639ec1a593380b48f8f6e4962dd22ab8fc0b

    instance_type parameter has been added to spawn:
    Ieebfcbc2478ba8d7036c1af30efbbf640aa7df73

    Change-Id: I06a2d02e65cd3eb0813caf3972013500d94d493c
# git checkout 3fd99f8516f890b45b928b0bce4439bb003c0bb1^
# python setup.py install
edit flag offensive delete link more
2

answered 2014-12-18 03:20:45 -0500

fikovnik gravatar image

I made a fork on github and create a juno branch using the lastest commit + finixing the problem of loading an image from glance https://github.com/fikovnik/nova-dock...

edit flag offensive delete link more

Comments

Would it be OK ?

git checkout -b juno  origin/juno
dbaxps gravatar imagedbaxps ( 2014-12-18 03:29:57 -0500 )edit

I did

git clone https://github.com/stackforge/nova-docker.git
cd nova-docker
[boris@juno1 nova-docker]$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
dbaxps gravatar imagedbaxps ( 2014-12-18 04:03:05 -0500 )edit

I don't see new branch.

dbaxps gravatar imagedbaxps ( 2014-12-18 04:04:10 -0500 )edit

You need to use my fork https://github.com/fikovnik/nova-docker . It has the juno branch.

Here is the commit: https://github.com/fikovnik/nova-dock... that fixes the glance problem.

fikovnik gravatar imagefikovnik ( 2014-12-18 04:47:41 -0500 )edit

Yes, I got it already.

dbaxps gravatar imagedbaxps ( 2014-12-18 04:53:40 -0500 )edit
1

answered 2014-12-03 13:08:30 -0500

dbaxps gravatar image

updated 2015-01-20 03:57:58 -0500

UPDATE as of 01/20/2015
As appears per http://blog.oddbit.com/2015/01/17/run...
Official stable Juno branch was forked from https://github.com/stackforge/nova-do... on 11/12/2014

$ git clone https://github.com/stackforge/nova-docker
$ cd nova-docker
$ git checkout stable/juno
$ sudo python setup.py install

Larsks is also suggesting creating two new services on Juno (AIO) Node :-

nova-docker.service
docker-openvswitch-agent.service

which allow to run nova-libvirt and nova-docker on the same host. Details in link posted above
Per Larsks :-

Fortunately, Nova's definition of what constitutes a "host" is somewhat flexible. Nova supports a host configuration key in nova.conf that will cause Nova to identify the host on which it is running using your explicitly configured value, rather than your system hostname. We can take advantage of this to get a second nova-compute instance running on the same system.

END OF UPDATE

Now I see

$ git clone https://github.com/fikovnik/nova-docker.git
$ cd nova-docker
$ $ git branch -v -a
* master                1ed1820 A note no firewall drivers.
  remotes/origin/HEAD   -> origin/master
  remotes/origin/juno   1a08ea5 Fix the problem when an image is not located in the local docker image registry.
  remotes/origin/master 1ed1820 A note no firewall drivers.
$ git checkout -b juno origin/juno
 Branch juno set up to track remote branch juno from origin.
Switched to a new branch 'juno'

===================================================================================
Testing juno branch in https://github.com/fikovnik/nova-dock... :
http://bderzhavets.blogspot.com/2014/...

edit flag offensive delete link more

Comments

I'm not asking about docker version but about nova-docker.

fikovnik gravatar imagefikovnik ( 2014-12-03 14:07:42 -0500 )edit

Link above is referencing same commit

 git clone https://github.com/stackforge/nova-docker.git
 cd nova-docker/
 git checkout -b pre-i18n 9045ca43b645e72751099491bf5f4f9e4bddbb91
dbaxps gravatar imagedbaxps ( 2014-12-04 00:42:09 -0500 )edit

Thanks! The i18n problem is related to OS Icehouse. On OS Juno the related i18n oslo library is present and thus a newer version could be used.

fikovnik gravatar imagefikovnik ( 2014-12-04 02:48:40 -0500 )edit

You are correct , I've checked git log for commit 9045ca43b645e72751099491bf5f4f9e4bddbb91
Next commit e43f6b86b3b0c2bc5b6469050370ee3832688b99
does:- Merge "Use oslo.i18n"

dbaxps gravatar imagedbaxps ( 2014-12-16 13:48:47 -0500 )edit

I've tested all tree commit 07a57f78aa4b01c2acfb84b0e9e723dabfd650cb as of 12/09/2014
System been built on Juno doesn't start containers, at least for me.

dbaxps gravatar imagedbaxps ( 2014-12-16 13:51:23 -0500 )edit
0

answered 2014-12-10 21:22:12 -0500

Lance gravatar image

hi I'm facing a similar issue. When trying to boot up a docker instance, it failed to find the image. Since my glance is on one node and nova-compute is on another, so shall I do a "dock pull cirros" in the compute node manually?

edit flag offensive delete link more

Comments

There is a bug in nova-docker that prevents to load the image from glance. The patch is already in gerrit, but the process is a bit lengthy. You can pick up a version from my git https://github.com/fikovnik/nova-docker

the master branch is for latest nova, the juno branch is for OS juno.

fikovnik gravatar imagefikovnik ( 2014-12-18 04:45:36 -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: 2014-12-03 12:46:35 -0500

Seen: 723 times

Last updated: Jan 20 '15