Bug 1202895

Summary: Error with Smart State Analysis on RHEV VM on NFS
Product: Red Hat CloudForms Management Engine Reporter: lkerner
Component: SmartState AnalysisAssignee: Rich Oliveri <roliveri>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: high Docs Contact:
Priority: high    
Version: 5.3.0CC: aperotti, cbolz, clasohm, cpelland, fdewaley, jdeubel, jhardy, jocarter, jprause, lkerner, mfeifer, obarenbo, pmukhedk, roliveri, tcarlin, vchoudha
Target Milestone: GAKeywords: ZStream
Target Release: 5.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.5.0.1 Doc Type: Bug Fix
Doc Text:
In Red Hat Enterprise Virtualization 3.5, virtual machine OVF files no longer all reside on the master storage domain. As a result, performing SmartState Analysis on Red Hat Enterprise Virtualization 3.5 virtual machines residing on NFS storage domains failed due to a file not found error. The SmartState Analysis logic has been updated to retrieve the virtual machine's metadata through the Red Hat Enterprise Virtualization Manager API instead of the OVF file, so it now runs successfully in Red Hat Enterprise Virtualization 3.5 environments.
Story Points: ---
Clone Of:
: 1261897 1451361 (view as bug list) Environment:
Last Closed: 2015-12-08 13:03: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: 1261897, 1451361    

Description lkerner 2015-03-17 16:13:25 UTC
Description of problem:

ManageIQ on RHEV and SmartState Analysis fails with the following message: 
[----] E, [2015-03-07T07:38:17.754029 #2767:1251808] ERROR -- : Q-task_id([ca567ff4-c49c-11e4-8b25-001a4a4c4604]) Error Trace: [No such file or directory - /mnt/vm/ca567ff4-c49c-11e4-8b25-001a4a4c4604/rhev/data-center/00000002-0002-0002-0002-000000000010/mastersd/master/vms/0333ec6a-0c6a-4722-bb31-27282fa0276b/0333ec6a-0c6a-4722-bb31-27282fa0276b.ovf for VM:[/rhev/data-center/00000002-0002-0002-0002-000000000010/mastersd/master/vms/0333ec6a-0c6a-4722-bb31-27282fa0276b/0333ec6a-0c6a-4722-bb31-27282fa0276b.ovf]]

Storage domain type is NFS and can be mounted on the appliance. And I have edited the relationship of the VM to tell MIQ it is itself. Did I miss another step ?

Same errors seen upstream:
talk.manageiq.org/t/no-results-from-smartstate-analysis-in-ovirt-environment/585/14

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Dave Johnson 2015-07-02 21:49:14 UTC
*** Bug 1236725 has been marked as a duplicate of this bug. ***

Comment 3 Rich Oliveri 2015-07-28 21:37:05 UTC
What version of RHEV are they using?

Comment 4 Jared Deubel 2015-07-28 22:00:17 UTC
Waiting to hear back from the customer on what version of RHEV they are running. Will update shortly.

Comment 8 CFME Bot 2015-09-02 19:00:40 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/8d54788e33b3d1740779bf693ea26d1c4bc58674

commit 8d54788e33b3d1740779bf693ea26d1c4bc58674
Author:     Richard Oliveri <roliveri>
AuthorDate: Mon Aug 24 17:07:40 2015 -0400
Commit:     Richard Oliveri <roliveri>
CommitDate: Mon Aug 24 17:07:40 2015 -0400

    Fixes for various RHEVM fleecing issues.
    
    Fix for RHEV 3.5 - ovf file no longer on NFS share.
    Fix for NFS permission problem - uid changed when opening files on share.
    Fix for environments with both, NFS and LUN based storage.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1202895
    https://bugzilla.redhat.com/show_bug.cgi?id=1024033

 .../vm_or_template_shared/scanning.rb              |  85 +-----------
 gems/pending/MiqVm/MiqRhevmVm.rb                   | 146 ++++++++++++++++++++-
 gems/pending/MiqVm/MiqVm.rb                        |  10 +-
 3 files changed, 154 insertions(+), 87 deletions(-)

Comment 10 CFME Bot 2015-09-08 22:01:39 UTC
Detected commit referencing this ticket while ticket status is POST.

Comment 12 CFME Bot 2015-09-08 22:03:13 UTC
Detected commit referencing this ticket while ticket status is POST.

Comment 14 CFME Bot 2015-09-08 22:04:23 UTC
Detected commit referencing this ticket while ticket status is POST.

Comment 19 Nandini Chandra 2015-11-24 19:08:57 UTC
Does this impact RHEV 3.5 VMs only?

Comment 20 Rich Oliveri 2015-11-24 19:39:14 UTC
Yes, it's needed to work with RHEV 3.5 and newer.

Comment 21 Nandini Chandra 2015-11-26 02:57:02 UTC
Successfully scanned a RHEV 3.5 VM residing on NFS storage.

Verified in 5.5.0.12

Comment 26 errata-xmlrpc 2015-12-08 13:03:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2551