Actions
Bug #21190
closedhammer cli is not able to figure out compute-resource-id from compute profile
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Host creation
Target version:
-
Description
we use the vmware integration with foreman, we also have created compute profiles.
our hostgroups all have a compute-profile associated with it, as well as network & operating system details.
since compute profiles are always related to a single compute resource, one should not be needed to specify the --compute-resource-id with hammer.
so this should work:
hammer host create --hostgroup-id ${GROUP} --build true --name ${HOST}
but it is not, we have to specify the compute-resource-id like this:
hammer host create --hostgroup-id ${GROUP} --build true --name ${HOST} --compute-resource-id 1
if we do not do this, hammer complains about this:
Could not create the host:
Mac can't be blank
Actions