Bug 1670456 - Unable to cancel policy simulation on instance when "Cancel" button is clicked
Summary: Unable to cancel policy simulation on instance when "Cancel" button is clicked
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.9.8
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: GA
: 5.11.0
Assignee: Hilda Stastna
QA Contact: John Dupuy
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-29 15:05 UTC by John Dupuy
Modified: 2019-12-12 13:35 UTC (History)
9 users (show)

Fixed In Version: 5.11.0.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-12 13:35:20 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:4199 0 None None None 2019-12-12 13:35:31 UTC

Description John Dupuy 2019-01-29 15:05:11 UTC
Description of problem:
If you try to cancel a policy simulation on a cloud instance after carrying out the steps below, the cancel button doesn't work and the user is must navigate away from the page by selecting from the side-pane.


Version-Release number of selected component (if applicable):
noticed in both: 5.10.0.32.20190115185124_c957ada and 5.9.8.0.20190121201402_b1df4c2

How reproducible:
100%


Steps to Reproduce:
1. Add a cloud provider
2. Navigate to an instance on that cloud provider
3. Click "Policy" -> "Policy Simulation"
4. Click a policy from the dropdown (any will do), note: if you click the cancel button at this point, it will still work
5. Click on the instance
6. Click "Back"
7. Click "Cancel"

Actual results:
After a loading screen, nothing happens, and the user is still left on the same screen. 

Expected results:
After a loading screen, the user should be taken back to the summary page for the instance. 


Additional info:
Appears to effect both 5.10 and 5.9. I expect this bug affects infra VMs as well, and is not limited to cloud instances.

Comment 4 CFME Bot 2019-05-17 17:30:58 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/2e6644b94ea721c313d760381faeae75fd9b14b2
commit 2e6644b94ea721c313d760381faeae75fd9b14b2
Author:     Hilda Stastna <hstastna>
AuthorDate: Wed May 15 10:08:27 2019 -0400
Commit:     Hilda Stastna <hstastna>
CommitDate: Wed May 15 10:08:27 2019 -0400

    Fix problem with canceling policy sim if clicking on Back before

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

 app/controllers/mixins/actions/vm_actions/policy_simulation.rb | 2 +-
 config/routes.rb | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Comment 5 John Dupuy 2019-05-22 14:25:25 UTC
Fixed and verified in CFME 5.11.0.5

Steps of verification:
1. Add a cloud provider
2. Navigate to an instance on that cloud provider
3. Click "Policy" -> "Policy Simulation"
4. Click a policy from the dropdown (any will do), note: if you click the cancel button at this point, it will still work
5. Click on the instance
6. Click "Back"
7. Click "Cancel"
8. Verified that the cancel button worked properly. 

Also tested with infra vms, and verified that the cancel button works.

Comment 7 errata-xmlrpc 2019-12-12 13:35:20 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/RHBA-2019:4199


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