Bug 1988090
| Summary: | [RFE] subscription-manager should return a module stream's "activity" in the modular profile | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Ian Ballou <iballou> | |
| Component: | subscription-manager | Assignee: | Ian Ballou <iballou> | |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 8.4 | CC: | jsefler, redakkan, toneata | |
| Target Milestone: | rc | Keywords: | FutureFeature, Triaged, ZStream | |
| Target Release: | 8.5 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | subscription-manager-1.28.21-1.el8 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1993897 (view as bug list) | Environment: | ||
| Last Closed: | 2021-11-09 19:37:58 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1969483, 1993897 | |||
|
Comment 3
Ian Ballou
2021-07-29 18:04:44 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. 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.
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 |