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

Bug 2024440

Summary: Redhat Subscription to Satellite broken with Satellite 6.10
Product: Red Hat OpenStack Reporter: Matt Ford <maford>
Component: ansible-role-redhat-subscriptionAssignee: Sagi Shnaidman <sshnaidm>
Status: CLOSED CURRENTRELEASE QA Contact: David Rosenfeld <drosenfe>
Severity: high Docs Contact:
Priority: high    
Version: 16.1 (Train)CC: aperotti, broose, camorris, cjeanner, dhill, emacchi, shtiwari, sshnaidm, svigan
Target Milestone: z8Keywords: TestOnly, Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ansible-role-redhat-subscription-1.1.1-1.20211118163403.6d26afa.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2039799 (view as bug list) Environment:
Last Closed: 2022-03-28 10:35:44 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: 2039799    

Description Matt Ford 2021-11-18 06:02:50 UTC
Description of problem: When registering OpenStack 16.1 nodes to Satellite, the overcloud install fails because it cannot determine Satellite Version


Version-Release number of selected component (if applicable): OpenStack 16.1 with Satellite 6.10


How reproducible:


Steps to Reproduce:
1. Configure Openstack to add nodes to Red Had Satellite
2. Deploy Overcloud


Actual results:

Satellite version was not found, you should file a bug

Expected results:

Satellite 6 should be detected and Overcloud deployment should attach nodes to Red Hat Satellite

Additional info:

The offending code in /usr/share/ansible/roles/redhat-subscription/tasks/satellite.yml



- name: SATELLITE | Check for Satellite 6
  uri:
    url: "{{ rhsm_satellite_url }}/pulp/api/v2/status"
    validate_certs: no
    status_code: 200, 404
  register: _sat6_check
  run_once: yes
  tags:
    - rhsm_satellite


Pulp has been migrated from Pulp2 to Pulp3 in Satellite 6.10, removing the /pulp/api/v2/status url, new URL is /pulp/api/v3/status

Added another task to satellite.yml

- name: SATELLITE | Check for Satellite 6.10
  uri:
    url: "{{ rhsm_satellite_url }}/pulp/api/v3/status"
    validate_certs: no
    status_code: 200, 404
  register: _sat6_check
  run_once: yes
  tags:
    - rhsm_satellite


This resolved the issue.

Comment 1 Sagi Shnaidman 2021-11-18 11:27:50 UTC
Proposed a patch to upstream:  https://review.opendev.org/c/openstack/ansible-role-redhat-subscription/+/818367

Comment 13 David Rosenfeld 2022-03-25 13:23:24 UTC
Successfully deployed OSP16.1 from a version 6.10 satellite. The overcloud registered with the satellite and pulled all packages required for installation from the satellite.

Comment 14 OSP Team 2022-03-28 10:35:44 UTC
According to our records, this should be resolved by ansible-role-redhat-subscription-1.1.1-1.20211118163403.6d26afa.el8ost.  This build is available now.

Comment 15 Ben Roose 2022-06-13 22:01:44 UTC
For clarification, the patch for BZ 2024440 was released in the following Red Hat public erratas:

RHOSP 16.1.8 - Errata RHBA-2022:0986 - Bug Fix Advisory
https://access.redhat.com/errata/RHBA-2022:0986

RHOSP 16.2.2 - Errata RHBA-2022:1001 - Bug Fix Advisory
https://access.redhat.com/errata/RHBA-2022:1001