Bug 1534352

Summary: Unable to perform SSA if Vm storage is fileshare on SCVMM and throws error in evm.log
Product: Red Hat CloudForms Management Engine Reporter: Satyajit Bulage <sbulage>
Component: SmartState AnalysisAssignee: Jerry Keselman <jkeselma>
Status: CLOSED CURRENTRELEASE QA Contact: Satyajit Bulage <sbulage>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: cpelland, gblomqui, obarenbo, sbulage, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: smartstate:scvmm:vm
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1553295 1565365 (view as bug list) Environment:
Last Closed: 2018-07-30 14:43:44 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:
Bug Depends On:    
Bug Blocks: 1553295, 1565365    

Description Satyajit Bulage 2018-01-15 05:49:23 UTC
Description of problem:


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


How reproducible:100%


Steps to Reproduce:
1. Deploy VM in SCVMM which has disk located on fileshare.
2. Perform SSA on it.
3.

Actual results:Error in evm.log "Unable to mount filesystem.  Reason:[No root filesystem found."


Expected results: It should scan VM without any error.


Additional info:

Comment 4 Greg Blomquist 2018-01-16 14:45:31 UTC
Jerry this error looks similar to the ones seen in some Azure environments.  Sending your way in case it's the same error.

Comment 5 Jerry Keselman 2018-01-16 15:00:50 UTC
Totally unrelated.  This is an SCVMM issue.  A powershell command to get the length of the disk to be scanned failed because, at first glance at the log, the device file does not exist.

Comment 11 Jerry Keselman 2018-02-19 19:55:45 UTC
The actual issue here is that the proper credentials were not provided, and then the error that was reported when the Smartstate Scan failed was not meaningful.  We will fix so that the issue with the improper credentials will be propagated to the UI.

Comment 12 Jerry Keselman 2018-02-19 20:10:52 UTC
https://github.com/ManageIQ/manageiq-smartstate/pull/53 has been added to fix this problem.  It should also be fixed in Gaprindashvili in manageiq-smartstate, and in Fine in manageiq-gems-pending.

Comment 13 CFME Bot 2018-03-02 22:05:34 UTC
New commit detected on ManageIQ/manageiq-smartstate/master:
https://github.com/ManageIQ/manageiq-smartstate/commit/8bf70f07fc1e769c79b7b6f53a51b2e5f24ce329

commit 8bf70f07fc1e769c79b7b6f53a51b2e5f24ce329
Author:     Jerry Keselman <jkeselma>
AuthorDate: Mon Feb 19 14:56:37 2018 -0500
Commit:     Jerry Keselman <jkeselma>
CommitDate: Mon Feb 19 14:58:53 2018 -0500

    Show Improper Credentials Message in Smartstate Failure in UI
    
    When the incorrect domain credentials are provided and a Virtual Machine
    disk is located in a network accessible disk share, access to the virtual
    disk may be denied.  Previously the error displayed in the UI for a failure
    of this type was not meaningful.  This change will show the error as related
    to the credentials.
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1534352

 lib/Scvmm/miq_hyperv_disk.rb | 3 ++-
 lib/disk/DiskProbe.rb        | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

Comment 16 Dave Johnson 2018-07-30 14:43:44 UTC
Closing this as its already been verified in two z-streams and has test coverage around it.