Bug 1748431

Summary: Datastore config in compute profile not used when creating VMware VMs
Product: Red Hat Satellite Reporter: Perry Gagne <pgagne>
Component: Compute Resources - VMWareAssignee: Ondřej Ezr <oezr>
Status: CLOSED DUPLICATE QA Contact: Perry Gagne <pgagne>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: chrobert, jsherril, mhulan, oezr, zhunting
Target Milestone: 6.6.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-12 16:29:32 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 Perry Gagne 2019-09-03 14:53:05 UTC
Created attachment 1611200 [details]
foreman debug

Description of problem:
When I specified Datastore config in compute profile it is not used when creating a VMware VM. 

Version-Release number of selected component (if applicable): 6.6 snap 18


How reproducible:


Steps to Reproduce:
1. Create compute resource for vcenter
2. Create Compute profile tied to a Datastore (mine happened to be a local esxi datastore). 
3. Create host group with compute profile (dont think this is required)
4. Create VM with hostgroup

Actual results:
Storage config does not appear in "Virtual Machine" tab and when the I press submit the following error occurs:
Failed to create a compute toledovcenter (VMware) instance toby-lutkins.vmdomain.com: InvalidDatastorePath: Invalid datastore path '[datastore1]'.

Expected results:
VM is created on data store. 

Additional info:
Screen recording here
https://drive.google.com/file/d/1gFdgUWM3r0nvW33pZE_cCkRB1ESfj0Sn/view?usp=sharing

Also, I created a host manually and specified the datastore in the "VM" tab directly and I was able to create the VM.

Comment 4 Marek Hulan 2019-09-04 15:08:35 UTC
Created redmine issue https://projects.theforeman.org/issues/27782 from this bug

Comment 5 Bryan Kearney 2019-09-06 00:01:43 UTC
Upstream bug assigned to chrobert

Comment 6 Bryan Kearney 2019-09-09 16:01:51 UTC
Upstream bug assigned to oezr

Comment 7 Bryan Kearney 2019-09-09 16:01:52 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27782 has been resolved.

Comment 9 Justin Sherrill 2019-09-12 16:29:32 UTC
Upstream issue was closed as a duplicate of 27764

which is assigned to bz 1724780.  Closing this as a duplicate too.

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