Bug 1876397

Summary: [ALL LANG][RHSM CLI] Redundant number '8' after Usage for each CLI.
Product: Red Hat Enterprise Linux 8 Reporter: Lijun Li <lijli>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: low    
Version: 8.3CC: csnyder, qe-i18n-bugs, redakkan
Target Milestone: rcKeywords: i18n
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-17 18:38:35 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:
Attachments:
Description Flags
output of set none

Description Lijun Li 2020-09-07 07:05:11 UTC
Description of problem:
[ALL LANG][RHSM] Redundant number '8' after Usage for each CLI.

Version-Release number of selected component (if applicable):
subscription-manager-1.27.15-1.el8

How reproducible:
100%

Steps to Reproduce:
[root@localhost ~]# LANG=en_US.utf-8 subscription-manager -h
Usage: 8 MODULE-NAME [MODULE-OPTIONS] [--help]
     ^^^^^^Redundant number 8^^^^^^^^^^^^^

Actual results:
Redundant number '8' after Usage for each CLI.

Expected results:
It should be removed.


Additional info:

Comment 3 Rehana 2020-09-21 08:46:47 UTC
Hi Lijun,

Please find the version details below 

# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.1.19-1
subscription management rules: 5.41
subscription-manager: 1.27.16-1.el8

# LANG=en_US.utf-8 subscription-manager -h
Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help]

Primary Modules: 

  attach         Attach a specified subscription to the registered system
  list           List subscription and product information for this system
  refresh        Pull the latest subscription data from the server
  register       Register this system to the Customer Portal or another
                 subscription management service
  release        Configure which operating system release to use
  remove         Remove all or specific subscriptions from this system
  status         Show status information for this system's subscriptions and
                 products
  unregister     Unregister this system from the Customer Portal or another
                 subscription management service

Other Modules:   

  addons         Modify or view the addons attribute of the system purpose
  auto-attach    Set if subscriptions are attached on a schedule (default of
                 daily)
  clean          Remove all local system and subscription data without affecting
                 the server
  config         List, set, or remove the configuration parameters in use by
                 this system
  environments   Display the environments available for a user
  facts          View or update the detected system information
  identity       Display the identity certificate for this system or request a
                 new one
  import         Import certificates which were provided outside of the tool
  orgs           Display the organizations against which a user can register a
                 system
  plugins        View and configure with 'subscription-manager plugins'
  redeem         Attempt to redeem a subscription for a preconfigured system
  repo-override  Manage custom content repository settings
  repos          List the repositories which this system is entitled to use
  role           Modify system purpose role
  service-level  Manage service levels for this system
  subscribe      Deprecated, see attach
  unsubscribe    Deprecated, see remove
  usage          Manage usage setting for this system
  version        Print version information

Comment 4 Lijun Li 2020-09-22 02:19:14 UTC
(In reply to Rehana from comment #3)
> Hi Lijun,
> 
> Please find the version details below 
> 
> # subscription-manager version
> server type: This system is currently not registered.
> subscription management server: 3.1.19-1
> subscription management rules: 5.41
> subscription-manager: 1.27.16-1.el8
> 
> # LANG=en_US.utf-8 subscription-manager -h
> Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help]
> 
> Primary Modules: 
> 
>   attach         Attach a specified subscription to the registered system
>   list           List subscription and product information for this system
>   refresh        Pull the latest subscription data from the server
>   register       Register this system to the Customer Portal or another
>                  subscription management service
>   release        Configure which operating system release to use
>   remove         Remove all or specific subscriptions from this system
>   status         Show status information for this system's subscriptions and
>                  products
>   unregister     Unregister this system from the Customer Portal or another
>                  subscription management service
> 
> Other Modules:   
> 
>   addons         Modify or view the addons attribute of the system purpose
>   auto-attach    Set if subscriptions are attached on a schedule (default of
>                  daily)
>   clean          Remove all local system and subscription data without
> affecting
>                  the server
>   config         List, set, or remove the configuration parameters in use by
>                  this system
>   environments   Display the environments available for a user
>   facts          View or update the detected system information
>   identity       Display the identity certificate for this system or request
> a
>                  new one
>   import         Import certificates which were provided outside of the tool
>   orgs           Display the organizations against which a user can register
> a
>                  system
>   plugins        View and configure with 'subscription-manager plugins'
>   redeem         Attempt to redeem a subscription for a preconfigured system
>   repo-override  Manage custom content repository settings
>   repos          List the repositories which this system is entitled to use
>   role           Modify system purpose role
>   service-level  Manage service levels for this system
>   subscribe      Deprecated, see attach
>   unsubscribe    Deprecated, see remove
>   usage          Manage usage setting for this system
>   version        Print version information

That's strange, I upgraded it to the latest rhsm 1.27.16 build but the number still is there. I will double check on the next release build.

# LANG=en_US.UTF-8 subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.1.19-1
subscription management rules: 5.41
subscription-manager: 1.27.16-1.el8
# LANG=en_US.UTF-8 subscription-manager -h
Usage: 8 MODULE-NAME [MODULE-OPTIONS] [--help]

Comment 9 Rehana 2020-10-20 13:57:02 UTC
It looks like there is some environment value influencing here, can you please type "set" on a terminal and share the result.
ex: #set 

Please share the entire output ( alert its a long list :) ) .

thanks,
Rehana

Comment 10 Lijun Li 2020-10-21 02:32:04 UTC
(In reply to Rehana from comment #9)
> It looks like there is some environment value influencing here, can you
> please type "set" on a terminal and share the result.
> ex: #set 
> 
> Please share the entire output ( alert its a long list :) ) .
> 
> thanks,
> Rehana

Please see the attached output of set.txt.

Thanks,
Robert

Comment 11 Lijun Li 2020-10-21 02:34:16 UTC
Created attachment 1723065 [details]
output of set

Comment 12 Lijun Li 2021-02-25 09:53:24 UTC
Verified it's fixed on latest rhel8.4 build, please see below.

[root@localhost ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.4 Beta (Ootpa)
[root@localhost ~]# LANG=en_US.utf-8 subscription-manager -h
Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help]

Comment 13 Rehana 2021-02-25 11:48:42 UTC
Based on comment 12 , moving to on_qa . 

Lijun , 

Can you please verify the bug .

thanks,
Rehana

Comment 14 Lijun Li 2021-03-01 01:30:46 UTC
(In reply to Rehana from comment #13)
> Based on comment 12 , moving to on_qa . 
> 
> Lijun , 
> 
> Can you please verify the bug .
> 
> thanks,
> Rehana

Sure Rehana, based on comment 12, moving it to VERIFIED.

Comment 16 Pino Toscano 2022-02-17 18:38:35 UTC
Fixed in 8.4, closing based on the above comments.