Issues while configuring Devstack(Ocata) to use Nova-docker

asked 2017-05-05 04:37:47 -0600

DeepakRK gravatar image

Installed Docker in the machine.

sudo apt-get install -y lxc-docker

source /etc/bash_completion.d/docker sudo bash -c "echo DOCKER_OPTS=\'-G ubuntu\' >> /etc/default/docker" sudo restart docker docker version docker run -i -t ubuntu /bin/bash ( Successfully launched)

Used the following local.conf for devstack

*[[local|localrc]] ADMIN_PASSWORD=ADMIN

HOST_IP=192.168.160.123

MYSQL_PASSWORD=SQL

MYSQL_HOST=$HOST_IP

RABBIT_PASSWORD=RABBIT

SERVICE_PASSWORD=$ADMIN_PASSWORD

RABBIT_HOST=$HOST_IP

SERVICE_HOST=$HOST_IP

MULTI_HOST=True

LOGDAYS=2

VIRT_DRIVER=novadocker.virt.docker.DockerDriver

Enabled Services

enable_service q-svc

enable_service q-agt

enable_service q-dhcp

enable_service q-l3

enable_service q-meta

enable_service neutron

enable_service placement-api

enable_service placement-client

enable_plugin heat https://git.openstack.org/openstack/heat stable/ocata

TACKERHORIZON_BRANCH=stable/ocata

enable_plugin tacker https://git.openstack.org/openstack/tacker (https://git.openstack.org/openstack/t...) stable/ocata

enable_plugin networking-sfc https://git.openstack.org/openstack/networking-sfc (https://git.openstack.org/openstack/n...) stable/ocata

enable_plugin nova-docker https://git.openstack.org/openstack/nova-docker (https://git.openstack.org/openstack/n...) stable/ocata

Network

NEUTRON_CREATE_INITIAL_NETWORKS=False

Nova

disable_service n-net

compute_driver=novadocker.virt.docker.DockerDriver

Neutron - OVS, VxLAN, and ML2

Q_PLUGIN=ml2

Q_AGENT=openvswitch

Q_USE_DEBUG_COMMAND=True

Q_L3_ENABLED=True

Q_L3_ROUTER_PER_TENANT=True

ENABLE_TENANT_TUNNELS=True

TENANT_TUNNEL_RANGE=-1:1000

Q_ML2_TENANT_NETWORK_TYPE=vxlan

Q_USE_PROVIDERNET_FOR_PUBLIC=True

OVS_BRIDGE_MAPPINGS=public:br-ex

OVS_ENABLE_TUNNELING=True

PUBLIC_BRIDGE=br-ex

Q_DVR_MODE=dvr_snat

Logging

SCREEN_LOGDIR=/opt/stack/logs

Glance

container_formats=ami,ari,aki,bare,ovf,ova,docker

Tempest

disable_service tempest

==================================================================================================

But stack fails with the following error

+functions-common:service_check:1663 for service in '$failures' ++functions-common:service_check:1664 basename /opt/stack/status/stack/n-cpu.failure +functions-common:service_check:1664 service=n-cpu.failure +functions-common:service_check:1665 service=n-cpu +functions-common:service_check:1666 echo 'Error: Service n-cpu is not running' Error: Service n-cpu is not running +functions-common:service_check:1669 '[' -n /opt/stack/status/stack/n-cpu.failure ']' +functions-common:service_check:1670 die 1670 'More details about the above errors can be found with screen' +functions-common:die:186 local exitcode=0 +functions-common:die:187 set +o xtrace

n-cpu log :-

2017-05-05 14:22:32.950 INFO os_vif [^[[00;36m-] ^[[01;35mLoaded VIF plugins: ovs, linux_bridge^[[00m 2017-05-05 14:22:32.951 WARNING oslo_reports.guru_meditation_report [^[[00;36m-] ^[[01;35mGuru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.^[[00m 2017-05-05 14:22:33.058 WARNING oslo_config.cfg [^[[00;36m-] ^[[01;35mOption "use_neutron" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.^[[00m 2017-05-05 14:22:33.075 DEBUG oslo_policy.policy [^[[01;36mreq-704d622e-4b24-4ebd-be0f-79735000a25e ^[[00;36mNone None] ^[[01;35mThe policy file policy.json could not be found.^[[00m ^[[00;33mfrom (pid=122120) load_rules /usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py:520^[[00m 2017-05-05 14:22:33.088 ERROR nova.virt.driver [^[[01;36mreq-704d622e-4b24-4ebd-be0f-79735000a25e ^[[00;36mNone None] ^[[01;35mCompute driver option required, but not specified^[[00m n-cpu failed to start

=======================================================================================

Can anyone guide me how to integrate Docker in the devstack(Ocata environment)? Also could anyone share a working local.conf with docker in Ocata ?

( I have used the following as references but those are for earlier releases kilo ... (more)

edit retag flag offensive close merge delete