Project

General

Profile

Actions

Bug #14485

closed

hammer should consider everything from the "Compute Profile"

Added by Bryan Kearney about 8 years ago. Updated about 8 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1319564
Description of problem:

When we try to use "hammer" cmd to provision new VMWare base host it seems that it ignore the compute profile settings. Where we have defined everything in GUI.

hammer> host create --hostgroup Test-RHEL7 --name rhel-hostname --location "Default Location" --organization "IPA" --ip 2.2.3.4 --compute-resource ESX --compute-profile 1-Small

ERROR :
Could not create the host:
Failed to create a compute ESX (VMWare) instance rhel-hostname.example.com: cluster is required for this operation

Where cluster is already define in the webUI. Here we have to pass few more parameter like below to complete the command.

Could you please use below Provider specific options.
"--compute-attributes " with cluster "RHEL"

Available keys for --compute-attributes:

cpus # cpu count
memory_mb # integer number
cluster
path

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. I have to provide below all the information to create a host through hammer.

hammer> host create --hostgroup Test-RHEL7 --name test-hostgroup-poc --location "Default Location" --organization "IPA" --ip 2.2.3.4 --compute-resource-id 4 --compute-profile-id 4 --compute-attributes "cluster=RHEL,path='/Data/xyz/abc/system',cpus=1,corespersoket=1,memory_mb=2048,start=1,hardware_version='vmx-10',guest_id=rhelGuest" --interface "network=network-126880" --volume "datastore='Datapath - Test - TESX99',name='Hard disk',size_gb=20,thin=true"
Host created
hammer>

Actual results:

Need to provide all the information in hammer command
cpus # cpu count
memory_mb # integer number
cluster
path

Expected results:

Hammer cmd should take all this information from compute profile which ever is possible.

Additional info:


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #6342: Compute profile should be used when empty volumes and interfaces passed in compute_attributesClosedTomáš Strachota06/23/2014Actions
Actions #1

Updated by Dominic Cleal about 8 years ago

  • Is duplicate of Bug #6342: Compute profile should be used when empty volumes and interfaces passed in compute_attributes added
Actions #2

Updated by Dominic Cleal about 8 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF