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
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Created redmine issue http://projects.theforeman.org/issues/10311 from this bug
We believe this is working. Per the upstream bug: It is working, your hammer cli command is just missing the --uuid Datacenter_name
Closing due to no additional information. If this is still not working for you, please feel free to re-open with additional information.