Bug 1740841 - Host SSA ordered while a provider was paused does not finish when provider is resumed
Summary: Host SSA ordered while a provider was paused does not finish when provider is...
Keywords:
Status: POST
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.11.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.11.z
Assignee: Martin Slemr
QA Contact: Sudhir Mallamprabhakara
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-13 17:35 UTC by Kedar Kulkarni
Modified: 2023-05-31 23:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot (50.43 KB, image/png)
2019-08-13 17:35 UTC, Kedar Kulkarni
no flags Details

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(+)


Note You need to log in before you can comment on or make changes to this bug.