Project

General

Profile

Actions

Bug #21190

closed

hammer cli is not able to figure out compute-resource-id from compute profile

Added by Stephan Schultchen over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Host creation
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF