Ask Your Question
0

kolla-ansible container exited with non zero return code

asked 2018-02-19 04:43:35 -0500

rduncan-t gravatar image

My first time trying kolla-ansible, I am deploying all-in-one to bare metal on Ubuntu Trusty.

Every one of the bootstrap containers exit with a non 0 return code - however when I look in the docker logs for these - there are no errors in the containers themselves for example: (same thing with all of the _bootstrap containers)

included: /usr/local/share/kolla-ansible/ansible/roles/designate/tasks/bootstrap                                                                                                                               _service.yml for localhost
    TASK [designate : Running Designate bootstrap container] ***********************                                                                                                                               ********************************************************************************                                                                                                                               ***********************************************
    task path: /usr/local/share/kolla-ansible/ansible/roles/designate/tasks/bootstra                                                                                                                               p_service.yml:2
    Using module file /usr/local/share/kolla-ansible/ansible/library/kolla_docker.py
    <localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
    <localhost> EXEC /bin/sh -c 'echo ~ && sleep 0'
    <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/rob/.ansible/t                                                                                                                               mp/ansible-tmp-1519036026.93-193099400747321 `" && echo ansible-tmp-1519036026.9                                                                                                                               3-193099400747321="` echo /home/rob/.ansible/tmp/ansible-tmp-1519036026.93-19309                                                                                                                               9400747321 `" ) && sleep 0'
    <localhost> PUT /tmp/tmp_12FHI TO /home/rob/.ansible/tmp/ansible-tmp-1519036026.                                                                                                                               93-193099400747321/kolla_docker.py
    <localhost> EXEC /bin/sh -c 'chmod u+x /home/rob/.ansible/tmp/ansible-tmp-151903                                                                                                                               6026.93-193099400747321/ /home/rob/.ansible/tmp/ansible-tmp-1519036026.93-193099                                                                                                                               400747321/kolla_docker.py && sleep 0'
    <localhost> EXEC /bin/sh -c '/usr/bin/python /home/rob/.ansible/tmp/ansible-tmp-                                                                                                                               1519036026.93-193099400747321/kolla_docker.py; rm -rf "/home/rob/.ansible/tmp/an                                                                                                                               sible-tmp-1519036026.93-193099400747321/" > /dev/null 2>&1 && sleep 0'
    fatal: [localhost -> localhost]: FAILED! => {
        "changed": true,
        "invocation": {
            "module_args": {
                "action": "start_container",
                "api_version": "auto",
                "auth_email": null,
                "auth_password": null,
                "auth_registry": null,
                "auth_username": null,
                "cap_add": [],
                "detach": false,
                "environment": {
                    "KOLLA_BOOTSTRAP": null,
                    "KOLLA_CONFIG_STRATEGY": "COPY_ALWAYS",
                    "KOLLA_SERVICE_NAME": "bootstrap-designate"
                },
                "graceful_timeout": 10,
                "image": "kolla/ubuntu-binary-designate-central:4.0.0",
                "labels": {
                    "BOOTSTRAP": null
                },
                "name": "bootstrap_designate",
                "privileged": false,
                "remove_on_exit": true,
                "restart_policy": "never",
                "restart_retries": 10,
                "security_opt": [],
                "tls_cacert": null,
                "tls_cert": null,
                "tls_key": null,
                "tls_verify": false,
                "volumes": [
                    "/etc/kolla//designate-central/:/var/lib/kolla/config_files/:ro"                                                                                                                               ,
                    "/etc/localtime:/etc/localtime:ro",
                    "kolla_logs:/var/log/kolla/"
                ],
                "volumes_from": null
            }
        },
        "msg": "Container exited with non-zero return code"
    }

also - if I'm not mistaking the return code is in fact '0'

status of my bootstrap_designate for example:

Exited (0) 13 minutes ago

I can work around it by simply kolla-deploy again with the --retry option and it get passed the issue until in meets the next bootstrap_something

kolla-ansible (5.0.1)

docker -v Docker version 1.12.6, build 78d1802

python docker (3.0.1)

globals

Valid options are [ centos, oraclelinux, ubuntu ]

kolla_base_distro: "ubuntu"

Valid options are [ binary, source ]

kolla_install_type: "binary"

Valid option is Docker repository tag

openstack_release: "4.0.0"

edit retag flag offensive close merge delete

Comments

what is the output from docker logs bootstrap_designate and logs from /var/lib/docker/volumes/kolla_ansible/_data/designate

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2018-02-20 02:35:05 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-02-19 07:41:35 -0500

rduncan-t gravatar image

I don't know what the answer to this might end up being, however I changed from using kolla-ansilbe as installed by pip package and used github master branch, now the bootstrap containers work as expected.

edit flag offensive delete link more

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: 2018-02-19 04:43:35 -0500

Seen: 472 times

Last updated: Feb 19