Bug 1483249
Summary: | CLI/API for creating hosts should provide better message when medium is missing | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Kedar Bidarkar <kbidarka> | ||||
Component: | Hosts - Content | Assignee: | satellite6-bugs <satellite6-bugs> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Katello QA List <katello-qa-list> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.3.0 | CC: | bbuckingham, dhlavacd, inecas, jcallaha, kbidarka, lhellebr, tbrisker, tstrachota | ||||
Target Milestone: | Unspecified | Keywords: | Triaged, UserExperience | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-09-04 17:47:00 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
Kedar Bidarkar
2017-08-19 16:00:57 UTC
Created attachment 1315773 [details]
more information related to hostgroup info
A host-group created via UI would allow the creation of host. Do not edit hostgroup or create hostgroup via UI , this bug is not reproducible. Kedar, could you please provide full output of the hammer commands in debug mode for: 1. hostgroup create 2. hostgroup info 3. host create Also, what exactly is the "satellite" command, please? Btw the hostgroup create is missing --kickstart-repository-id (which is probably autocompleted in the UI when a CV is selected) and therefore satellite tries to use "All Media" which is not assigned either. satellite is a function, sorry my bad. satellite == 'hammer -u admin -p changeme' Host creation worked, if I 1) first added --kickstart-repository-id to hostgroup using the "hostgroup update" 2) Then creating a host using the updated host-group. I feel, then this bug should be tracking about letting the end user know , what is missing while creating the Host, as 1) "hostgroup create" does not make providing "--kickstart-repository-id " compulsory. 2) "host create" mentions "medium can't be blank". So, the end user has no way of knowing what exactly is missing while creating a Host with Host-Group. I agree. I updated the BZ title accordingly. In the cli I would expect a message like: "Medium can't be blank. Please provide either --kickstart-repository or --medium." "Medium can't be blank" error message is also shown when --kickstart-repository is set but there is not set some other required parameter, like --content-source-id. This misleads the user to think they have to specify both --kickstart-repository and --medium. 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. |