map_cell0 can be undefined when kolla-ansible tag specified

Bug #1782319 reported by Doug Szumski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Doug Szumski

Bug Description

To reproduce bring up a Kolla vagrant dev environment using default settings and then for example enable monasca and run:

kolla-ansible deploy -t monasca

Ansible will fail because map_cell0 is undefined owing to the fact that the nova plays were skipped:

TASK [nova : include] ********************************************************************************************
task path: /usr/share/kolla-ansible/ansible/roles/nova/tasks/simple_cell_setup.yml:14
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'map_cell0.changed' failed. The error was: error whi
valuating conditional (map_cell0.changed): 'map_cell0' is undefined\n\nThe error appears to have been in '/usr/sha
olla-ansible/ansible/roles/nova/tasks/simple_cell_setup.yml': line 14, column 3, but may\nbe elsewhere in the file
ending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- include: bootstrap_service.yml\n
re\n"}
        to retry, use: --limit @/usr/share/kolla-ansible/ansible/site.retry

Doug Szumski (dszumski)
Changed in kolla:
assignee: nobody → Doug Szumski (dszumski)
affects: kolla → kolla-ansible
Changed in kolla-ansible:
status: New → Triaged
Changed in kolla-ansible:
status: Triaged → In Progress
Revision history for this message
Doug Szumski (dszumski) wrote :

Possible fix: https://review.openstack.org/583531

Possibly related to Ansible 2.6:

`[vagrant@operator]$ ansible --version
ansible 2.6.1
  config file = /home/vagrant/.ansible.cfg
  configured module search path = [u'/home/vagrant/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
`

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

This should fix all the similar issue

https://review.openstack.org/584728

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-ansible (master)

Change abandoned by Doug Szumski (<email address hidden>) on branch: master
Review: https://review.openstack.org/583531
Reason: This is no longer an issue.

Doug Szumski (dszumski)
Changed in kolla-ansible:
status: In Progress → Fix Released
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.