Bug 1571086
Summary: | can't use hammer CLI to create a new host in VMware | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | matt jia <mjia> |
Component: | Hosts | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3.1 | CC: | akarsale, apatel, dhlavacd, inecas, kgaikwad, ktordeur, mhulan, mjia, mshira, rabajaj, sauchter, tbrisker, tstrachota |
Target Milestone: | Unspecified | Keywords: | Triaged |
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-12-23 09:27:10 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1316897 |
Description
matt jia
2018-04-24 05:48:14 UTC
After digging a little bit more, it seems like the image_id is not populated in the /usr/share/foreman/app/models/concerns/orchestration/compute.rb:77:in `setCompute' As I understand, it should use the given image's id. On the other hand, the hammer CLI accepts --image-id. Will this be used as the image id of the compute attributes? SIt seems like the image id can be set with --compute-attributes, but the doc doesn't mention it. hammer host create --help VMWare: --compute-attributes: cpus Cpu count corespersocket Number of cores per socket (applicable to hardware versions < 10 only) memory_mb Integer number, amount of memory in MB cluster Cluster id from VMware path Path to folder guest_id Guest OS id form VMware scsi_controller_type Id of the controller from VMware hardware_version Hardware version id from VMware start I guess tha same would happen for other CRs as well. Matt, could you please try using --image-id as you suggest in comment 2? Also try it as an attribute of compute_attributes hash, I'd expect this should work. I haven't looked to API code yet, but perhaps it's just documentation issue. Hi Marek, Using --image-id gives me the same error. Using it as an attribute of compute_attributes hash works. It would make more sense that the API can populate the image_id attribute of compute_attributes from the given --image/--image-id. I saw the same issue in https://bugzilla.redhat.com/show_bug.cgi?id=1633345 please try to add image_id under --compute-attributes section. *** This bug has been marked as a duplicate of bug 1529252 *** The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |