Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2166323

Summary: Overcloud deploy fails with The conditional check '_sat6_check_v6 is failed' failed.
Product: Red Hat OpenStack Reporter: Luigi Tamagnone <ltamagno>
Component: tripleo-ansibleAssignee: OSP Team <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Joe H. Rahme <jhakimra>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: jslagle, tkajinam
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-06 06:12:36 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:

Description Luigi Tamagnone 2023-02-01 13:36:42 UTC
Description of problem:
- Customer scale-out failed with:
~~~
grep FATAL 0060-ansible2.log 
2023-01-16 12:30:47,896 p=217421 u=mistral n=ansible | 2023-01-16 12:30:47.896024 | 52540065-581e-0a1d-0ba7-00000000e4a9 |      FATAL | SATELLITE | Check for Satellite 6.10 | prd46 | error={"msg": "The conditional check '_sat6_check_v6 is failed' failed. The error was: The 'failed' test expects a dictionary\n\nThe error appears to be in '/usr/share/ansible/roles/redhat-subscription/tasks/satellite.yml': line 22, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: SATELLITE | Check for Satellite 6.10\n  ^ here\n"}
 ~~~

- we shared hotfix from bz 2106615, tripleo-ansible-0.8.1-2.20220622005832.el8ost.1.noarch.rpm, to solve the issue and they hit:
~~~
grep FATAL 0080-ansible.log 
2023-01-19 17:22:06,836 p=358678 u=mistral n=ansible | 2023-01-19 17:22:06.835937 | 52540065-581e-b75a-78bd-000000010337 |      FATAL | SATELLITE | Set Satellite version | prd35 | error={"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'status'\n\nThe error appears to be in '/usr/share/ansible/roles/redhat-subscription/tasks/satellite.yml': line 61, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: SATELLITE | Set Satellite version\n  ^ here\n"}
2023-01-19 17:22:29,781 p=358678 u=mistral n=ansible | 2023-01-19 17:22:29.781726 | 52540065-581e-b75a-78bd-00000001170d |      FATAL | SATELLITE | Set Satellite version | prd32 | error={"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'status'\n\nThe error appears to be in '/usr/share/ansible/roles/redhat-subscription/tasks/satellite.yml': line 61, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: SATELLITE | Set Satellite version\n  ^ here\n"}
2023-01-19 17:22:34,788 p=358678 u=mistral n=ansible | 2023-01-19 17:22:34.788083 | 52540065-581e-b75a-78bd-000000011639 |      FATAL | SATELLITE | Set Satellite version | prd11 | error={"msg": "The task includes an option with an undefined variable. The error was: '_sat6_check' is undefined\n\nThe error appears to be in '/usr/share/ansible/roles/redhat-subscription/tasks/satellite.yml': line 61, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: SATELLITE | Set Satellite version\n  ^ here\n"}
2023-01-19 17:22:39,949 p=358678 u=mistral n=ansible | 2023-01-19 17:22:39.949625 | 52540065-581e-b75a-78bd-00000001177c |      FATAL | SATELLITE | Set Satellite version | prd12 | error={"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'status'\n\nThe error appears to be in '/usr/share/ansible/roles/redhat-subscription/tasks/satellite.yml': line 61, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: SATELLITE | Set Satellite version\n  ^ here\n"}
2023-01-19 17:23:31,290 p=358678 u=mistral n=ansible | 2023-01-19 17:23:31.289535 | 52540065-581e-b75a-78bd-00000001545c |      FATAL | SATELLITE | Set Satellite version | prd01 | error={"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'status'\n\nThe error appears to be in '/usr/share/ansible/roles/redhat-subscription/tasks/satellite.yml': line 61, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: SATELLITE | Set Satellite version\n  ^ here\n"}
~~~

- So we thought maybe they need also ansible-role-redhat-subscription-1.2.1-2.20220817005312.eefe501.el8ost.noarch.rpmt, from bz 2061393 so we shared It and now they hit:
~~~
2023-01-27 15:02:13,483 p=1750 u=mistral n=ansible | 2023-01-27 15:02:13.483049 | 52540065-581e-dbb9-7e1d-000000015c48 |      FATAL | Fail if Satellite version was not found | prd01 | error={"changed": false, "msg": "Satellite version was not found, you should file a bug"}
~~~

Version-Release number of selected component (if applicable):
Red Hat Openstack 16.2.3
Red Hat satellite 6.11

Actual results:
Openstack scale-out is failing in /usr/share/ansible/roles/redhat-subscription/tasks/satellite.yml playbook

Expected results:
ansible tripleo should able to find satellite version and move forward.

Additional info: