Error galera_server : Download extra packages

Bug #1815902 reported by Igor Torrente on 2019-02-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-ansible
Undecided
Guilherme Steinmuller Pimentel

Bug Description

Hello,

We were trying to install openstack rocky via opentack-ansible, but we found this error:

TASK [galera_server : Download extra packages] *********************************
fatal: [infra1_galera_container-c9dc3590]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'list object' has no attribute 'url'\n\nThe error appears to have been in '/etc/ansible/roles/galera_server/tasks/galera_install_download_extra_packages.yml': line 23, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Download extra packages\n ^ here\n"}

Version: git describe
18.1.3-4-g5fbdf242a
ansible --version
Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml "
ansible 2.5.14
 config file = None
 configured module search path = [u'/etc/ansible/roles/plugins/library', u'/etc/ansible/roles/ceph-ansible/library']
 ansible python module location = /opt/ansible-runtime/local/lib/python2.7/site-packages/ansible
 executable location = /opt/ansible-runtime/bin/ansible
 python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]

O.S:
Linux controller 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:27:02 UTC 2019 ppc64le ppc64le ppc64le GNU/Linux

Igor Torrente (igormtorrente) wrote :

Unfortunately no, We hit this issue after apply this patch.

Fix proposed to branch: master
Review: https://review.openstack.org/637275

Changed in openstack-ansible:
assignee: nobody → Guilherme Steinmuller Pimentel (guilhermesp)
status: New → In Progress

please, could you cherry pick this and test it out? https://review.openstack.org/#/c/637275/

Reviewed: https://review.openstack.org/637275
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-galera_server/commit/?id=36d95a112da30d60847108946b433c376b4e77cc
Submitter: Zuul
Branch: master

commit 36d95a112da30d60847108946b433c376b4e77cc
Author: Guilherme Steinmüller <email address hidden>
Date: Fri Feb 15 19:03:21 2019 +0000

    Iterate over list of values of PPC packages dict

    Currently as we are iterating over a higher level dictionary
    and it is not possible to access the item.value.url attribute
    directly.

    Alternatively, we could get the values that is a list and
    then iterate over that list to get properly the url and
    checksum variables.

    Also, we are not iterating over the dictionary we alternatively change
    the item.key to galera_server_percona_distro_packages_alt_arch.keys()[0]
    that produces the result as item.key.

    Change-Id: I3e102377630d9c8ea5c9e3ea03cae3975a05dbb8
    Closes-Bug: #1815902

Changed in openstack-ansible:
status: In Progress → Fix Released
Igor Torrente (igormtorrente) wrote :

Guilherme, unfortunately We cannot test this Patch right now. As soon as possible the test will be made and the results reported here.

Reviewed: https://review.openstack.org/637825
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-galera_server/commit/?id=714c3473592b0b7a513815ed5361d5d59a576e31
Submitter: Zuul
Branch: stable/rocky

commit 714c3473592b0b7a513815ed5361d5d59a576e31
Author: Guilherme Steinmüller <email address hidden>
Date: Fri Feb 15 19:03:21 2019 +0000

    Iterate over list of values of PPC packages dict

    Currently as we are iterating over a higher level dictionary
    and it is not possible to access the item.value.url attribute
    directly.

    Alternatively, we could get the values that is a list and
    then iterate over that list to get properly the url and
    checksum variables.

    Also, we are not iterating over the dictionary we alternatively change
    the item.key to galera_server_percona_distro_packages_alt_arch.keys()[0]
    that produces the result as item.key.

    Change-Id: I3e102377630d9c8ea5c9e3ea03cae3975a05dbb8
    Closes-Bug: #1815902
    (cherry picked from commit 36d95a112da30d60847108946b433c376b4e77cc)

tags: added: in-stable-rocky
tags: added: in-stable-queens

Reviewed: https://review.openstack.org/637826
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-galera_server/commit/?id=85f7b2c1afb312a8bd0a8602d9b5032d4c59953e
Submitter: Zuul
Branch: stable/queens

commit 85f7b2c1afb312a8bd0a8602d9b5032d4c59953e
Author: Guilherme Steinmüller <email address hidden>
Date: Fri Feb 15 19:03:21 2019 +0000

    Iterate over list of values of PPC packages dict

    Currently as we are iterating over a higher level dictionary
    and it is not possible to access the item.value.url attribute
    directly.

    Alternatively, we could get the values that is a list and
    then iterate over that list to get properly the url and
    checksum variables.

    Also, we are not iterating over the dictionary we alternatively change
    the item.key to galera_server_percona_distro_packages_alt_arch.keys()[0]
    that produces the result as item.key.

    Change-Id: I3e102377630d9c8ea5c9e3ea03cae3975a05dbb8
    Closes-Bug: #1815902
    (cherry picked from commit 36d95a112da30d60847108946b433c376b4e77cc)

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

Other bug subscribers