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

Bug 2061393

Summary: Overcloud deploy fails undefined variable in /usr/share/ansible/roles/redhat-subscription/tasks/satellite.yml
Product: Red Hat OpenStack Reporter: David Rosenfeld <drosenfe>
Component: ansible-role-redhat-subscriptionAssignee: Cédric Jeanneret <cjeanner>
Status: CLOSED DUPLICATE QA Contact: David Rosenfeld <drosenfe>
Severity: high Docs Contact:
Priority: urgent    
Version: 16.2 (Train)CC: alisci, astupnik, cjeanner, dhill, emacchi, fpalin, jschluet, jslagle, ldavidde, marjones, mburns, mgarciac, pweeks, ramishra, sathlang, shtiwari, slinaber, wmattson
Target Milestone: z4Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-role-redhat-subscription-1.2.1-2.20220817005312.eefe501.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-05 12:16:42 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: 2105906, 2106615, 2243825    
Bug Blocks:    

Description David Rosenfeld 2022-03-07 13:38:17 UTC
Description of problem: When deploying openstack from satellite the deployment can fail with this error:

2022-03-04 13:23:30.584970 | 525400fb-2f51-9ec2-ca14-0000000057b8 |      FATAL | SATELLITE | Set Satellite version | ceph1621-2 | 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"}

There is also another form of the error message that can be displayed:

2022-03-06 14:53:46.632168 | 5254000a-fa5f-81a9-34ff-0000000057ef |      FATAL | SATELLITE | Check for Satellite 6.10 | ceph-0 | 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"}

The failure does not happen every time, but has been seen several times. New code was introduced to determine the satellite version by this BZ:

2039799 - Redhat Subscription to Satellite broken with Satellite 6.10

Maybe the new satellite version check is contributing to this error. The satellite version being used in these deploys was 6.7.


Version-Release number of selected component (if applicable): RHOS-16.2-RHEL-8-20220301.n.3


How reproducible: Less than half of satellite deploys.


Steps to Reproduce:
1. Seen most often with this Jenkins jobs: https://rhos-ci-jenkins.lab.eng.tlv2.redhat.com/view/DFG/view/df/view/deployment/job/DFG-df-deployment-16.2-virthost-3cont_1comp_3ceph_3db_2net_3msg-ceph-ipv4-geneve-satellite-composable-advanced-subscription/
2.
3.

Actual results: Overcloud deploy fails with one of the errors above.


Expected results: Overcloud deploy is successful.


Additional info:

Comment 7 David Hill 2022-04-24 23:22:38 UTC
*** Bug 2078255 has been marked as a duplicate of this bug. ***

Comment 17 Cédric Jeanneret 2022-06-21 14:51:48 UTC
After some more checking, it seems we may also avoid some useless connections: pulp is redirecting [...]/status to [...]/status/ (note the trailing slash).

This patch here[1] would therefore divide by 2 the amount of queries, since it will directly hit the correct, final URI. Not a fix per se, but it won't hurt - on the contrary.


[1] https://review.opendev.org/c/openstack/ansible-role-redhat-subscription/+/847033

Comment 56 Takashi Kajinami 2023-01-30 03:07:05 UTC
*** Bug 2142977 has been marked as a duplicate of this bug. ***