Bug 1290003

Summary: When invoking a start or stop action on a instance via API, it does not reflected in CloudForms 4 UI however it performed desired action on cloud side.
Product: Red Hat CloudForms Management Engine Reporter: Nikhil Gupta <ngupta>
Component: APIAssignee: Tim Wade <twade>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Kourim <mkourim>
Severity: high Docs Contact:
Priority: high    
Version: 5.5.0CC: bascar, dajohnso, jhardy, jprause, mkourim, obarenbo, simaishi, twade
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.8.0Flags: tlehinev: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rest:power
Fixed In Version: 5.8.0.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1290480 1428508 (view as bug list) Environment:
Last Closed: 2017-06-12 16:15:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1290480, 1428508    
Attachments:
Description Flags
Issue description with screenshots none

Description Nikhil Gupta 2015-12-09 13:35:07 UTC
Created attachment 1103901 [details]
Issue description with screenshots

Description of problem:
When invoking a start or stop action on a instance via API, it does not reflect in CloudForms 4 UI however desired action is performed on cloud side.

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

How reproducible:
Always

Steps to Reproduce:
- ‘start’ the instance via API which is there in the OpenStack/AWS ec2 provider.

Actual results:
1. On Openstack UI: showing Power state as Running
2. On CFME UI: Showing power state as ‘off’

Expected results:
It should show the Power state as 'On' on CFME UI as well.

Additional info:
1. After doing 'Refresh Relationships and Power States', instance is showing as 'On' on CFME 4 UI.
2. A single VM refresh action is not there in the API atm
3. I think for openstack provider, the event monitoring and detection is very limited.

Comment 2 Tim Wade 2016-01-08 18:30:05 UTC
Nikhil,

Is this issue specific to the API, and not the UI as well?

Thanks,
Tim

Comment 3 Nikhil Gupta 2016-02-05 08:49:57 UTC
Hi Tim,

I see this issue from UI as well:

1. I started the instance from Openstack UI and it is in running state but on CFME UI Power State is OFF.

2. After doing a manual refresh, it is showing as ON.

Regards,
Nikhil Gupta

Comment 9 Tim Wade 2017-03-01 18:47:29 UTC
PR: https://github.com/ManageIQ/manageiq/pull/14122

Comment 11 Martin Kourim 2017-03-23 15:57:33 UTC
Verified that the power state is reflected in the UI without the need to do 'Refresh Relationships and Power States' when the action was invoked via REST API.