Ask Your Question

kolla-ansible AIO ubuntu 16.04.3 QuickStart Install fails

asked 2018-03-02 04:52:23 -0500

flashydave gravatar image

I have been following the (QuickStart Guide) with bare metal machines (and tried with some VM's) but despite many attempts I end up failing with the prechecks stage with

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: load_config() got an unexpected keyword argument 'config_dict'

It always occurs with the "Get container facts" step and usually TASK haproxy (Although it will fail on others later with the same error if you disable haproxy in globals.yml)

I have seen google references to compatibility issues with a variety of python libs recently (eg docker-py) but despite trying many of the possible fix attempts by downgrading the libraries I have not found a cure.

I have tried with/without a virtualenv and also tried both pike and source code variants.

I have also tried recipes at (inkubate) and at (Karim's Blog).

I can make a little progress by downgrading docker-py from 3.1.0 to 2.7 for the prechecks which then pass but then deploy fails with unless I re-upgrade at which point I fall over during the pull stage with

AttributeError: 'module' object has no attribute 'get_config_header'

I can make progress on that if I pip uninstall docker-py and docker and then reinstall docker.

The deploy the falls over with errors with tasks failing with exit code=1 errors. If I repeat I can get progresiveluy further until eventually I become consistently stuck on

TASK [nova : Waiting for nova-compute service up] **************************************************
FAILED - RETRYING: Waiting for nova-compute service up (20 retries left).
FAILED - RETRYING: Waiting for nova-compute service up (1 retries left).
fatal: [localhost -> localhost]: FAILED! => {"attempts": 20, "changed": false, "cmd": ["docker", "exec", "kolla_toolbox", "openstack", "--os-interface", "internal", "--os-auth-url", "", "--os-identity-api-version", "3", "--os-project-domain-name", "default", "--os-tenant-name", "admin", "--os-username", "admin", "--os-password", "CoBPkDubdad0pRnUousJ1WNqtoQC2uIcDv8h3wt6", "--os-user-domain-name", "default", "compute", "service", "list", "-f", "json", "--service", "nova-compute"], "delta": "0:00:01.710048", "end": "2018-03-01 23:30:10.155493", "rc": 0, "start": "2018-03-01 23:30:08.445445", "stderr": "", "stderr_lines": [], "stdout": "[]", "stdout_lines": ["[]"]}

NO MORE HOSTS LEFT *********************************************************************************
        to retry, use: --limit @/usr/local/share/kolla-ansible/ansible/site.retry

In passing I also get earlier failures in the bootstrap-serves phase due to assumptions on the environment that are not true (requiring things like libvirtd installed and apparmor uninstalled) to pass that earlier step. Addressing those problems is relatively easy but makes me feel nervous that something isn't quite right with the environment dependencies even though it is a bare metal ubuntu server 16.04.3 install.

It looks like

  1. What is installed on ubuntu 16.04.3 has changed from 16.04
  2. docker-py has broken kolla-ansible when it moved to 3.x (API change?)
  3. docker-py tangles with docker itself (is docker-py now incorporated in docker?)

Please can someone define precisely what versions of the various tools DO work or can advise if there are errors in the ... (more)

edit retag flag offensive close merge delete


Hi Flashydave, I am also running through the same error and I followed the karim's blog as well. Were you able to solve this problem? Any help is much appreciated!

bhoomi gravatar imagebhoomi ( 2018-03-16 18:51:05 -0500 )edit

1 answer

Sort by ┬╗ oldest newest most voted

answered 2018-03-16 20:21:59 -0500

bhoomi gravatar image

Hi I was facing the same error with Ocata release and I just found a similar bug. You might want to check if something like this is preventing you too!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2018-03-01 11:21:15 -0500

Seen: 1,168 times

Last updated: Mar 02 '18