Ask Your Question
0

nova-docker setup in devstack

asked 2016-09-01 05:22:01 -0600

itsme gravatar image

updated 2016-09-02 01:24:28 -0600

I am trying to configure nova-docker in the devstack.

I am using Mitaka version.

Tried following nova-docker documentation for setup.

I am still facing the issue with the installation.

Getting the error as follows:

2016-09-01 10:10:48.213 | +lib/nova:install_nova:731                 is_service_enabled n-cpu
2016-09-01 10:10:48.243 | +functions-common:is_service_enabled:2055  return 0
2016-09-01 10:10:48.247 | +lib/nova:install_nova:731                 [[ -r /opt/stack/devstack/lib/nova_plugins/hypervisor-docker ]]
2016-09-01 10:10:48.251 | +lib/nova:install_nova:732                 install_nova_hypervisor
2016-09-01 10:10:48.251 | /opt/stack/devstack/lib/nova: line 732: install_nova_hypervisor: command not found
2016-09-01 10:10:48.255 | +lib/nova:install_nova:1                   exit_trap
2016-09-01 10:10:48.260 | +./stack.sh:exit_trap:474                  local r=127
2016-09-01 10:10:48.266 | ++./stack.sh:exit_trap:475                  jobs -p
2016-09-01 10:10:48.271 | +./stack.sh:exit_trap:475                  jobs=
2016-09-01 10:10:48.276 | +./stack.sh:exit_trap:478                  [[ -n '' ]]
2016-09-01 10:10:48.280 | +./stack.sh:exit_trap:484                  kill_spinner
2016-09-01 10:10:48.286 | +./stack.sh:kill_spinner:370               '[' '!' -z '' ']'
2016-09-01 10:10:48.293 | +./stack.sh:exit_trap:486                  [[ 127 -ne 0 ]]
2016-09-01 10:10:48.302 | +./stack.sh:exit_trap:487                  echo 'Error on exit'
2016-09-01 10:10:48.302 | Error on exit
2016-09-01 10:10:48.308 | +./stack.sh:exit_trap:488                  generate-subunit 1472724459 189 fail
2016-09-01 10:10:48.544 | +./stack.sh:exit_trap:489                  [[ -z /opt/stack/logs ]]
2016-09-01 10:10:48.550 | +./stack.sh:exit_trap:492                  /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2016-09-01 10:10:48.922 | +./stack.sh:exit_trap:498                  exit 127

Followed this Documentation and added the changes in to local.conf file I use.

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

Someone help me with the same.

Attaching the local.conf file link.

http://paste.openstack.org/show/565663/

If anyone got succeeded with setting up nova docker please let me know where it goes wrong, Also provide me local.conf file if possible.

Update:

I tried removing all files and let the stack.sh script to fetch the mitaka files again.

stack.sh completed with error.

Now getting the error as follows:

http://paste.openstack.org/show/565683/

Update 2:

Getting a new error.

compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
2016-09-02 11:48:32.785 INFO oslo_service.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2016-09-02 11:48:32.794 INFO nova.virt.driver [-] Loading compute driver 'novadocker.virt.docker.DockerDriver'
2016-09-02 11:48:32.796 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2016-09-02 11:48:32.796 TRACE nova.virt.driver Traceback (most recent call last):
2016-09-02 11:48:32.796 TRACE nova.virt.driver   File "/home/infics/stack/nova/nova/virt/driver.py", line 1622, in load_compute_driver
2016-09-02 11:48:32.796 TRACE nova.virt.driver     virtapi)
2016-09-02 11:48:32.796 TRACE nova.virt.driver   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 64, in import_object_ns
2016-09-02 11 ...
(more)
edit retag flag offensive close merge delete

Comments

Please follow this link It also gives details on local.conf.

After installing, if you face any more issues, Please reply to the thread.

sunnyarora gravatar imagesunnyarora ( 2016-09-01 06:24:58 -0600 )edit

Will give a try, But that local.conf also seems to be same like which one I am using.

itsme gravatar imageitsme ( 2016-09-01 06:31:28 -0600 )edit

Two things(But i am not sure) 1) functions-common:is_service_enabled:2055 returning 0. Make sure "nova compute service" is running.

2) Try adding the 'stack' user to the 'docker' group & then run again. Check ownership of files at location : /opt/stack/devstack/lib/nova_plugins/hypervisor-docker

sunnyarora gravatar imagesunnyarora ( 2016-09-01 07:11:50 -0600 )edit

No Module name docker, could you check this link

sunnyarora gravatar imagesunnyarora ( 2016-09-02 01:39:49 -0600 )edit

@sunnyarora It helped me to overcome some issue thanks

itsme gravatar imageitsme ( 2016-09-02 02:25:47 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-09-02 05:42:07 -0600

itsme gravatar image

updated 2016-09-02 05:50:29 -0600

I can be able to fix the installation issue with the nova-docker.

Here it is detailed information on the same.

Docker by default returned the error as follows:(n-cpu)

compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
2016-09-02 11:48:32.785 INFO oslo_service.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2016-09-02 11:48:32.794 INFO nova.virt.driver [-] Loading compute driver 'novadocker.virt.docker.DockerDriver'
2016-09-02 11:48:32.796 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2016-09-02 11:48:32.796 TRACE nova.virt.driver Traceback (most recent call last):
2016-09-02 11:48:32.796 TRACE nova.virt.driver   File "/home/infics/stack/nova/nova/virt/driver.py", line 1622, in load_compute_driver
2016-09-02 11:48:32.796 TRACE nova.virt.driver     virtapi)
2016-09-02 11:48:32.796 TRACE nova.virt.driver   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 64, in import_object_ns
2016-09-02 11:48:32.796 TRACE nova.virt.driver     cls = import_class(import_str)
2016-09-02 11:48:32.796 TRACE nova.virt.driver   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 30, in import_class
2016-09-02 11:48:32.796 TRACE nova.virt.driver     __import__(mod_str)
2016-09-02 11:48:32.796 TRACE nova.virt.driver   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/__init__.py", line 20, in <module>
2016-09-02 11:48:32.796 TRACE nova.virt.driver     from novadocker.virt.docker import driver
2016-09-02 11:48:32.796 TRACE nova.virt.driver   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 27, in <module>
2016-09-02 11:48:32.796 TRACE nova.virt.driver     from docker import errors
2016-09-02 11:48:32.796 TRACE nova.virt.driver ImportError: No module named docker
2016-09-02 11:48:32.796 TRACE nova.virt.driver

As part of fixing this have executed the following command:

sudo pip install docker-py

Then while checking the n-cpu log it is returning a error as follows:

^[[01;31m2016-09-02 15:18:08.105 TRACE oslo_service.service ^[[01;35m^[[00m    raise ConnectionError(err, request=request)
^[[01;31m2016-09-02 15:18:08.105 TRACE oslo_service.service ^[[01;35m^[[00mConnectionError: ('Connection aborted.', error(13, 'EACCES'))

When checking the permission of docker.sock in /var/run/docker.sock it is as follows:

srw-rw----  1 root       docker         0 Sep  2 11:34 docker.sock

As it is started with root permission other users can't be able to access this.

Hence changed the same as follows:

srw-rw-rwx  1 root       docker         0 Sep  2 11:34 docker.sock

using the command below:

chmod o=rwx docker.sock

After that can be able to see that n-cpu is working fine without any issues.

But now I am getting Isse when I am trying to launch the Instance.

For that I have opened a question in new thread.

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

edit flag offensive delete link more
0

answered 2016-09-01 05:53:14 -0600

I worked on devstack mitaka that local.conf : http://paste.openstack.org/show/565664/

edit flag offensive delete link more

Comments

@ydemiral Getting a error again, Updated the details

itsme gravatar imageitsme ( 2016-09-02 01:29:41 -0600 )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: 2016-09-01 05:22:01 -0600

Seen: 333 times

Last updated: Sep 02 '16