Bug 965254 - [RFE] add explicit "no service level" to system CLI
Summary: [RFE] add explicit "no service level" to system CLI
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Mike McCune
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-20 19:13 UTC by sthirugn@redhat.com
Modified: 2016-10-24 12:50 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-24 12:50:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description sthirugn@redhat.com 2013-05-20 19:13:30 UTC
Description of problem:
Not able to set default SLA for an ORG in CLI

Version-Release number of selected component (if applicable):
* candlepin-0.8.7-1.el6.noarch
* candlepin-cert-consumer-ibm-x3655-02.ovirt.rhts.eng.bos.redhat.com-1.0-1.noarch
* candlepin-tomcat6-0.8.7-1.el6.noarch
* elasticsearch-0.19.9-7.el6.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.4.2-1.el6.noarch
* katello-cli-1.4.2-1.git.48.441089b.el6.noarch
* katello-cli-common-1.4.2-1.git.48.441089b.el6.noarch
* katello-common-1.4.2-1.git.352.c97daf2.el6.noarch
* katello-configure-1.4.3-1.git.21.0134f7d.el6.noarch
* katello-glue-candlepin-1.4.2-1.git.352.c97daf2.el6.noarch
* katello-glue-elasticsearch-1.4.2-1.git.352.c97daf2.el6.noarch
* katello-headpin-1.4.2-1.git.352.c97daf2.el6.noarch
* katello-headpin-all-1.4.2-1.git.352.c97daf2.el6.noarch
* Katello-Katello-Installation-RegisterRHNClassic-1.1-3.noarch
* Katello-Katello-Sanity-ImportKeys-1.2-1.noarch
* katello-repos-1.4.2-1.el6.noarch
* katello-selinux-1.4.3-1.git.3.ce8227b.el6.noarch
* thumbslug-0.0.27-1.el6.noarch
* thumbslug-selinux-0.0.27-1.el6.noarch


How reproducible:
Always

Steps to Reproduce:
1. Install headpin-nightly
2. Upload a manifest
3. Try setting default SLA for an ORG in UI.  Options shown are 
a. 'Service Level None' 
b. 'No Service Level Preference'
4. Selecting either of the above and saving works fine
5. Now go to cli and log in to headpin shell and try the following commands:
#org update --name ACME_Corporation --servicelevel='No Service Level Preference'
Service level 'No Service Level Preference' is not available to consumers of organization ACME_Corporation.

#org update --name ACME_Corporation --servicelevel='Service Level None'
Service level 'Service Level None' is not available to consumers of organization ACME_Corporation.

Actual results:
An error is thrown as shown above

Expected results:
User should be able to set default SLA for an ORG in CLI

Additional info:
The following command works though:
#org update --name ACME_Corporation --servicelevel='None'
Successfully updated organization [ ACME_Corporation ]

Now it is confusing for the user on what value should be passed to --servicelevel argument in CLI.  May be the --help command needs to instruct user on how to go about using this command.

Comment 1 Tom McKay 2013-05-20 19:18:42 UTC
NOTE: work-around is to specify '' (empty string) to switch to no preference)

This, in fact, may be working as expected. What should valid values be to set to none? What about i18n?

Comment 3 Tom McKay 2013-10-02 16:54:47 UTC
Changing to RFE to allow explicit setting of "no service level"

Comment 9 sthirugn@redhat.com 2016-10-24 12:50:36 UTC
Actually we don't have a `servicelevel` option in hammer anymore. Closing this bug.


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