Bug 1343684

Summary: CF does not notice RHEV VMs being suspended
Product: Red Hat CloudForms Management Engine Reporter: Jeff Warnica <jwarnica>
Component: ControlAssignee: Lucy Fu <lufu>
Status: CLOSED CURRENTRELEASE QA Contact: Dmitry Misharov <dmisharo>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: dmisharo, jfrey, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: control
Fixed In Version: 5.7.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1350449 (view as bug list) Environment:
Last Closed: 2017-01-11 19:52:09 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: 1350449    

Description Jeff Warnica 2016-06-07 16:46:17 UTC
Description of problem:

CF doesn't notice (or takes longer than I'm willing to wait) VMs suspending with a RHEV provider.


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

CF: 5.6.0.9-rc2.20160531154046_b4e2f6d
RHEV: 3.6.6.2-0.1.el6

How reproducible:


Steps to Reproduce:
1. Suspend VM through RHEV UI, or CF automate code
2. Wait for CF to update status
3. Give up and refresh Provider

Actual results:
CF does not update VM status until full refresh is triggered

Expected results:
CF sees VM as suspended

(Have not tested against other providers)

Comment 5 CFME Bot 2016-07-12 20:14:02 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/99f0ecefa7142d5a1bf67a2017e8f7a3be9c7319

commit 99f0ecefa7142d5a1bf67a2017e8f7a3be9c7319
Author:     Lucy Fu <lufu>
AuthorDate: Mon Jul 11 16:44:52 2016 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Tue Jul 12 14:58:07 2016 -0400

    Add event USER_SUSPEND_VM_OK to refresh the VM and update its power state.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1343684

 .../Event/EmsEvent/RHEVM.class/user_suspend_vm_ok.yaml   | 16 ++++++++++++++++
 .../System/Event/EmsEvent/VC.class/vmsuspendedevent.yaml |  2 ++
 2 files changed, 18 insertions(+)
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/RHEVM.class/user_suspend_vm_ok.yaml

Comment 6 Dmitry Misharov 2016-09-09 13:45:20 UTC
Fixed and verified in 5.7.0.0.20160906172503_12f65cb. Status of a vm is changed in Web UI and automation is able to catch the event.