Bug 1174661 - Hammer CLI not possible to create vmware compute resource [NEEDINFO]
Summary: Hammer CLI not possible to create vmware compute resource
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.6
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-16 09:51 UTC by Henning Henkel
Modified: 2020-01-22 07:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-07 12:52:27 UTC
Target Upstream Version:
Embargoed:
bkearney: needinfo?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10311 0 Normal Resolved Datacenter UUID lookup needed to add vSphere compute resource 2020-08-24 05:27:11 UTC

Description Henning Henkel 2014-12-16 09:51:46 UTC
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

Comment 1 RHEL Program Management 2014-12-16 09:54:14 UTC
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.

Comment 4 Bryan Kearney 2015-04-29 16:51:30 UTC
Created redmine issue http://projects.theforeman.org/issues/10311 from this bug

Comment 6 Bryan Kearney 2016-01-26 18:13:14 UTC
We believe this is working. Per the upstream bug:

It is working, your hammer cli command is just missing the --uuid Datacenter_name

Comment 7 Bryan Kearney 2016-07-07 12:52:27 UTC
Closing due to no additional information. If this is still not working for you, please feel free to re-open with additional information.


Note You need to log in before you can comment on or make changes to this bug.