openstack_release auto error with pull images

Bug #1671143 reported by Eduardo Gonzalez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Eduardo Gonzalez
Ocata
New
Undecided
Unassigned
Pike
Fix Released
Medium
Eduardo Gonzalez

Bug Description

kolla-ansible pull does not work with openstack_release set to auto.

TASK [Get current kolla-ansible version number] ********************************
task path: /root/kolla-ansible/ansible/site.yml:38
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1488985930.27-132882751940034 `" && echo ansible-tmp-1488985930.27-132882751940034="` echo ~/.ansible/tmp/ansible-tmp-1488985930.27-132882751940034 `" ) && sleep 0'
<localhost> PUT /tmp/tmpl0rHyS TO /root/.ansible/tmp/ansible-tmp-1488985930.27-132882751940034/command.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1488985930.27-132882751940034/ /root/.ansible/tmp/ansible-tmp-1488985930.27-132882751940034/command.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1488985930.27-132882751940034/command.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1488985930.27-132882751940034/" > /dev/null 2>&1 && sleep 0'
ok: [localhost -> localhost] => {
    "changed": false,
    "cmd": [
        "python",
        "-c",
        "import pbr.version; print(pbr.version.VersionInfo('kolla-ansible'))"
    ],
    "delta": "0:00:02.450749",
    "end": "2017-03-08 15:12:12.886483",
    "invocation": {
        "module_args": {
            "_raw_params": "python -c \"import pbr.version; print(pbr.version.VersionInfo('kolla-ansible'))\"",
            "_uses_shell": false,
            "chdir": null,
            "creates": null,
            "executable": null,
            "removes": null,
            "warn": true
        },
        "module_name": "command"
    },
    "rc": 0,
    "start": "2017-03-08 15:12:10.435734",
    "stderr": "",
    "stdout": "4.0.0",
    "stdout_lines": [
        "4.0.0"
    ],
    "warnings": []
}

TASK [Set openstack_release variable] ******************************************
task path: /root/kolla-ansible/ansible/site.yml:44
ok: [localhost] => {
    "ansible_facts": {
        "openstack_release": "4.0.0"
    },
    "changed": false,
    "invocation": {
        "module_args": {
            "openstack_release": "4.0.0"
        },
        "module_name": "set_fact"
    }
}

TASK [common : Pulling kolla-toolbox image] ************************************
task path: /root/kolla-ansible/ansible/roles/common/tasks/pull.yml:2
Using module file /root/kolla-ansible/ansible/library/kolla_docker.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1488985938.63-62972536628373 `" && echo ansible-tmp-1488985938.63-62972536628373="` echo ~/.ansible/tmp/ansible-tmp-1488985938.63-62972536628373 `" ) && sleep 0'
<localhost> PUT /tmp/tmpKRXTDD TO /root/.ansible/tmp/ansible-tmp-1488985938.63-62972536628373/kolla_docker.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1488985938.63-62972536628373/ /root/.ansible/tmp/ansible-tmp-1488985938.63-62972536628373/kolla_docker.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1488985938.63-62972536628373/kolla_docker.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1488985938.63-62972536628373/" > /dev/null 2>&1 && sleep 0'
fatal: [localhost]: FAILED! => {
    "changed": false,
    "failed": true,
    "invocation": {
        "module_args": {
            "action": "pull_image",
            "api_version": "auto",
            "auth_email": null,
            "auth_password": null,
            "auth_registry": "192.168.100.156:4000",
            "auth_username": null,
            "cap_add": [],
            "detach": true,
            "environment": {
                "KOLLA_CONFIG_STRATEGY": "COPY_ALWAYS"
            },
            "image": "192.168.100.156:4000/lokolla/ubuntu-source-kolla-toolbox:auto",
            "labels": {},
            "name": null,
            "privileged": false,
            "remove_on_exit": true,
            "restart_policy": "unless-stopped",
            "restart_retries": 10,
            "security_opt": [],
            "tls_cacert": null,
            "tls_cert": null,
            "tls_key": null,
            "tls_verify": false,
            "volumes": null,
            "volumes_from": null
        },
        "module_name": "kolla_docker"
    },
    "msg": "The requested image does not exist: 192.168.100.156:4000/lokolla/ubuntu-source-kolla-toolbox:auto"
}

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/443291
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=34b3bcf89d02b039367b9bf1212c7ce0e3b5742b
Submitter: Jenkins
Branch: master

commit 34b3bcf89d02b039367b9bf1212c7ce0e3b5742b
Author: Eduardo Gonzalez <email address hidden>
Date: Wed Mar 8 18:58:35 2017 +0000

    Set empty openstack_release option

    globals.yml have the highest var precedence in Ansible vars
    as is added in kolla-ansible as -e @globals.yml
    Setting openstack_release: "auto" causes error while
    deploying/pulling as this var override the fact set in site.yml.

    Value in globals.yml should be a real kolla version
    (3.0.0, 4.0.0, etc)
    Value in group_vars/all works fine with auto.

    Change-Id: If99f7b4b1507909c6c2628b6d6fc6ce2519c9a24
    Closes-Bug: #1671143

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
Anilkumar Thovi (thovi) wrote :

After changing the openstack_release by setting empty string "", still seen the same issue.

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Can you share you globals and group_vars config. What is the error? Maybe is a different one

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 5.0.0.0b2

This issue was fixed in the openstack/kolla-ansible 5.0.0.0b2 development milestone.

Revision history for this message
Anilkumar Thovi (thovi) wrote :

It's working now. Thanks.

TASK [common : Pulling kolla-toolbox image] ****************************************************************************************************************************
ok: [localhost]

Globals.yml file:
###################
# Kolla options
###################
# Valid options are [ COPY_ONCE, COPY_ALWAYS ]
#config_strategy: "COPY_ALWAYS"

# Valid options are [ centos, oraclelinux, ubuntu ]
kolla_base_distro: "ubuntu"

# Valid options are [ binary, source ]
kolla_install_type: "source"

# Valid option is Docker repository tag
openstack_release: ""

# Location of configuration overrides
#node_custom_config: "/etc/kolla/config"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.