Hide Forgot
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:
[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
PR posted https://github.com/candlepin/subscription-manager/pull/889
fixed by 02181b3ee4878e5c1475fd6acfaf71e076a2405d
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
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
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
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.