From e4f8a5de8e90abcf7084712848f47cbf3262d6bf Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 5 Nov 2019 15:09:20 +0000 Subject: [PATCH] Fix kolla ansible virtualenv creation on the seed Backport: Stein, Rocky, Queens In https://review.opendev.org/#/c/671502/ kolla ansible virtualenv creation was modified to only happen on hosts in the kolla-ansible inventory. However, that change omitted the seed. It passed CI because the seed and overcloud are both in the inventory. This change adds the seed group to the inventory_hostname lookup. Change-Id: Ib5fb726600debee5df1f7085ea37b583bfccefcf Story: 2006247 Task: 37368 --- ansible/kolla-target-venv.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/kolla-target-venv.yml b/ansible/kolla-target-venv.yml index 02abdb68a..64b438540 100644 --- a/ansible/kolla-target-venv.yml +++ b/ansible/kolla-target-venv.yml @@ -11,9 +11,9 @@ # control: # groups: # - controllers - overcloud_nodes_in_kolla_inventory: >- + hosts_in_kolla_inventory: >- {{ kolla_overcloud_inventory_top_level_group_map.values() | - map(attribute='groups') | flatten | unique | join(':') }} + map(attribute='groups') | flatten | unique | union(['seed']) | join(':') }} tags: - kolla-ansible - kolla-target-venv @@ -53,4 +53,4 @@ become: True when: - kolla_ansible_target_venv is not none - - inventory_hostname in query('inventory_hostnames', overcloud_nodes_in_kolla_inventory) + - inventory_hostname in query('inventory_hostnames', hosts_in_kolla_inventory)