Bug 1883332 - subscription-manager release --list different in Satellite 6 vs. Customer Portal
Summary: subscription-manager release --list different in Satellite 6 vs. Customer Portal
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-28 19:28 UTC by Ricardo Santamaria
Modified: 2021-04-05 14:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Ricardo Santamaria 2020-09-28 19:28:35 UTC
Description of problem:
When host is registered to Customer Portal and runs 'subscription-manager release --list' is lists matching release versions available for the major release (uses /subscription API).

However when 'subscription-manager release --list' is run on a Satellite 6 host it lists all release versions available on the Satellite (uses /rhsm API). 

The output given by the Customer Portal makes more sense while output in Satellite 6 confuses (why set release for RHEL 6.5 OS to RHEL 8.1?) 

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

How reproducible:
Register same host to Customer Portal then Satellite 6 and run 'subscription-manager release --list'

Actual results:
RHEL 6 registered to Customer Portal and runs 'subscription-manager  release --list'

[root@drone68 ~]# subscription-manager release --list
+-------------------------------------------+
          Available Releases
+-------------------------------------------+
6.1
6.10
6.2
6.3
6.4
6.5
6.6
6.7
6.8
6.9
6Server

Then registered to Satellite 6.7:

[root@drone68 ~]# subscription-manager release --list
+-------------------------------------------+
          Available Releases
+-------------------------------------------+
7.2
7.8
7Server
8
8.2

Expected results:
When 'subscription-manager release --list' is run on a Satellite 6 host to list matching major releases

Additional info:

Comment 1 Alexey Masolov 2020-09-29 04:06:31 UTC
Looks like Satellite/katello gives you all releases available in a content view:

===
# cat /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.14.0.27/app/models/katello/kt_environment.rb  -n
...
   246
   247	    # Katello, which understands repository content and promotion, provides release versions based upon
   248	    # enabled repos. Headpin, which does not traverse products to the repo level, exposes all release
   249	    # versions in the manifest.
   250	    def available_releases
   251	      self.repositories.map(&:minor).compact.uniq.sort
   252	    end
   253
...
===


Note You need to log in before you can comment on or make changes to this bug.