Bug 1337910

Summary: [RFE] vCenter Provider : To add the capability of provisioning a VM to a Datastore Cluster without choosing the Datastore
Product: Red Hat CloudForms Management Engine Reporter: Andre Motta <amotta>
Component: ProvidersAssignee: John Hardy <jhardy>
Status: CLOSED WONTFIX QA Contact: Shveta <sshveta>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: david.thomas, jfrey, jhardy, obarenbo
Target Milestone: GAKeywords: FutureFeature
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: vsphere:datastore
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-28 15:11: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:
Attachments:
Description Flags
vCenter Webclient Create VM on target Datastore DRS Cluster without selecting Datastore (auto-recommendation from DS DRS cluster) none

Description Andre Motta 2016-05-20 12:26:56 UTC
Created attachment 1159895 [details]
vCenter Webclient Create VM on target Datastore DRS Cluster without selecting Datastore (auto-recommendation from DS DRS cluster)

Description of problem:
In CloudForms 4.1 we inventory Datastore DRS Clusters and have the Datastore and DS DRS cluster relationship mapped although at VM provisioning request we still need to select the target datastore. From vCenter WebClient or C# client we can provision a VM to a Datastore DRS cluster without selecting the target Datastore, which is automatically selected by the Datastore DRS cluster.   

Version-Release number of selected component (if applicable):
5.6.0

How reproducible:
Everytime a VM is provisioned on a Datastore attached to a Datastore cluster.

Steps to Reproduce:
1. Compute/Infrastructure/Virtual Machines/Life-cycle/Request Provision VM
2. Environment Tab
3. Select the target datastore

Actual results:
The target Datastore of the VM is selected at provisioning time.

Expected results:
The Datastore DRS cluster should be selected from CFME and the datastore would not be needed to be selected.

Additional info:
See attached screenshot of the deployment of a VM only selecting the Datastore DRS Cluster.

Comment 2 Andre Motta 2016-05-20 12:45:54 UTC
As far as I understand the target object for the datastore should be a StoragePod:

https://www.vmware.com/support/developer/converter-sdk/conv61_apireference/vim.StoragePod.html

Comment 3 Andre Motta 2016-05-20 13:20:26 UTC
To complete this request, there is a good example of provisioning a VM to a vSphere Storage DRS cluster without selecting the target datastore here: http://www.virtuallyghetto.com/2012/03/vm-provisioning-on-datastore-clusters.html and here: https://github.com/lamw/vghetto-scripts/blob/master/perl/datastoreClusterVMProvisioning.pl
Thanks!

Comment 5 Chris Pelland 2017-08-28 15:11:32 UTC
This bug has been open for more than a year and is assigned to an older release of CloudForms. 
If you would like to keep this Bugzilla open and if the issue is still present in the latest version of the product, please file a new Bugzilla which will be added and assigned to the latest release of CloudForms.