Bug 1670456

Summary: Unable to cancel policy simulation on instance when "Cancel" button is clicked
Product: Red Hat CloudForms Management Engine Reporter: John Dupuy <jdupuy>
Component: UI - OPSAssignee: Hilda Stastna <hstastna>
Status: CLOSED ERRATA QA Contact: John Dupuy <jdupuy>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: low    
Version: 5.9.8CC: bmidwood, dmetzger, hkataria, lavenel, mpovolny, mshriver, obarenbo, simaishi, smallamp
Target Milestone: GA   
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-12 13:35:20 UTC 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:

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