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 1994056 - Subscription manager should accept multiple content views (Environment)
Summary: Subscription manager should accept multiple content views (Environment)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 8.6
Assignee: William Poteat
QA Contact: Red Hat subscription-manager QE Team
Jacob Taylor Valdez
URL:
Whiteboard:
Depends On:
Blocks: 1995032
TreeView+ depends on / blocked
 
Reported: 2021-08-16 15:26 UTC by Rehana
Modified: 2022-05-10 16:39 UTC (History)
3 users (show)

Fixed In Version: subscription-manager-1.28.27-1.el8
Doc Type: Enhancement
Doc Text:
.`subscription-manager` now supports multi-environment operations With this update, administrators are now able to assign a list of environments to a system, ordered from highest to lowest priority, at registration time and change that list as necessary. This provides access to content from all assigned environments. Content available from more than one assigned environment is provided from the environment with the highest priority. This update changes the `environment` subcommand to `environments` and supports the following new options: * `--set`: Sets a comma-separated list of environments for the consumer from highest to lowest priority * `--list`: Displays an ordered list of all environments that belong to the organization * `--list-enabled`: Displays an ordered list of environments currently assigned to the system * `--list-disabled`: Displays a list of environments that belong to the organization but are not assigned to the system
Clone Of:
: 1995032 (view as bug list)
Environment:
Last Closed: 2022-05-10 15:22:56 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 2937 0 None Merged 1994056: Multiple environment capability [1.28] 2022-02-14 17:46:25 UTC
Red Hat Issue Tracker RHELPLAN-93724 0 None None None 2021-08-16 15:28:55 UTC
Red Hat Issue Tracker SAT-580 0 None None None 2021-08-17 13:12:07 UTC
Red Hat Product Errata RHBA-2022:2047 0 None None None 2022-05-10 15:23:20 UTC

Comment 10 John Sefler 2022-02-22 18:20:51 UTC
Verifying subscription-manager-1.28.28-1.el8.x86_64 in RHEL compose RHEL-8.6.0-20220220.3...

**  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **
      Beaker Test information:
                         HOSTNAME=kvm-05-guest03.hv2.lab.eng.bos.redhat.com
                            JOBID=6330390
                         RECIPEID=11506605
                    RESULT_SERVER=
                           DISTRO=RHEL-8.6.0-20220220.3
                     ARCHITECTURE=x86_64
**  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **
[root@kvm-05-guest03 ~]# 
[root@kvm-05-guest03 ~]# rpm -q subscription-manager
subscription-manager-1.28.28-1.el8.x86_64
[root@kvm-05-guest03 ~]# rpm -q --changelog subscription-manager | grep 1994056
- 1994056: Multiple environment capability (wpoteat)
[root@kvm-05-guest03 ~]# 

Note: This new environments capability is visible in subscription-manager as a new "--environments" option in the register module (replacing the former "--environment" option)...

[root@kvm-05-guest03 ~]# subscription-manager register --help | grep "environment"
  --environments ENVIRONMENTS                                                 <=== NEW
                        register with a specific environment (single value) or
                        multiple environments (a comma-separated list) in the
                        environments is controlled by the entitlement server

Note: New options have also been added to the existing environments module...

[root@kvm-05-guest03 ~]# subscription-manager environments --help | grep environments -A1
usage: subscription-manager environments [OPTIONS]

Display the environments available for a user

--
  --set SET             set an ordered comma-separated list of environments  <=== NEW
                        for this consumer
  --list                list all environments for the organization           <=== NEW
  --list-enabled        list the environments enabled for this consumer in   <=== NEW
                        order
  --list-disabled       list the environments not enabled for this consumer  <=== NEW

Note: This new capability is dependent on the capabilities of the entitlement server which is not provided by the default hosted subscription.rhsm.redhat.com.

[root@kvm-05-guest03 ~]# subscription-manager register --environments="foo"
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: rhelentqe
Password: 
Error: Server does not support environments.
[root@kvm-05-guest03 ~]# 
[root@kvm-05-guest03 ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: rhelentqe
Password: 
The system has been registered with ID: 940ebb27-3945-40ab-9131-bc3dfbba44b0
The registered system name is: kvm-05-guest03.hv2.lab.eng.bos.redhat.com
[root@kvm-05-guest03 ~]# 
[root@kvm-05-guest03 ~]# subscription-manager environments --set="foo"
Error: Server does not support environments.
[root@kvm-05-guest03 ~]# 
[root@kvm-05-guest03 ~]# subscription-manager environments --list
Error: Server does not support environments.
[root@kvm-05-guest03 ~]# 
[root@kvm-05-guest03 ~]# subscription-manager environments --list-enabled
Error: Server does not support environments.
[root@kvm-05-guest03 ~]# 
[root@kvm-05-guest03 ~]# subscription-manager environments --list-disabled
Error: Server does not support environments.
[root@kvm-05-guest03 ~]# 


VERIFIED: For the sake of ON_QA verification, the RHEL composes targeting RHEL8.6 now include subscription-manager-1.28.28-1.el8 which includes support for multi-environment capable entitlement servers such as planned in the next release of Satellite.  More detailed testing comparable to comment 4 comment 5 and comment 6 can occur against Satellite once it is updated with a "multi_environment" capable Candlepin server.

Comment 12 Jacob Taylor Valdez 2022-03-30 07:53:52 UTC
doc text has been acked by SME's and peer-review, setting rdt to +

Comment 14 errata-xmlrpc 2022-05-10 15:22:56 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-2022:2047


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