Bug 1882690

Summary: Redhat repos are no longer listed completely
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: RepositoriesAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: ktordeur, mmccune, rdonca, saydas, tpapaioa
Target Milestone: 6.9.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1899313 (view as bug list) Environment:
Last Closed: 2021-04-21 13:17:46 UTC Type: ---
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
tfm-rubygem-katello-3.16.0.13-2.HOTFIXRHBZ1882690.el7sat.noarch.rpm
none
production.log from failed list of available repositories none

Description Justin Sherrill 2020-09-25 10:41:36 UTC
On foreman 1.24.3 it works as usual.
But if I load the same manifest on a foreman 2.1  I only get to see a few versions of repos, sometimes only some versions are missing, sometimes every version.
I also noticed that the time until the results appear is much longer. Before it was 5 seconds now it is 60 seconds until the contents are displayed. 

No log information found. 

One Pic is from Foreman 1.24 the other with less versions is from Foreman 2.1

!Screenshot_20200820_165449.png!

!Screenshot_20200820_165514.png!

Comment 1 Justin Sherrill 2020-09-25 10:41:43 UTC
Created from redmine issue https://projects.theforeman.org/issues/30694

Comment 2 Justin Sherrill 2020-09-25 10:41:45 UTC
Upstream bug assigned to jsherril

Comment 3 Justin Sherrill 2020-09-25 10:49:38 UTC
Note that this is similar to https://bugzilla.redhat.com/show_bug.cgi?id=1838917  but after applying that fix, things were still not working properly.

The behavior seen was slightly different, and only happened with an http proxy.  It may not be 100% reproducible.  

To reproduce:

1. Install satellite 6.8.
2. Add manifest file.
3- Configure a global content proxy
4- Expand a bunch of repos (rhel 6, rhel 7, etc...) the more resulting repos the better.  Make sure all expected releases show up

Comment 4 Bryan Kearney 2020-09-28 20:05:13 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30694 has been resolved.

Comment 5 Justin Sherrill 2020-11-12 21:14:53 UTC
*** Bug 1894441 has been marked as a duplicate of this bug. ***

Comment 6 Mike McCune 2020-11-16 23:15:40 UTC
Satellite 6.8.1 is due out soon and we are offering a hotfix that is applicable to Satellite 6.8.1. 

*** Satellite 6.8.1 Hotfix Available ***

1) Download tfm-rubygem-katello-3.16.0.13-2.HOTFIXRHBZ1882690.el7sat.noarch.rpm from this bugzilla to your Satellite

2) stop services:

satellite-maintain service stop

3) Install:

rpm -Uvh tfm-rubygem-katello-3.16.0.13-2.HOTFIXRHBZ1882690.el7sat.noarch.rpm

4) restart:

satellite-maintain service start

5) resume operations

Comment 7 Mike McCune 2020-11-16 23:16:28 UTC
Created attachment 1729917 [details]
tfm-rubygem-katello-3.16.0.13-2.HOTFIXRHBZ1882690.el7sat.noarch.rpm

Comment 8 Brad Buckingham 2021-01-08 21:59:22 UTC
The fix for this bugzilla is in Satellite 6.9 (and earlier 6.8.z); therefore, aligning to release and updating state.

Comment 9 Tasos Papaioannou 2021-01-21 14:55:53 UTC
Tested on 6.9.0 snap 9.0. Importing a manifest isn't populating the available repositories. After import, if I expand any of the repositories shown under Content > Red Hat Repositories, I only see 'No repositories available.' for most of the repositories. The only exception is for Some of the RHEL 8 repositories, which show 'x86_64' as selectable, e.g.,

Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs)
satellite-tools-6.8-for-rhel-8-x86_64-rpms

Clicking on one of those gives me an inline error notification like this:

CDN loading error: access forbidden to https://cdn.redhat.com:443/content/dist/layered/rhel8/x86_64/sat-tools/6.8/os/repodata/repomd.xml

Once I refresh the manifest, all of the repositories appear and can be selected without error. I see the same behavior on 6.8.2 and 6.8.3 as well.

Comment 10 Tasos Papaioannou 2021-01-21 15:28:05 UTC
Created attachment 1749433 [details]
production.log from failed list of available repositories

Comment 11 Justin Sherrill 2021-01-21 15:41:42 UTC
Hey Tasos, 

it sounds like your manifest was out of date and needed to be refreshed.  We've put some work into trying to make it clear if a manifest is not 'valid', but we may need to do more work there.  However i think that is out of the scope of this bz, as the problem this covers happened with a valid manifest, where by you would see some subset of repos.

And it is possible for a manifest to be partially expired/partially current, where by some repo sets can be listed and some cannot.

Comment 12 Tasos Papaioannou 2021-01-21 15:49:28 UTC
Ok, I'm looking into the manifests I've been using and I'll see if a newer one fixes the issue. Setting back to ON_QA.

Comment 13 Tasos Papaioannou 2021-01-21 17:26:19 UTC
Verified with a new manifest.

Comment 16 errata-xmlrpc 2021-04-21 13:17:46 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.9 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-2021:1313