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 1988090 - [RFE] subscription-manager should return a module stream's "activity" in the modular profile
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: rc
: 8.5
Assignee: Ian Ballou
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 1969483 1993897
TreeView+ depends on / blocked
 
Reported: 2021-07-29 18:01 UTC by Ian Ballou
Modified: 2021-11-10 07:54 UTC (History)
3 users (show)

Fixed In Version: subscription-manager-1.28.21-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1993897 (view as bug list)
Environment:
Last Closed: 2021-11-09 19:37:58 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2708 0 None open 1980418: Add 'active' field to module stream profile 2021-08-06 15:30:47 UTC
Github candlepin subscription-manager pull 2723 0 None None None 2021-08-06 15:34:24 UTC
Red Hat Bugzilla 1980418 1 unspecified CLOSED Incorrect applicablity in katello 4 2021-11-16 14:12:42 UTC
Red Hat Product Errata RHBA-2021:4390 0 None None None 2021-11-09 19:38:07 UTC

Comment 12 John Sefler 2021-08-10 17:39:12 UTC
Pre-verification using a subscription-manager scratch build that includes https://github.com/candlepin/subscription-manager/pull/2708 ...

[root@kvm-07-guest23 ~]# rpm -q subscription-manager
subscription-manager-1.28.20-1.git.1.3ce43c2.el8.x86_64


[root@kvm-07-guest23 ~]# subscription-manager config --logging.default=DEBUG
[root@kvm-07-guest23 ~]# subscription-manager config --rhsm.report_package_profile=1
[root@kvm-07-guest23 ~]# subscription-manager config --rhsm.package_profile_on_trans=1
[root@kvm-07-guest23 ~]# 
[root@kvm-07-guest23 ~]# subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com --auto-attach
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_rhsmqe_testuser01
Password: 
The system has been registered with ID: e0a8feb2-6072-4400-abe5-9458d3845526
The registered system name is: kvm-07-guest23.hv2.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Status:       Subscribed


NOTE: WE ARE TESTING ON A BEAKER SYSTEM WHICH WILL MAKE USE OF THE beaker-AppStream REPO WHICH IS OKAY FOR THIS TEST



[root@kvm-07-guest23 ~]# dnf module list perl
Updating Subscription Management repositories.
Last metadata expiration check: 0:02:27 ago on Tue 10 Aug 2021 01:02:27 PM EDT.
beaker-AppStream
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@kvm-07-guest23 ~]# 
[root@kvm-07-guest23 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",
            "active": false           <======== LOOK HERE
        },
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",
            "active": false           <======== LOOK HERE
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",
            "active": false           <======== LOOK HERE
        },
[root@kvm-07-guest23 ~]# 

VERIFIED:  all three perl streams are inactive which is in agreement with dnf module list

_______________________________________________________

[root@kvm-07-guest23 ~]# dnf module disable perl --quiet 2>/tmp/stderr
Is this ok [y/N]: y
[root@kvm-07-guest23 ~]# dnf module list perl 2>/tmp/stderr
Updating Subscription Management repositories.
Last metadata expiration check: 0:05:25 ago on Tue 10 Aug 2021 01:02:27 PM EDT.
beaker-AppStream
Name        Stream             Profiles                   Summary                                        
perl        5.24 [x]           common [d], minimal        Practical Extraction and Report Language       
perl        5.26 [d][x]        common [d], minimal        Practical Extraction and Report Language       
perl        5.30 [x]           common [d], minimal        Practical Extraction and Report Language       

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[root@kvm-07-guest23 ~]# 
[root@kvm-07-guest23 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "disabled",           <======== LOOK HERE
            "active": false           <======== LOOK HERE
        },
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "disabled",           <======== LOOK HERE
            "active": false           <======== LOOK HERE
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "disabled",           <======== LOOK HERE
            "active": false           <======== LOOK HERE
        },
[root@kvm-07-guest23 ~]# 

VERIFIED:  all three perl streams are inactive and "disabled" which is in agreement with dnf module list

_______________________________________________________

[root@kvm-07-guest23 ~]# dnf module enable perl:5.24 --quiet 2>/tmp/stderr
Is this ok [y/N]: y
[root@kvm-07-guest23 ~]# dnf module list perl 2>/tmp/stderr
Updating Subscription Management repositories.
Last metadata expiration check: 0:06:56 ago on Tue 10 Aug 2021 01:02:27 PM EDT.
beaker-AppStream
Name         Stream           Profiles                    Summary                                        
perl         5.24 [e]         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@kvm-07-guest23 ~]# 
[root@kvm-07-guest23 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "enabled",           <======== LOOK HERE
            "active": true           <======== LOOK HERE
        },
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== LOOK HERE
            "active": false           <======== LOOK HERE
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== LOOK HERE
            "active": false           <======== LOOK HERE
        },
[root@kvm-07-guest23 ~]# 

VERIFIED:  stream 5.24 is enabled and active which is in agreement with dnf module list

_______________________________________________________

[root@kvm-07-guest23 ~]# dnf module disable perl:5.24 --quiet 2>/tmp/stderr
Is this ok [y/N]: y
[root@kvm-07-guest23 ~]# dnf module enable perl:5.26 --quiet 2>/tmp/stderr
Is this ok [y/N]: y
[root@kvm-07-guest23 ~]# dnf module list perl 2>/tmp/stderr
Updating Subscription Management repositories.
Last metadata expiration check: 0:12:23 ago on Tue 10 Aug 2021 01:02:27 PM EDT.
beaker-AppStream
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@kvm-07-guest23 ~]# 
[root@kvm-07-guest23 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== LOOK HERE
            "active": false           <======== LOOK HERE
        },
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "enabled",           <======== LOOK HERE
            "active": true           <======== LOOK HERE
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== LOOK HERE
            "active": false           <======== LOOK HERE
        },
[root@kvm-07-guest23 ~]# 

VERIFIED:  stream 5.26 is enabled and active which is in agreement with dnf module list

_______________________________________________________

[root@kvm-07-guest23 ~]# dnf module disable perl:5.26 --quiet 2>/tmp/stderr
Is this ok [y/N]: y
[root@kvm-07-guest23 ~]# dnf module enable perl:5.30 --quiet 2>/tmp/stderr
Is this ok [y/N]: y
[root@kvm-07-guest23 ~]# dnf module list perl 2>/tmp/stderr
Updating Subscription Management repositories.
Last metadata expiration check: 0:15:35 ago on Tue 10 Aug 2021 01:02:27 PM EDT.
beaker-AppStream
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@kvm-07-guest23 ~]# 
[root@kvm-07-guest23 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== LOOK HERE
            "active": false           <======== LOOK HERE
        },
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== LOOK HERE
            "active": false           <======== LOOK HERE
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "enabled",           <======== LOOK HERE
            "active": true           <======== LOOK HERE
        },
[root@kvm-07-guest23 ~]# 

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


Verified:Tested - the profile.json which is collected by the uploadprofile plugin (which is provided by the dnf-plugin-subscription-manager package) now includes a module stream's "activity" in the modular profile.

Comment 19 John Sefler 2021-08-24 14:50:14 UTC
NOTE: THE FOLLOWING VERIFICATION USES DISTRO=RHEL-8.5.0-20210816.n.0 WHICH DOES NOT INCLUDE subscription-manager-1.28.21-1.el8 (OR BETTER), BUT WILL BE UPGRADED BEFORE THE RHEL-8.5.0 PUBLIC BETA COMPOSE TO INCLUDE AT LEAST subscription-manager-1.28.21-2.el8.

BEFORE FINAL VERIFICATION.....................

[root@ibm-x3650m4-01-vm-15 ~]# rpm -q subscription-manager
subscription-manager-1.28.20-1.el8.x86_64
[root@ibm-x3650m4-01-vm-15 ~]# 
[root@ibm-x3650m4-01-vm-15 ~]# subscription-manager config --logging.default=DEBUG
[root@ibm-x3650m4-01-vm-15 ~]# subscription-manager config --rhsm.report_package_profile=1
[root@ibm-x3650m4-01-vm-15 ~]# subscription-manager config --rhsm.package_profile_on_trans=1
[root@ibm-x3650m4-01-vm-15 ~]# 
[root@ibm-x3650m4-01-vm-15 ~]# subscription-manager register --auto-attach
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: rhelentqe
Password: 
The system has been registered with ID: 6820c6be-8330-487a-819d-fac7fa36709c
The registered system name is: ibm-x3650m4-01-vm-15.ibm2.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Status:       Subscribed

[root@ibm-x3650m4-01-vm-15 ~]# dnf module list perl
Updating Subscription Management repositories.
Last metadata expiration check: 0:01:01 ago on Tue 24 Aug 2021 09:46:13 AM EDT.
beaker-AppStream
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-x3650m4-01-vm-15 ~]# 
[root@ibm-x3650m4-01-vm-15 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown"
        },
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown"
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown"
        },
        {
[root@ibm-x3650m4-01-vm-15 ~]# 

NOTE: Notice the absence of "activity" in the profile.json for the perl modules above.  Correcting this absence is the purpose of this subscription-manager RFE Bug 1988090 to fix Satellite Bug 1980418.




FINAL VERIFICATION.....................

NOTE: Upgrade to the latest subscription-manager build subscription-manager-1.28.21-2.el8 targeted for release on rhel-8.5. (details not shown).

[root@ibm-x3650m4-01-vm-15 ~]# rpm -q subscription-manager dnf-plugin-subscription-manager
subscription-manager-1.28.21-2.el8.x86_64
dnf-plugin-subscription-manager-1.28.21-2.el8.x86_64
[root@ibm-x3650m4-01-vm-15 ~]# 
[root@ibm-x3650m4-01-vm-15 ~]# rpm -q dnf-plugin-subscription-manager --changelog | grep 1980418
- 1980418: Add 'active' field to module stream profile (ianballou67)
[root@ibm-x3650m4-01-vm-15 ~]# 
[root@ibm-x3650m4-01-vm-15 ~]# 
[root@ibm-x3650m4-01-vm-15 ~]# dnf uploadprofile
Updating Subscription Management repositories.
Last metadata expiration check: 0:22:21 ago on Tue 24 Aug 2021 09:46:13 AM EDT.
Package profile updates
        status: 1
        updates: []
        exceptions: 
        
[root@ibm-x3650m4-01-vm-15 ~]# dnf module list perl
Updating Subscription Management repositories.
Last metadata expiration check: 0:23:29 ago on Tue 24 Aug 2021 09:46:13 AM EDT.
beaker-AppStream
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-x3650m4-01-vm-15 ~]# 
[root@ibm-x3650m4-01-vm-15 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",
            "active": false           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",
            "active": false           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",
            "active": false           <======== VERIFIED
        },
[root@ibm-x3650m4-01-vm-15 ~]# 

VERIFIED:  all three perl streams are inactive which is in agreement with dnf module list

_______________________________________________________

[root@ibm-x3650m4-01-vm-15 ~]# dnf module disable perl --assumeyes --quiet 2>/tmp/stderr
[root@ibm-x3650m4-01-vm-15 ~]# dnf module list perl 2>/tmp/stderr
Updating Subscription Management repositories.
Last metadata expiration check: 0:27:25 ago on Tue 24 Aug 2021 09:46:13 AM EDT.
beaker-AppStream
Name   Stream        Profiles              Summary                                   
perl   5.24 [x]      common [d], minimal   Practical Extraction and Report Language  
perl   5.26 [d][x]   common [d], minimal   Practical Extraction and Report Language  
perl   5.30 [x]      common [d], minimal   Practical Extraction and Report Language  

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

VERIFIED:  all three perl streams are inactive and disabled which is in agreement with dnf module list

_______________________________________________________

[root@ibm-x3650m4-01-vm-15 ~]# dnf module enable perl:5.24 --assumeyes --quiet 2>/tmp/stderr
[root@ibm-x3650m4-01-vm-15 ~]# dnf module list perl 2>/tmp/stderr
Updating Subscription Management repositories.
Last metadata expiration check: 0:29:58 ago on Tue 24 Aug 2021 09:46:13 AM EDT.
beaker-AppStream
Name    Stream      Profiles               Summary                                   
perl    5.24 [e]    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-x3650m4-01-vm-15 ~]# 
[root@ibm-x3650m4-01-vm-15 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "enabled",           <======== VERIFIED
            "active": true           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== VERIFIED
            "active": false           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== VERIFIED
            "active": false           <======== VERIFIED
        },
[root@ibm-x3650m4-01-vm-15 ~]# 

VERIFIED:  stream 5.24 is enabled and active which is in agreement with dnf module list

_______________________________________________________

[root@ibm-x3650m4-01-vm-15 ~]# dnf module disable perl:5.24 --assumeyes --quiet 2>/tmp/stderr
[root@ibm-x3650m4-01-vm-15 ~]# dnf module enable perl:5.26 --assumeyes --quiet 2>/tmp/stderr
[root@ibm-x3650m4-01-vm-15 ~]# dnf module list perl 2>/tmp/stderr
Updating Subscription Management repositories.
Last metadata expiration check: 0:33:26 ago on Tue 24 Aug 2021 09:46:13 AM EDT.
beaker-AppStream
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-x3650m4-01-vm-15 ~]# 
[root@ibm-x3650m4-01-vm-15 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== VERIFIED
            "active": false           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "enabled",           <======== VERIFIED
            "active": true           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== VERIFIED
            "active": false           <======== VERIFIED
        },
[root@ibm-x3650m4-01-vm-15 ~]# 

VERIFIED:  stream 5.26 is enabled and active which is in agreement with dnf module list

_______________________________________________________

[root@ibm-x3650m4-01-vm-15 ~]# dnf module disable perl:5.26 --assumeyes --quiet 2>/tmp/stderr
[root@ibm-x3650m4-01-vm-15 ~]# dnf module enable perl:5.30 --assumeyes --quiet 2>/tmp/stderr
[root@ibm-x3650m4-01-vm-15 ~]# dnf module list perl 2>/tmp/stderr
Updating Subscription Management repositories.
Last metadata expiration check: 0:36:22 ago on Tue 24 Aug 2021 09:46:13 AM EDT.
beaker-AppStream
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-x3650m4-01-vm-15 ~]# 
[root@ibm-x3650m4-01-vm-15 ~]# cat /var/lib/rhsm/cache/profile.json | python3 -mjson.tool | grep '"name": "perl"' -B1 -A12
        {
            "name": "perl",
            "stream": "5.24",
            "version": "8010020190529084201",
            "context": "3af8e029",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== VERIFIED
            "active": false           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.26",
            "version": "820181219174508",
            "context": "9edba152",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "unknown",           <======== VERIFIED
            "active": false           <======== VERIFIED
        },
        {
            "name": "perl",
            "stream": "5.30",
            "version": "8040020200923213406",
            "context": "466ea64f",
            "arch": "x86_64",
            "profiles": [
                "common",
                "minimal"
            ],
            "installed_profiles": [],
            "status": "enabled",           <======== VERIFIED
            "active": true           <======== VERIFIED
        },
[root@ibm-x3650m4-01-vm-15 ~]# 

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

VERIFIED: the profile.json which is collected by the uploadprofile plugin (which is provided by the dnf-plugin-subscription-manager package) now includes a module stream's "activity" in the modular profile.

Comment 21 errata-xmlrpc 2021-11-09 19:37:58 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:4390


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