Bug 1956803

Summary: redhat-subscription: Packages should be referenced using ansible_facts
Product: Red Hat OpenStack Reporter: Jad Haj Yahya <jhajyahy>
Component: ansible-role-redhat-subscriptionAssignee: Alex Schultz <aschultz>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: high Docs Contact:
Priority: high    
Version: 16.1 (Train)CC: aschultz, emacchi, spower
Target Milestone: z6Keywords: AutomationBlocker, Regression, Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-role-redhat-subscription-1.1.1-1.20201114001023.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1961674 (view as bug list) Environment:
Last Closed: 2021-05-26 13:52:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1961674    

Description Jad Haj Yahya 2021-05-04 12:58:35 UTC
Description of problem:

Satellite job failed due to below error:

fatal: [controller-0]: FAILED! => {"msg": "The conditional check 'packages['subscription-manager'][0]['version'] is version_compare('1.10', '>=')' failed. The error was: Version comparison: 'packages' is undefined"}
fatal: [controller-1]: FAILED! => {"msg": "The conditional check 'packages['subscription-manager'][0]['version'] is version_compare('1.10', '>=')' failed. The error was: Version comparison: 'packages' is undefined"}
fatal: [controller-2]: FAILED! => {"msg": "The conditional check 'packages['subscription-manager'][0]['version'] is version_compare('1.10', '>=')' failed. The error was: Version comparison: 'packages' is undefined"}
fatal: [controller-0]: FAILED! => {"msg": "The conditional check 'packages['subscription-manager'][0]['version'] is version_compare('1.10', '>=')' failed. The error was: Version comparison: 'packages' is undefined"}
fatal: [controller-1]: FAILED! => {"msg": "The conditional check 'packages['subscription-manager'][0]['version'] is version_compare('1.10', '>=')' failed. The error was: Version comparison: 'packages' is undefined"}
fatal: [controller-2]: FAILED! => {"msg": "The conditional check 'packages['subscription-manager'][0]['version'] is version_compare('1.10', '>=')' failed. The error was: Version comparison: 'packages' is undefined"}

it is apparently requires using ansible_facts at https://github.com/openstack/ansible-role-redhat-subscription/blob/master/tasks/satellite-6.yml at lines 10 &. 21

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 12 errata-xmlrpc 2021-05-26 13:52:43 UTC
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 (Red Hat OpenStack Platform 16.1.6 bug fix and enhancement 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.

https://access.redhat.com/errata/RHBA-2021:2097