Bug 2055808

Summary: Upgrading the Satellite 7.0 from Snap 8 to Snap 9 , sets the CDN configuration for all Organizations in airgapped mode
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: Inter Satellite SyncAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Radek Mynar <rmynar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: ahumbe, pcreech
Target Milestone: 6.11.0Keywords: Triaged, Upgrades
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.3.0.9-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:33:38 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:
Attachments:
Description Flags
old.png which was take before upgrade
none
new.png which was the post-upgrade state none

Description Sayan Das 2022-02-17 16:45:43 UTC
Description of problem:

Upgrading the Satellite 7.0 from Snap 8 to Snap 9 , sets the CDN configuration for all Organizations in airgapped mode

Version-Release number of selected component (if applicable):

Satellite 7.0 [ snap 8 and snap 9+ ]


How reproducible:

Always with snap 8 to snap 9 upgrade

Steps to Reproduce:
1. Install snap 8 of Satellite 7.0 someway.
2. Import mainfest and Enable certain repos + sync
3. Take a look at "Content --> Subscriptions --> Manage Manifest --> CDN Configuration" page. 
4. Now, upgrade  the snap 8 instance to snap 9 using satellite-maintain or any other way.
5. Go to "Content --> Subscriptions --> Manage Manifest --> CDN Configuration" page.
6. Go to "Content --> Red Hat Repositories" page

Actual results:

Step 3, You will get to see just one option there having URL\Username\Password\Org Label\SSL CA COntent Creds [ Check attached screenshot old.png  ]

Step 5. You will get to see Three options but Air-Gapped is selected by default.  [ Check attached screenshot new.png  ]

Step 6: "CDN configuration is set to Air-gapped (disconnected). Repository enablement/disablement is not permitted on this page." 


Expected results:

Unless the disconnected_mode was enabled for the lower version of the satellite, Upgrading the Satellite to z stream of 7.0 should always point to "Red Hat CDN" configuration for the manifest. 


Additional info:

When this happens and we are not aware of the fact why, 

* We will not be able to enable any repos.

* A disconnected satellite who was perhaps consuming the content from a connected satellite using ISS, will no longer be able to enable any repos via ISS or sync the existing repos. 


The sole purpose of opening this BZ is that I suspect, those who are upgrading from Satellite 6.10 to 7.0, they could run into the same issue. I could not test this scenario due to https://bugzilla.redhat.com/show_bug.cgi?id=2053970 but I plan to test once the upgrade bug gets fixed.

Comment 1 Sayan Das 2022-02-17 16:48:20 UTC
Created attachment 1861729 [details]
old.png which was take before upgrade

Comment 2 Sayan Das 2022-02-17 16:49:00 UTC
Created attachment 1861730 [details]
new.png which was the post-upgrade state

Comment 7 Partha Aji 2022-02-28 18:59:59 UTC
Connecting redmine issue https://projects.theforeman.org/issues/34531 from this bug

Comment 8 Bryan Kearney 2022-02-28 20:05:43 UTC
Upstream bug assigned to paji

Comment 9 Bryan Kearney 2022-02-28 20:05:45 UTC
Upstream bug assigned to paji

Comment 13 Bryan Kearney 2022-03-01 20:05:32 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34531 has been resolved.

Comment 19 errata-xmlrpc 2022-07-05 14:33:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5498