Bug 1610674

Summary: Compute attributes are not user-friendly and some attributes are missing
Product: Red Hat Satellite Reporter: Sanket Jagtap <sjagtap>
Component: Compute Resources - VMWareAssignee: Chris Roberts <chrobert>
Status: CLOSED DUPLICATE QA Contact: Sanket Jagtap <sjagtap>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: chrobert, mhulan
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/25192
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-07 18:31:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sanket Jagtap 2018-08-01 08:00:58 UTC
Description of problem:
It is very tedious to provision a host on Vmware as, most of the settings are not directly fetched from Vmware and you need to go hunting on Vmware API to find entities proper IDs

Also the help text should have more information

Version-Release number of selected component (if applicable):
Satellite 6.4 Snap 14

How reproducible:
Always

Steps to Reproduce:
  VMWare:
    --compute-attributes:
      cluster               Cluster id from VMware
Should this be some kind of numeric ID or Cluster name 
      path                  Path to folder
Should Mention, does it needs whole path from / or from vm Folder
      guest_id              Guest OS id form VMware
Guest ID is not fetched, also should support guest OS name , like in UI
      scsi_controller_type  Id of the controller from VMware
Should be fetched depending in the name that is passed , like in UI
      hardware_version      Hardware version id from VMware
Add a link to Vmware documetation regarding, where to find this
      compute_network     Network id from VMware
This option is problematic of all, network-id should be automatically fetched from Vmware, rather than user needing to login to Vmware or looking in satellite logs from UI

    --volume:
      name
You don't have the option to specify the name in UI, If it is static we can remove
      datastore           Datastore id from VMware
Datastore name should also be supported and datastore Id should be fetched


Also, some attributes are missing form CLI 
COMPUTE:

Resource pool - [List]
Firmware=[BIOS EFI]

Memory hot add=Boolean

Cpu hot add=Boolean

Cd-rom= Boolean

Annotation Notes

VOLUME:
Storage Pod = [List]

Disk Mode = [List]

Actual results:
Option are not clear and some entities only support ID while some are missing

Expected results:
Options should have proper help text and should support "NAME" which user-friendly rather than ID which requires user to login to Vmware 

Additional info:

Comment 2 Sanket Jagtap 2018-08-01 09:59:24 UTC
P.S This is a Hammer CLI only Bug

Comment 3 Chris Roberts 2018-11-07 18:31:08 UTC
Forgot I filled https://bugzilla.redhat.com/show_bug.cgi?id=1638906

Which cleaned up alot of things and added all the current attributes exposed by fog. Marking this one as a dup of mine, since mine is in ON_QA already.

*** This bug has been marked as a duplicate of bug 1638906 ***