Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1643099

Summary: Horizon crashes which user click the "Confirm resize" action multiple times while an instance is resizing [osp15]
Product: Red Hat OpenStack Reporter: Madhur Gupta <madgupta>
Component: python-django-horizonAssignee: Radomir Dopieralski <rdopiera>
Status: CLOSED EOL QA Contact: Radomir Dopieralski <rdopiera>
Severity: high Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: athomas, bshephar, jrist, mrunge, rcernin, rdopiera, rhos-maint, stchen
Target Milestone: ---Keywords: Reopened, Triaged, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-django-horizon-15.1.2-0.20191115130503.894cac7.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1776734 1779132 (view as bug list) Environment:
Last Closed: 2020-09-30 19:57:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1776734, 1779132    
Attachments:
Description Flags
Horizon Error none

Description Madhur Gupta 2018-10-25 13:46:26 UTC
Created attachment 1497474 [details]
Horizon Error

Description of problem:

When resizing or migrating a VM via Horizon, the final step in the process is to click 'Confirm' in the web UI. Clicking 'Confirm' visibly refreshes the UI, but the 'Confirm' button is still there. 

Actual results:
If you immediately click it again because you thought that your first click was missed, Horizon fails and displays whole-page error output (attached).

Expected results:
The confirm button should get inactivated to not allow the user to click it again  after once clicked on it the first time. 

Additional info:
It seems to be related to this upstream:
https://bugs.launchpad.net/horizon/+bug/1433849

Is it a regression?

Comment 16 errata-xmlrpc 2020-03-05 11:58:26 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-2020:0713

Comment 17 Brendan Shephard 2020-03-25 21:50:19 UTC
Hey guys,

After this patch, we're still getting the same error:

Exception Type: Conflict at /admin/instances/
Exception Value: Cannot 'confirmResize' instance 98798a48-f6f3-446c-82be-76e07080e1cb while it is in vm_state active (HTTP 409) (Request-ID: req-873867a7-a45c-4e6b-a5f8-77427af1201d)


The patch linked here is applied:
$ grep shortcuts /usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/instances/tables.py
from django import shortcuts
        return shortcuts.redirect(request.get_full_path())
        return shortcuts.redirect(request.get_full_path())

This matches the changes seen here: 
https://opendev.org/openstack/horizon/commit/d6c56c26b3b043a038b829a8afecdef7f2f18bb1

Comment 20 stchen 2020-09-30 19:57:04 UTC
Closing EOL, OSP 15 has been retired as of Sept 19, 2020

Comment 21 Red Hat Bugzilla 2023-09-14 04:41:19 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days