Project

General

Profile

Actions

Feature #10311

closed

Datacenter UUID lookup needed to add vSphere compute resource

Added by Bryan Kearney almost 9 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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

Actions #1

Updated by Bryan Kearney almost 9 years ago

  • Category set to Compute resources - VMware
Actions #2

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.

Actions #3

Updated by Alexandre Barth almost 9 years ago

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

Actions #4

Updated by Anonymous almost 7 years ago

  • Status changed from New to Resolved

that BZ got closed.

Actions

Also available in: Atom PDF