Bug 1740841

Summary: Host SSA ordered while a provider was paused does not finish when provider is resumed
Product: Red Hat CloudForms Management Engine Reporter: Kedar Kulkarni <kkulkarn>
Component: ProvidersAssignee: Nobody <nobody>
Status: POST --- QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.11.0CC: hkataria, jhardy, lavenel
Target Milestone: GA   
Target Release: 5.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot none

Description Kedar Kulkarni 2019-08-13 17:35:30 UTC
Created attachment 1603496 [details]
Screenshot

Description of problem:
When I put a provider in Pause mode, and initiate Host SSA and resume the provider in some time. When the provider is resumed, the tasks that were Initialized for SSA, never moved out of the Initialized state. 


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


How reproducible:
100%

Steps to Reproduce:
1.Add a provider in CFME (I tested this with VMware/RHV)
2.Once provider is refreshed, pause the provider
3.Navigate to Hosts 
4.Run SSA on the hosts
5.Navigate to `Tasks` by clicking on top right corner menu, wait for a few mins
6.Resume the providers and re-check the tasks page 

Actual results:
The tasks(showed in screenshot) never move out of Initialized state, even after you resume the provider, it never completes SSA.

Expected results:
It should either 
1) be resumed
2) OR not allow User to run SSA when in paused state
3) OR provide user with better information of why this wouldn't work.


Additional info:

Comment 2 Dave Johnson 2019-08-13 18:03:17 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 3 Martin Slemr 2019-08-19 11:56:53 UTC
I'm not sure if I can mark this as duplicate, but the cause is the same like https://bugzilla.redhat.com/show_bug.cgi?id=1740285

Comment 4 Martin Slemr 2019-08-20 12:47:42 UTC
..it's not duplicate, same cause but different solution

Comment 6 CFME Bot 2019-08-28 15:46:05 UTC
New commit detected on ManageIQ/manageiq/master:

https://github.com/ManageIQ/manageiq/commit/e25a3106bcdeca7848c9fc954a0a5fb37772cee1
commit e25a3106bcdeca7848c9fc954a0a5fb37772cee1
Author:     Martin Slemr <mslemr>
AuthorDate: Tue Aug 20 09:51:05 2019 -0400
Commit:     Martin Slemr <mslemr>
CommitDate: Tue Aug 20 09:51:05 2019 -0400

    Finish Host Task to error state when EMS paused

    when invoking SmartState Analysis

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1740841

 app/models/host.rb | 10 +
 spec/models/host_spec.rb | 31 +
 2 files changed, 41 insertions(+)