Ask Your Question
0

installing docker on openstack with ubuntu

asked 2015-02-11 04:51:06 -0500

Neo gravatar image

Hi, I am running openstack with master branch on ubuntu 14.04 And I am trying to install docker with openstack and i am following these links ,

https://wiki.openstack.org/wiki/Docker

http://blog.scottlowe.org/2014/08/22/a-heat-template-for-docker-containers/ (http://blog.scottlowe.org/2014/08/22/...)

As per the wiki link if i do the changes in /etc/nova/nova.conf and then do stack.sh then the changes will be overwritten.

Also if i add VIRT_DRIVER=docker in localrc then n-cpu process does not come up.Can any one guide me to set this up on ubuntu

Following is my localrc file

FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=123456
MYSQL_PASSWORD=123456
RABBIT_PASSWORD=123456
SERVICE_PASSWORD=123456
CEILOMETER_BACKEND=mongo
#ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch
enable_service ceilometer-acompute ceilometer-acentral ceilometer-collector ceilometer-api
enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
#enable_service heat h-api h-api-cfn h-api-cw h-eng
CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler
SERVICE_TOKEN=123456
OFFLINE=True
#VIRT_DRIVER=docker
edit retag flag offensive close merge delete

Comments

I saw https://wiki.openstack.org/wiki/Docker . But I never work with Ubuntu. I can provide two working and tested procedures on RH's F21 && CentOS 7 systems
http://www.linux.com/community/blogs/...

dbaxps gravatar imagedbaxps ( 2015-02-11 06:03:24 -0500 )edit

"Installing nova-docker in N easy steps on F21 by Larsks"
http://blog.oddbit.com/2015/02/06/ins...

dbaxps gravatar imagedbaxps ( 2015-02-11 06:04:55 -0500 )edit

Set up Two Node RDO Juno ML2&OVS&VXLAN Cluster runnig Docker Hypervisor on Controller and KVM on Compute (CentOS 7, Fedora 21)
http://bderzhavets.blogspot.com/2015/...

dbaxps gravatar imagedbaxps ( 2015-02-11 06:07:14 -0500 )edit

4 answers

Sort by ยป oldest newest most voted
1

answered 2015-02-11 16:30:53 -0500

larsks gravatar image

Neo,

I've written up a complete set of instructions for getting nova-docker installed with devstack on Ubuntu 14.04:

It turns out that among other things the current nova-docker master branch does not work with the current Nova master branch, so a patch was necessary to get things going. If that document doesn't get you going, let me know.

Good luck!

edit flag offensive delete link more

Comments

Tried all the steps in the link but when i run stack.sh i get an error echo 'Error: Service n-cpu is not running' and when i look into n-cpu log it says ERROR nova.virt.driver [-] Compute driver option required, but not specified. Any idea why ?

Neo gravatar imageNeo ( 2015-02-12 03:34:34 -0500 )edit

Well, that suggests that the compute_driver option is not set in /etc/nova/nova.conf, although that would be surprising if you used the local.con from the article, which explicitly sets that in the [[post-config|$NOVA_CONF] block.

larsks gravatar imagelarsks ( 2015-02-12 07:07:57 -0500 )edit

I would start by looking in /etc/nova/nova.conf and see if the compute_driver is set. If not, please verify that you are using the same local.conf as I used, since that worked perfectly on my Ubuntu 14.04 system.

larsks gravatar imagelarsks ( 2015-02-12 07:09:03 -0500 )edit

I started fresh and everything worked as per the doc.Thanks..

Neo gravatar imageNeo ( 2015-02-13 02:19:28 -0500 )edit

Hi larsks, After docker install, I tried "sudo docker version", but get this error: FATA[0000] Get http:///var/run/docker.sock/v1.17/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? Pls. help

adisarun gravatar imageadisarun ( 2015-03-24 15:19:27 -0500 )edit
0

answered 2015-04-17 00:06:32 -0500

In Kilo, image and compute chef cookbooks are integrated with openstack docker support.

What you have to do is

a) Download latest openstack chef repo

b) https://github.com/stackforge/cookbook-openstack-compute/blob/master/attributes/default.rb (https://github.com/stackforge/cookboo...) Override ['openstack']['compute']['docker']['enable'] = false to true for all docker computes

c) curl -sSL https://get.docker.com/ubuntu/ | sudo sh

Execute above step in all docker computes

and create cloud as explained in openstack chef repo (https://github.com/stackforge/openstack-chef-repo (https://github.com/stackforge/opensta...))

Telemetry changes are on the way and we can expect those in few weeks

edit flag offensive delete link more
0

answered 2015-02-11 07:04:11 -0500

dbaxps gravatar image

updated 2015-02-11 07:05:10 -0500

Per Wiki you did :-

 pip install -e git+https://github.com/stackforge/nova-docker#egg=novadocker
 cd src/novadocker/
 python setup.py install

However Nova-docker driver install is pretty much different depending on release Juno or IceHouse
Details here https://github.com/stackforge/nova-do...

# yum install python-pbr python-pip
# yum install docker-io -y
# git clone https://github.com/stackforge/nova-docker
# cd nova-docker
# git checkout stable/juno
# python setup.py install
# systemctl start docker
# systemctl enable docker

Next : version python-six might be changed after install, either by upgrade or downgrade ( with rawhide version suggested by Larsks ) I had set six.__version__ to 1.7.3 after nova-docker driver install at least on RDO Juno

edit flag offensive delete link more
0

answered 2015-02-11 23:50:23 -0500

1-Cloud gravatar image

Installing nova-docker with devstack

Follow this link, it should be helps u.

http://blog.oddbit.com/2015/02/11/installing-novadocker-with-devstack/ (http://blog.oddbit.com/2015/02/11/ins...)

edit flag offensive delete link more

Comments

Tried the first link but when i run stack.sh i get an error echo 'Error: Service n-cpu is not running' and when i look into n-cpu log it says ERROR nova.virt.driver [-] Compute driver option required, but not specified. Any idea why ?

Neo gravatar imageNeo ( 2015-02-12 03:32:16 -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-02-11 04:41:38 -0500

Seen: 2,488 times

Last updated: Feb 11 '15