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 1020423 - help message for attach --servicelevel should be changed to be in sync with other modules
Summary: help message for attach --servicelevel should be changed to be in sync with o...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jesus M. Rodriguez
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2013-10-17 16:00 UTC by Shwetha Kallesh
Modified: 2014-06-18 00:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 09:26:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Shwetha Kallesh 2013-10-17 16:00:09 UTC
Description of problem:
help message for attach --servicelevel should be changed to be in sync with other modules

Version-Release number of selected component (if applicable):
[root@localhost ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.29-1
subscription-manager: 1.10.3-1.git.3.d610508.el7
python-rhsm: 1.10.3-1.git.0.6ac2883.el7


How reproducible:


Steps to Reproduce:
1.[root@localhost ~]# subscription-manager attach --help | grep 'servicelevel' -A1
  --servicelevel=SERVICE_LEVEL
                        service level to apply to this system

2.[root@localhost ~]# subscription-manager attach --pool 8ac6a3a241bae96a0141baea35901305 --servicelevel premium
Error: Must use --auto with --servicelevel.

3.

Actual results:
--servicelevel=SERVICE_LEVEL
                        service level to apply to this system


Expected results:

--servicelevel=SERVICE_LEVEL
                        service level to apply to this system, only used
                        with --auto


Additional info:

Comment 2 Shwetha Kallesh 2013-10-17 16:35:56 UTC
[root@localhost ~]# subscription-manager register --servicelevel premium --force
Error: Must use --auto-attach with --servicelevel.

Actual:

[root@localhost ~]# subscription-manager register --help | grep servicelevel -A1
  --servicelevel=SERVICE_LEVEL
                        system preference used when subscribing automatically

Expected: 

[root@localhost ~]# subscription-manager register --help | grep servicelevel -A1
  --servicelevel=SERVICE_LEVEL
                        system preference used when subscribing automatically, only used with --auto-attach


[root@localhost ~]# subscription-manager service-level --org=admin
Error: --org is only supported with the --list option

Actual:

[root@localhost ~]# subscription-manager service-level --help | grep org -A1
  --org=ORG_KEY         specify an organization when listing available service
                        levels using the organization key

Expected:

[root@localhost ~]# subscription-manager service-level --help | grep org -A1
  --org=ORG_KEY         specify an organization when listing available service
                        levels using the organization key, only used with --list

Comment 3 Jesus M. Rodriguez 2014-01-30 19:48:10 UTC
PR posted

https://github.com/candlepin/subscription-manager/pull/889

Comment 4 Jesus M. Rodriguez 2014-01-30 21:28:21 UTC
fixed by 02181b3ee4878e5c1475fd6acfaf71e076a2405d

Comment 6 Rehana 2014-02-04 16:15:17 UTC
Retested,i see that only 2 out of 3 issues mentioned in the bug are fixed.

1. help for --servie-level ( as per bug description)

subscription-manager attach --help | grep 'servicelevel' -A1
  --servicelevel=SERVICE_LEVEL
                        service level to apply to this system, requires --auto

result:
Observed that now it displayed the usage details


2.help for service-level --org

 subscription-manager service-level --org=admin
Error: --org is only supported with the --list option

[root@hp-ml350egen8-01 ~]#  subscription-manager service-level --help | grep org -A1
  --org=ORG_KEY         specify an organization when listing available service
                        levels using the organization key, only used with
                        --list
result:
Observed that now it displayed the usage details

3.BUT the fix is not in for the regsiter --service-level help

[root@hp-ml350egen8-01 ~]# subscription-manager register --servicelevel premium --force
Error: Must use --auto-attach with --servicelevel.

Actual results:
--------------
[root@hp-ml350egen8-01 ~]# 
[root@hp-ml350egen8-01 ~]# subscription-manager register --help | grep servicelevel -A1
  --servicelevel=SERVICE_LEVEL
                        system preference used when subscribing automatically,

here the usage help text is missing

Expected result:
# subscription-manager register --help | grep servicelevel -A1
  --servicelevel=SERVICE_LEVEL
                        system preference used when subscribing automatically, only used with --auto-attach

tested version:
subscription-manager version
server type: Red Hat Subscription Management
subscription management server: Unknown
subscription-manager: 1.10.13-1.el7
python-rhsm: 1.10.12-1.el7


Hence Moving this bug to New

Comment 7 Jesus M. Rodriguez 2014-02-07 16:14:01 UTC
Try using -A2 on your grep command. The help line is wrapping.

Using -A1 fails as you state:


# subscription-manager register --help | grep servicelevel -A1
  --servicelevel=SERVICE_LEVEL
                        system preference used when subscribing automatically,

but using -A2 you see the rest of the line.

# subscription-manager register --help | grep servicelevel -A2
  --servicelevel=SERVICE_LEVEL
                        system preference used when subscribing automatically,
                        requires --auto-attach

Comment 8 Sharath Dwaral 2014-02-07 17:29:23 UTC
Version:

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: Unknown
subscription-manager: 1.10.13-1.el7
python-rhsm: 1.10.12-1.el7


Verification:

# subscription-manager attach --help | grep 'servicelevel' -A3
  --servicelevel=SERVICE_LEVEL
                        service level to apply to this system, requires --auto

# subscription-manager attach --pool 8ac6a3a241bae96a0141baea35901305 --servicelevel premium
Error: Must use --auto with --servicelevel.

# subscription-manager register --help | grep servicelevel -A3
  --servicelevel=SERVICE_LEVEL
                        system preference used when subscribing automatically,
                        requires --auto-attach

# subscription-manager service-level --org=admin
Error: --org is only supported with the --list option

#  subscription-manager service-level --help | grep org -A3
  --org=ORG_KEY         specify an organization when listing available service
                        levels using the organization key, only used with
                        --list

VERIFIED

Comment 9 Ludek Smid 2014-06-13 09:26:43 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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