Bug 1956803 - redhat-subscription: Packages should be referenced using ansible_facts
Summary: redhat-subscription: Packages should be referenced using ansible_facts
Keywords:
Status: ON_QA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: ansible-role-redhat-subscription
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z6
: 16.1 (Train on RHEL 8.2)
Assignee: Alex Schultz
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-04 12:58 UTC by Jad Haj Yahya
Modified: 2021-05-06 09:46 UTC (History)
3 users (show)

Fixed In Version: ansible-role-redhat-subscription-1.1.1-1.20201114001023.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 789567 0 None NEW Fix packages fact 2021-05-04 13:23:09 UTC

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:


Note You need to log in before you can comment on or make changes to this bug.