Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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 ***