Bug 1563720

Summary: Differencing Disk on Network Drive Fails Smartstate if initial disk on Local DRive.
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: SmartState AnalysisAssignee: Jerry Keselman <jkeselma>
Status: CLOSED CURRENTRELEASE QA Contact: Brandon Squizzato <bsquizza>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: bsquizza, cpelland, dmetzger, jocarter, obarenbo, rspagnol, smallamp
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1547766 Environment:
Last Closed: 2018-11-06 14:35:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1547766    
Bug Blocks: 1595269    

Comment 4 Brandon Squizzato 2018-10-05 17:24:14 UTC
Verified on 5.9.5.0 

Set up a VM with a difference disk on the local hyper-V host. The parent of the difference disk sits on a network share. Ran SSA against this VM.

Confirmed non-elevated powershell commands are run when analyzing the local disk:

[----] D, [2018-10-05T13:23:18.929216 #28029:373110] DEBUG -- : Q-task_id([job_dispatcher]) Running powershell script on hypv2012-01.ms01.cfme2.lab.eng.rdu2.redhat.com as MS01\Administrator:
$file_stream   = [System.IO.File]::Open("H:\diffdisk.vhdx", "Open", "Read", "Read")
$file_stream.seek(0, 0)


Confirmed elevated commands are run when analyzing the parent disk:

[----] D, [2018-10-05T13:23:22.194078 #28029:373110] DEBUG -- : Q-task_id([job_dispatcher]) Running powershell script elevated on hypv2012-01.ms01.cfme2.lab.eng.rdu2.redhat.com as MS01\Administrator:
(Get-Item "\\vmm2012-01\MS01SCVMM2012Library\VHDs\fedora-small.vhdx").length