Bug 1796088
| Summary: | [RFE]: subscription-manager refresh needs a light version | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | William Poteat <wpoteat> |
| Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.9 | CC: | bcourt, candlepin-bugs, csnyder, jhnidek, jsefler, redakkan, rhsm-qe, rjerrido, skallesh, tasander |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: |
Draft of documentation text:
The default behavior of "subscription-manager refresh" command was modified and a new option "--force" was added.
By default, this command no longer regenerates new entitlement certificates on subscription management service before downloading them. Now, it only downloads new copies of the existing entitlement certificates from subscription management service. If the old behavior is required (complete regeneration of entitlement certificates), then you must also pass the new "--force" option.
|
Story Points: | --- |
| Clone Of: | 1794826 | Environment: | |
| Last Closed: | 2020-09-29 19:22:47 UTC | Type: | --- |
| 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: | 1794826, 1796188 | ||
|
Description
William Poteat
2020-01-29 15:25:24 UTC
Verification :
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.9.21-1
subscription management rules: 5.37
subscription-manager: 1.24.32
Help message should display new force option:
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager refresh -h
Usage: subscription-manager refresh [OPTIONS]
Pull the latest subscription data from the server
Options:
-h, --help show this help message and exit
--proxy=PROXY_URL proxy URL in the form of proxy_hostname:proxy_port
--proxyuser=PROXY_USER
user for HTTP proxy with basic authentication
--proxypassword=PROXY_PASSWORD
password for HTTP proxy with basic authentication
--noproxy=NO_PROXY host suffixes that should bypass HTTP proxy
--force force certificate regeneration
^^ the new --force option
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager register --serverurl subscription.rhsm.stage.redhat.com --username ****** --password ******** --auto-attach
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
The system has been registered with ID: acdf2dc2-ec68-4289-b9be-b4543e095b87
The registered system name is: hpe-dl380pgen8-02-vm-4.hpe2.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux Academic Site Subscription with Smart Management, Premium (Server, Desktop, Workstation, POWER, HPC, per FTE)
Provides: Red Hat Enterprise Linux Atomic Host
Red Hat Enterprise Linux Atomic Host Beta
Red Hat Developer Tools (for RHEL Server)
Red Hat Container Images
RHEL for SAP for Power, little endian - Extended Update Support
Red Hat Developer Tools Beta (for RHEL Server)
Red Hat Container Images Beta
RHEL for SAP HANA for Power, little endian - Extended Update Support
Red Hat Software Collections (for RHEL Server for IBM Power)
Red Hat Software Collections Beta (for RHEL Server for IBM Power)
Red Hat Software Collections (for RHEL Server for IBM Power LE)
Red Hat Enterprise Linux for Power, little endian
Red Hat Software Collections Beta (for RHEL Server for IBM Power LE)
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Resilient Storage for x86_64 - Extended Update Support
dotNET on RHEL (for RHEL Server)
Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended Update Support
dotNET on RHEL Beta (for RHEL Server)
Oracle Java (for RHEL Server)
Oracle Java (for RHEL Client)
Oracle Java (for RHEL Compute Node)
Oracle Java (for RHEL Workstation)
Red Hat Software Collections (for RHEL Server)
RHEL for SAP - Extended Update Support
Red Hat Software Collections (for RHEL Workstation)
Red Hat S-JIS Support (for RHEL Server) - Extended Update Support
Red Hat Software Collections Beta (for RHEL Server)
Red Hat Software Collections Beta (for RHEL Workstation)
Red Hat Ansible Engine
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat Developer Toolset (for RHEL Server)
Red Hat Enterprise Linux High Performance Networking (for RHEL Server) - Extended Update Support
RHEL for SAP Applications for Power BE
Red Hat Enterprise Linux Resilient Storage for IBM Power LE - Extended Update Support
Red Hat Developer Toolset (for RHEL Workstation)
RHEL for SAP Applications for Power BE EUS
Red Hat Enterprise Linux for SAP Applications for Power, little endian
RHEL for SAP Applications for Power LE EUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux for Scientific Computing
Red Hat Beta
Red Hat EUCJP Support (for RHEL Server) - Extended Update Support
Red Hat Enterprise Linux High Availability (for IBM Power LE) - Extended Update Support
dotNET on RHEL (for RHEL Workstation)
dotNET on RHEL Beta (for RHEL Workstation)
Red Hat Enterprise Linux for Power 9
Red Hat Enterprise Linux for SAP Applications for x86_64
dotNET on RHEL (for RHEL Compute Node)
dotNET on RHEL Beta (for RHEL Compute Node)
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
Red Hat CodeReady Linux Builder for Power, little endian - Extended Update Support
Red Hat Enterprise Linux High Availability for x86_64 - Extended Update Support
Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support
SKU: RH2501844 }
Contract: 12032883 } -----> Note the SKU and contract number, they should remain same after refresh with --force
Account: 6319586
Serial: 789552165554790931 -------------------> Note the serial number
Pool ID: 8a99f9ae6e15eba0016e180f5f07017c ----------> Note the pool Id , it should remain unchanged too
Provides Management: Yes
Active: True
Quantity Used: 1
Service Type: L1-L3
Roles:
Service Level: Premium
Usage: Production
Add-ons:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 10/29/2019
Ends: 10/28/2020
Entitlement Type: Virtual
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager refresh --force
1 local certificate has been deleted. -------------------> Observe the message "1 local certificate has been deleted" , which should be displayed with force option as it will regenerate the entitlement
All local data refreshed
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux Academic Site Subscription with Smart Management, Premium (Server, Desktop, Workstation, POWER, HPC, per FTE)
Provides: Red Hat Enterprise Linux Atomic Host
Red Hat Enterprise Linux Atomic Host Beta
Red Hat Developer Tools (for RHEL Server)
Red Hat Container Images
RHEL for SAP for Power, little endian - Extended Update Support
Red Hat Developer Tools Beta (for RHEL Server)
Red Hat Container Images Beta
RHEL for SAP HANA for Power, little endian - Extended Update Support
Red Hat Software Collections (for RHEL Server for IBM Power)
Red Hat Software Collections Beta (for RHEL Server for IBM Power)
Red Hat Software Collections (for RHEL Server for IBM Power LE)
SKU: RH2501844 }
Contract: 12032883 } -----------------------> Observe the SKU and contract number remain same after refresh --force
Account: 6319586
Serial: 2634088288942311511 --------------------> Observe the serial number has changed after refresh with --force option , entitlement with new serial number has been generated
Pool ID: 8a99f9ae6e15eba0016e180f5f07017c ---------------------> Observe the pool id remains unchanged
Provides Management: Yes
Active: True
Quantity Used: 1
Service Type: L1-L3
Roles:
Service Level: Premium
Usage: Production
Add-ons:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 10/29/2019
Ends: 10/28/2020
Entitlement Type: Virtual
Now try to execute refresh without --force , entitlement cert should not be regenerated
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux Academic Site Subscription with Smart Management, Premium (Server, Desktop, Workstation, POWER, HPC, per FTE)
Provides: Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux for Scientific Computing
Red Hat Beta
SKU: RH2501844
Contract: 12032883
Account: 6319586
Serial: 2634088288942311511 --------------------------> Note the serial number
Pool ID: 8a99f9ae6e15eba0016e180f5f07017c
Provides Management: Yes
Active: True
Quantity Used: 1
Service Type: L1-L3
Roles:
Service Level: Premium
Usage: Production
Add-ons:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 10/29/2019
Ends: 10/28/2020
Entitlement Type: Virtual
[root@hpe-dl380pgen8-02-vm-4 ~]# vi /etc/rhsm/rhsm.conf
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager refresh
All local data refreshed
^^ The message "1 local certificate has been deleted" is not displayed anymore without --force option
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux Academic Site Subscription with Smart Management, Premium (Server, Desktop, Workstation, POWER, HPC, per FTE)
Provides: Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux for Scientific Computing
Red Hat Beta
SKU: RH2501844
Contract: 12032883
Account: 6319586
Serial: 2634088288942311511 --------------------------> Observe that serial number is same
Pool ID: 8a99f9ae6e15eba0016e180f5f07017c
Provides Management: Yes
Active: True
Quantity Used: 1
Service Type: L1-L3
Roles:
Service Level: Premium
Usage: Production
Add-ons:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 10/29/2019
Ends: 10/28/2020
Entitlement Type: Virtual
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 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-2020:3866 |