Bug 1387653 - "hammer compute-resource image available" requires specifying id or name twice
Summary: "hammer compute-resource image available" requires specifying id or name twice
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-21 12:56 UTC by Peter Ondrejka
Modified: 2019-08-12 15:06 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 17:45:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 17216 0 None None None 2016-11-04 08:55:25 UTC

Description Peter Ondrejka 2016-10-21 12:56:39 UTC
Description of problem:

Attempting to list available images for a compute resource via Hammer on Satellite 6.3 snap 5. Help looks as follows:

# hammer compute-resource image available -h
Usage:
    hammer compute-resource image available [OPTIONS]

Options:
 --compute-resource NAME        
 --compute-resource-id ID       
 --id ID                        
 --name NAME                   Compute resource name
 -h, --help                    print help

Apparently, the --compute-resource-id option is the same as --id, but hammer requires both:

# hammer compute-resource image available --compute-resource-id 7
Missing arguments for 'id'
# hammer compute-resource image available --id 7
Error: At least one of options --compute-resource-id, --compute-resource is required
# hammer compute-resource image available --compute-resource-id 7 --id 7
-----|-----
NAME | UUID
-----|-----

The same goes for names:

# hammer compute-resource image available --compute-resource local_libvirt
Missing arguments for 'id'
# hammer compute-resource image available --name local_libvirt
Error: At least one of options --compute-resource-id, --compute-resource is required
# hammer compute-resource image available --compute-resource local_libvirt --name local_libvirt
-----|-----
NAME | UUID
-----|-----

Expected results:

Redundant options should be removed, "hammer compute-resource image available" should require the cr id or name just once.

Comment 2 Ondřej Pražák 2016-11-04 08:55:22 UTC
Created redmine issue http://projects.theforeman.org/issues/17216 from this bug

Comment 4 Bryan Kearney 2018-09-04 17:45:05 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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