RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1993897 - [RFE] subscription-manager should return a module stream's "activity" in the modular profile [rhel-8.4.0.z]
Summary: [RFE] subscription-manager should return a module stream's "activity" in the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Ian Ballou
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 1988090
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-16 11:09 UTC by RHEL Program Management Team
Modified: 2021-09-21 08:48 UTC (History)
5 users (show)

Fixed In Version: subscription-manager-1.28.13-4.el8_4
Doc Type: Enhancement
Doc Text:
Clone Of: 1988090
Environment:
Last Closed: 2021-09-21 08:41:34 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-93618 0 None None None 2021-08-16 11:09:55 UTC
Red Hat Product Errata RHBA-2021:3586 0 None None None 2021-09-21 08:41:35 UTC

Comment 6 John Sefler 2021-08-30 20:12:56 UTC
VERIFICATION using RHEL-8.4.0-updates-20210803.2 and a manual update to subscription-manager-1.28.13-4.el8_4

**  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **
                 This System is reserved by jsefler.

 To return this system early. You can run the command: return2beaker.sh
  Ensure you have your logs off the system before returning to Beaker

 To extend your reservation time. You can run the command:
  extendtesttime.sh
 This is an interactive script. You will be prompted for how many
  hours you would like to extend the reservation.
 Please ensure that you adhere to the reservation policy
  for Beaker systems:
  https://home.corp.redhat.com/wiki/extended-reservations-beaker-general-pool-systems

 You should verify the watchdog was updated succesfully after
  you extend your reservation.
  https://beaker.engineering.redhat.com/recipes/10572464

 For ssh, kvm, serial and power control operations please look here:
  https://beaker.engineering.redhat.com/view/ibm-z-109.rhts.eng.bos.redhat.com

 For the default root password, see:
  https://beaker.engineering.redhat.com/prefs/

      Beaker Test information:
                         HOSTNAME=ibm-z-109.rhts.eng.bos.redhat.com
                            JOBID=5754087
                         RECIPEID=10572464
                    RESULT_SERVER=
                           DISTRO=RHEL-8.4.0-updates-20210803.2
                     ARCHITECTURE=s390x

      Job Whiteboard: RHEL-8.4.0-updates-20210803.2 BaseOS s390x

      Recipe Whiteboard: 
**  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **
[root@ibm-z-109 ~]#
[root@ibm-z-109 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.20-1
subscription management rules: 5.41
subscription-manager: 1.28.13-3.el8_4
[root@ibm-z-109 ~]#

MANUAL UPGRADE TO subscription-manager-1.28.13-4.el8_4 (STEPS NOT SHOWN)

[root@ibm-z-109 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.20-1
subscription management rules: 5.41
subscription-manager: 1.28.13-4.el8_4
[root@ibm-z-109 ~]# 
[root@ibm-z-109 ~]# rpm -q subscription-manager --changelog | grep 1993897
- 1993897 - [RFE] subscription-manager should return a module stream's
[root@ibm-z-109 ~]# 
[root@ibm-z-109 ~]# 
[root@ibm-z-109 ~]# subscription-manager config --logging.default=DEBUG
[root@ibm-z-109 ~]# subscription-manager config --rhsm.report_package_profile=1
[root@ibm-z-109 ~]# subscription-manager config --rhsm.package_profile_on_trans=1
[root@ibm-z-109 ~]# 
[root@ibm-z-109 ~]# subscription-manager register --auto-attach
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: rhelentqe
Password: 
The system has been registered with ID: 014a082e-d391-4f88-bead-76d737e31bc6
The registered system name is: ibm-z-109.rhts.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for IBM z Systems
Status:       Subscribed

[root@ibm-z-109 ~]# dnf module list perl
Updating Subscription Management repositories.
Last metadata expiration check: 0:06:22 ago on Mon 30 Aug 2021 03:48:27 PM EDT.
Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs)
Name    Stream        Profiles              Summary                                   
perl    5.24          common [d], minimal   Practical Extraction and Report Language  
perl    5.26 [d][e]   common [d], minimal   Practical Extraction and Report Language  
perl    5.30          common [d], minimal   Practical Extraction and Report Language  

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[root@ibm-z-109 ~]# 

[root@ibm-z-109 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "enabled",           <======== VERIFIED
            "active": true           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== VERIFIED
            "active": false           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.24",
            "version": "820190207164249",
            "context": "ee766497",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== VERIFIED
            "active": false           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8030020200609055348",
            "context": "568f3a16",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== VERIFIED
            "active": false           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== VERIFIED
            "active": false           <======== VERIFIED
        },
[root@ibm-z-109 ~]# 

VERIFIED: stream 5.26 is the default and enabled stream; it is active which is in agreement with dnf module list


[root@ibm-z-109 ~]# dnf module reset perl --assumeyes --quiet 2>/tmp/stderr
[root@ibm-z-109 ~]# dnf module list perl
Updating Subscription Management repositories.
Last metadata expiration check: 0:12:52 ago on Mon 30 Aug 2021 03:48:27 PM EDT.
Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs)
Name    Stream      Profiles               Summary                                    
perl    5.24        common [d], minimal    Practical Extraction and Report Language   
perl    5.26 [d]    common [d], minimal    Practical Extraction and Report Language   
perl    5.30        common [d], minimal    Practical Extraction and Report Language   

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[root@ibm-z-109 ~]# 
[root@ibm-z-109 ~]# 
[root@ibm-z-109 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",          <======== VERIFIED
            "active": false          <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",          <======== VERIFIED
            "active": false          <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.24",
            "version": "820190207164249",
            "context": "ee766497",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",          <======== VERIFIED
            "active": false          <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8030020200609055348",
            "context": "568f3a16",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",          <======== VERIFIED
            "active": false          <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",          <======== VERIFIED
            "active": false          <======== VERIFIED
        },
[root@ibm-z-109 ~]# 

VERIFIED: After reseting the perl modules, all streams are inactive which is in agreement with dnf module list

[root@ibm-z-109 ~]# dnf module enable perl:5.30 --assumeyes --quiet 2>/tmp/stderr
[root@ibm-z-109 ~]# dnf module list perl 2>/tmp/stderr
Updating Subscription Management repositories.
Last metadata expiration check: 0:18:24 ago on Mon 30 Aug 2021 03:48:27 PM EDT.
Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs)
Name    Stream      Profiles               Summary                                    
perl    5.24        common [d], minimal    Practical Extraction and Report Language   
perl    5.26 [d]    common [d], minimal    Practical Extraction and Report Language   
perl    5.30 [e]    common [d], minimal    Practical Extraction and Report Language   

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[root@ibm-z-109 ~]# 
[root@ibm-z-109 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",          <======== VERIFIED
            "active": false          <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "enabled",          <======== VERIFIED
            "active": true          <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.24",
            "version": "820190207164249",
            "context": "ee766497",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",          <======== VERIFIED
            "active": false          <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8030020200609055348",
            "context": "568f3a16",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "enabled",          <======== VERIFIED
            "active": true          <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "s390x",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",          <======== VERIFIED
            "active": false          <======== VERIFIED
        },
[root@ibm-z-109 ~]# 

VERIFIED: perl stream 5.30 is now the enabled and active stream which is in agreement with dnf module list


Moving to VERIFIED

Comment 10 errata-xmlrpc 2021-09-21 08:41:34 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 (subscription-manager bug fix and enhancement update), 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/RHBA-2021:3586


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