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 2092014 - [RFE] Increase verbosity of subscription-manager
Summary: [RFE] Increase verbosity of subscription-manager
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: subscription-manager
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: mhorky
QA Contact: Red Hat subscription-manager QE Team
Sagar Dubewar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-31 14:39 UTC by mhorky
Modified: 2022-11-15 13:13 UTC (History)
3 users (show)

Fixed In Version: subscription-manager-1.29.29-1.el9
Doc Type: Enhancement
Doc Text:
.The subscription-manager utility displays the current status of actions The `subscription-manager` utility now displays with progress information while it is processing the current operation. This is helpful when `subscription-manager` takes more than usual time to complete its operations related to server communication, for example, registration. To revert to the previous behavior, enter: ---- # subscription-manager config --rhsm.progress_messages=0 ----
Clone Of:
Environment:
Last Closed: 2022-11-15 11:19:33 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 3003 0 None Merged Increase verbosity of subscription-manager 2022-05-31 14:39:50 UTC
Github candlepin subscription-manager pull 3061 0 None Merged 2092014: Disable progress messages when sub-man RPM is not installed 2022-06-07 14:15:33 UTC
Github candlepin subscription-manager pull 3065 0 None Merged 2092014: Do not use injections in rhsm 2022-06-08 13:56:06 UTC
Red Hat Issue Tracker RHELPLAN-123776 0 None None None 2022-05-31 14:49:29 UTC
Red Hat Product Errata RHBA-2022:8341 0 None None None 2022-11-15 11:19:55 UTC

Description mhorky 2022-05-31 14:39:51 UTC
subscription-manager makes several API calls when it connects to the server and performs its operations. Some of them, registration for example, may take really long time (over twenty seconds).

To show that the program is not frozen, a progress message system has been created to show what subscription-manager does at given time. Each API endpoint is described and this information is shown to the user while waiting for server response. When it is received, the message is erased, so the final output did not change.

The work is already merged in main branch (via https://github.com/candlepin/subscription-manager/pull/3003), this bug has been created to help with its tracking.

Comment 1 Zdenek Petracek 2022-06-13 17:24:56 UTC
Pre-verifying on version:
[root@kvm-01-guest07 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.22-1
subscription management rules: 5.41
subscription-manager: 1.29.28+11.g2babf61c4-1.git.0.b651794

Verbosity is increased - pre-verification PASSED adding attachment

Comment 8 Rehana 2022-07-21 12:17:38 UTC
Verifying on :
=============
# subscription-manager version
server type: This system is currently not registered.
subscription management server: 4.0.18-2
subscription management rules: 5.41
subscription-manager: 1.29.29-1.el9

# rpm -q subscription-manager --changelog | grep 2092014
- 2092014: Do not use injections in rhsm (mhorky)
- 2092014: Disable progress messages when sub-man RPM is not installed

1) Verify the verbosity with config parameter ( "progress_messages") set to 1 --> Notice the informational messages being displayed in the terminal --> Passed (PFA : withverbosity_on.png ) 

2) Verify the verbosity with config parameter ( "progress_messages") set to 0 --> Notice the informational messages no longer appear --> Passed (PFA : withverbosity_off.png)

3) Verify the tab completion works for the new config options 

Ex : # subscription-manager config --rhsm.p<TAB><TAB>
--rhsm.package_profile_on_trans  --rhsm.plugindir                 --rhsm.progress_messages         
--rhsm.pluginconfdir             --rhsm.productcertdir   

ˆ^Notice the  "progress_messages" is listed in the details above --Passed

Ex : # subscription-manager config --rhsm.prog<TAB><TAB> --> Successfully completes to # subscription-manager config --rhsm.progress_messages   --> Passed

4. Verify the man pages updates for the new config option  --> Passed

# man rhsm.conf | grep progress_messages -A4
       progress_messages
           Set to 0 to disable progress reporting. When subscription-manager waits while fetching certificates or updating user information, it writes temporary informational messages to the standard output. This feature may not be desired in some situations, changing this option prevents those messages from being displayed.

Based on the above observations, Moving the bug to Verified!!

Comment 14 errata-xmlrpc 2022-11-15 11:19:33 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:8341


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