Bug 1454963

Summary: Valid SCVMM file share not showing up as datastore on host.
Product: Red Hat CloudForms Management Engine Reporter: Jeff Teehan <jteehan>
Component: ProvidersAssignee: Bronagh Sorota <bsorota>
Status: CLOSED CURRENTRELEASE QA Contact: Leo Khomenko <lkhomenk>
Severity: high Docs Contact:
Priority: urgent    
Version: 5.7.0CC: bsorota, cpelland, dajohnso, dberger, jcutter, jfrey, jhardy, jocarter, lkhomenk, myoder, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: provider:scvmm:datastore
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1461169 1461170 (view as bug list) Environment:
Last Closed: 2018-03-06 15:54:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1461169, 1461170    

Comment 2 Jeff Teehan 2017-05-24 00:13:09 UTC
The available SCVMM datastores needs to be a combination of host DiskVolumes, plus BaseDiskPaths.  The latter is valid File Share storage

PS C:\Users\Administrator.CFME-QE-VMM-AD>  Get-SCVMHost -VMMServer localhost | select name, diskvolumes, basediskpaths

Name
----
qeblade26.cfme-qe-vmm-ad.rhq.lab.eng.bos.redhat.com
qeblade33.cfme-qe-vmm-ad.rhq.lab.eng.bos.redhat.com

DiskVolumes
-----------
{C:\, G:\, C:\ClusterStorage\CLUSP04 Prod Volume 3-1, \\?\Volume{1889d147-fcb9-11e3-80b5-806e6f6e6963}\...}
{C:\, G:\, J:\, \\?\Volume{b58fecc1-c453-11e4-80b4-806e6f6e6963}\...}

BaseDiskPaths
-------------
{\\clusterstore.cfme-qe-vmm-ad.rhq.lab.eng.bos.redhat.com\cdrive}
{\\cfme_hyperv\scvmm2, \\clusterstore.cfme-qe-vmm-ad.rhq.lab.eng.bos.redhat.com\cdrive}

Comment 4 Jeff Teehan 2017-06-01 14:38:23 UTC
I looked at the code and it's likely an easy fix, but I can't do it, which is to say I'm not authorized to do it.  I've changed all the flags to try to get it in the 5.7.3 release upcoming and the hotfix flag.  Support will need to drive the escalation of this BZ for the customer.

Customer has already verified that my code returns the correct values.

Comment 5 Jeff Teehan 2017-06-05 19:55:53 UTC
I should have updated the bz earlier.  But the customer ran this ps snippet and it returned their three servers each connected to the Tintri file share.

$FileShares = Get-SCVMHost -VMMServer localhost | select Name, RegisteredStorageFileShares

foreach ($share in $FileShares){
  $share.Name, $share.RegisteredStorageFileShares.SharePath
}

Comment 6 Daniel Berger 2017-06-06 20:27:03 UTC
In progress https://github.com/ManageIQ/manageiq-providers-scvmm/pull/2

Comment 7 Daniel Berger 2017-06-13 17:19:13 UTC
https://github.com/ManageIQ/manageiq/pull/15362