tripleo-upgrade to_inventory_rolemap filter fails on KeyError: 'qe-Cloud-0_excluded_overcloud'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Daniel Bengtsson |
Bug Description
Hi,
while trying to review https:/
TASK [tripleo-upgrade : set inventory facts] *******
Thursday 13 October 2022 12:32:49 +0000 (0:00:01.946) 0:01:24.815 ******
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'overcloud_
fatal: [undercloud]: FAILED! => {"changed": false}
in https:/
The associated task is
- name: set inventory facts
set_fact:
inventory_
inventory_
inventory_
The error comes from to_inventory_
By adding:
@@ -42,9 +42,11 @@ def to_inventory_
- for child in inventory[
- group_host_
- group_host_
+ # take into account the case for excluded overcloud
+ if child in group_role_map:
+ for child in inventory[
+ group_host_
+ group_host_
return group_host_map
the error goes away.
But why the exclude group doesn't make any failure for wallaby and master is still to be found.
@damani42 as you worked on this could you have a look ?
Changed in tripleo: | |
status: | Triaged → In Progress |
Fix proposed to branch: stable/train /review. opendev. org/c/openstack /tripleo- upgrade/ +/862541
Review: https:/