Bug #14485
closedhammer should consider everything from the "Compute Profile"
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:
Updated by Dominic Cleal almost 9 years ago
- Is duplicate of Bug #6342: Compute profile should be used when empty volumes and interfaces passed in compute_attributes added
Updated by Dominic Cleal almost 9 years ago
- Status changed from New to Duplicate