Description of problem:
See also https://bugzilla.redhat.com/show_bug.cgi?id=1653306.
The script fails with a StopIteration error here:
The code that fail in the script is:
nic_config_name = next((x.get('deprecated_nic_config_name',
OPTS.role_name.lower() + '.yaml') for x in
roles_data if x['name'] == OPTS.role_name))
The exception StopIteration indicates that it iterated trought all the roles without finding a match. So whatever the CI job assigns to NIC_ROLE_NAME is not a role name in roles_data.
The script should handle this error case more gracefully and indicate the role is missing instead of generating StopIteration.
Ran Yuri's test from https://bugzilla.redhat.com/show_bug.cgi?id=1653306
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.