DescriptionDavid 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:
*** Bug 2078255 has been marked as a duplicate of this bug. ***
Comment 17Cé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 56Takashi Kajinami
2023-01-30 03:07:05 UTC
*** Bug 2142977 has been marked as a duplicate of this bug. ***
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: