Feature #10311
closedDatacenter UUID lookup needed to add vSphere compute resource
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1174661
Description of problem:
Creation of a compute resource with hammer cli seems not possible as there is no way to look up the datacenter uuid. Within the GUI there is a button to reload the datacenters. Also it seems it is necessary to provide the URL, but according to the help text one should provide "--server".
How reproducible:
hammer compute-resource create --help
Usage:
hammer compute-resource create [OPTIONS]
Options:
--description DESCRIPTION
--name NAME
--password PASSWORD Password for RHEV, EC2, Vmware, Openstack. Secret key for EC2
--provider PROVIDER Providers include Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE
--region REGION for EC2 only
--server SERVER for Vmware
--tenant TENANT for Openstack only
--url URL URL for Libvirt, RHEV, and Openstack
--user USER Username for RHEV, EC2, Vmware, Openstack. Access Key for EC2.
--uuid UUID for RHEV, Vmware Datacenter
-h, --help print help
Steps to Reproduce:
1. hammer compute-resource create --name="myvcenter.example.com" --user="VM_WARE_USER" --provider="VMWare" --url="vcsrv.example.com" --password="SOME_PASS" --description="Prod VCenter" --server="vcsrv.example.com"
Actual results:
Could not create the compute resource:
Datacenter
Updated by Bryan Kearney almost 9 years ago
- Category set to Compute resources - VMware
Updated by Dominic Cleal almost 9 years ago
- Tracker changed from Bug to Feature
- Project changed from Foreman to Hammer CLI
- Subject changed from Hammer CLI not possible to create vmware compute resource to Datacenter UUID lookup needed to add vSphere compute resource
- Category changed from Compute resources - VMware to Foreman commands (obsolete)
Would probably depend on a new available_* API.
Updated by Alexandre Barth almost 9 years ago
It is working, your hammer cli command is just missing the --uuid Datacenter_name