Bug 954361 - [RFE] webadmin: closing the new domain dialogue during create of a domain we continue to add the domain but do not attach it - support cancel option
Summary: [RFE] webadmin: closing the new domain dialogue during create of a domain we...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: ---
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Daniel Erez
QA Contact: Raz Tamir
URL:
Whiteboard:
: 954843 1184143 1185636 1516698 (view as bug list)
Depends On: 757291 1052318
Blocks: 954843 1516698
TreeView+ depends on / blocked
 
Reported: 2013-04-22 11:29 UTC by Dafna Ron
Modified: 2021-05-01 16:43 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-16 10:32:37 UTC
oVirt Team: Storage
Embargoed:
ylavi: ovirt-future?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
log (223.88 KB, application/x-xz)
2013-04-22 11:29 UTC, Dafna Ron
no flags Details

Description Dafna Ron 2013-04-22 11:29:13 UTC
Created attachment 738473 [details]
log

Description of problem:

adding a domain is actually two commands: add domain and attach domain. 
if we add a new domain and close the new domain window (using the X on right top) we succeed the first command of add but do not even send the second one of attach. 

I also incountered a race in which we got a CanDoAction that we cannot attach the domain because there are no hosts (probably because the host param came up empty when I closed the window). 

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

sf13.1

How reproducible:

100%

Steps to Reproduce:
1. create a new iscsi domain -> select a DC
2. press OK and than close the window using the X
3.
  
Actual results:

since this is actually a 2 command action (add and attach) we add the domain but once we close the window we do not send the attach command. 

Expected results:

we should send the attach if a DC is choosen. 

Additional info: log

Comment 1 Daniel Erez 2013-05-08 14:38:12 UTC
The underlying issue here is that the UI handles it as a complex action.
I.e. the UI calls three actions consequentially: AddStorageServerConnection, AddNFSStorageDomain, RemoveStorageServerConnection. In order to fix such issues, these actions should be consolidated in a single backend command. A RFE for that should be opened.

Comment 2 Ayal Baron 2013-05-08 14:45:17 UTC
(In reply to comment #1)
> The underlying issue here is that the UI handles it as a complex action.
> I.e. the UI calls three actions consequentially: AddStorageServerConnection,
> AddNFSStorageDomain, RemoveStorageServerConnection. In order to fix such
> issues, these actions should be consolidated in a single backend command. A
> RFE for that should be opened.

Why do we allow the user to close the dialog in this state?

Comment 3 Daniel Erez 2013-05-08 14:57:10 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > The underlying issue here is that the UI handles it as a complex action.
> > I.e. the UI calls three actions consequentially: AddStorageServerConnection,
> > AddNFSStorageDomain, RemoveStorageServerConnection. In order to fix such
> > issues, these actions should be consolidated in a single backend command. A
> > RFE for that should be opened.
> 
> Why do we allow the user to close the dialog in this state?

We always allow the user to close the window by using the 'X' button or ESC
(it's been requested in order to overcome issues such as infinite hour-glass).

Comment 4 Nir Soffer 2013-12-11 07:17:22 UTC
(In reply to Daniel Erez from comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > The underlying issue here is that the UI handles it as a complex action.
> > > I.e. the UI calls three actions consequentially: AddStorageServerConnection,
> > > AddNFSStorageDomain, RemoveStorageServerConnection. In order to fix such
> > > issues, these actions should be consolidated in a single backend command. A
> > > RFE for that should be opened.
> > 
> > Why do we allow the user to close the dialog in this state?
> 
> We always allow the user to close the window by using the 'X' button or ESC
> (it's been requested in order to overcome issues such as infinite
> hour-glass).

Closing a window should *cancel* the operation. Doing half of the requested operation is pointless.

To fix cases where system does not respond, we should have a cancel button on all operations that show a progress.

Can we implememnt this in for the next version?

Comment 5 Daniel Erez 2013-12-15 10:14:17 UTC
(In reply to Nir Soffer from comment #4)
> (In reply to Daniel Erez from comment #3)
> > (In reply to comment #2)
> > > (In reply to comment #1)
> > > > The underlying issue here is that the UI handles it as a complex action.
> > > > I.e. the UI calls three actions consequentially: AddStorageServerConnection,
> > > > AddNFSStorageDomain, RemoveStorageServerConnection. In order to fix such
> > > > issues, these actions should be consolidated in a single backend command. A
> > > > RFE for that should be opened.
> > > 
> > > Why do we allow the user to close the dialog in this state?
> > 
> > We always allow the user to close the window by using the 'X' button or ESC
> > (it's been requested in order to overcome issues such as infinite
> > hour-glass).
> 
> Closing a window should *cancel* the operation. Doing half of the requested
> operation is pointless.
> 
> To fix cases where system does not respond, we should have a cancel button
> on all operations that show a progress.
> 
> Can we implememnt this in for the next version?

The underlined issue here, as explained in comment 1, is the 'transaction' handled by the UI (the UI calls the actions consequentially and performs rollback on failure). In order to avoid any more over-complexity in the client, I think that the solution should be in the backend (e.g. consolidate the actions to a single command which handles rollback as needed).

Comment 6 Daniel Erez 2014-01-12 15:49:05 UTC
*** Bug 954843 has been marked as a duplicate of this bug. ***

Comment 7 Daniel Erez 2014-01-12 15:50:21 UTC
The scenario described in bug 954843 should be tested when implementing the RFE.

Comment 8 Ayal Baron 2014-02-10 14:09:16 UTC
The problem is that current the GUI is driving multiple actions against the backend and if you close the dialog before executing one of the steps then it won't proceed.
Once we get rid of the storage pool (Bug 757291) then we can convert this to be a single action since 'attach' should simply beome a database operation hence possible to be done in a single transaction.

Comment 9 Daniel Erez 2015-01-21 07:37:00 UTC
*** Bug 1184143 has been marked as a duplicate of this bug. ***

Comment 10 Allon Mureinik 2015-01-25 16:24:07 UTC
*** Bug 1185636 has been marked as a duplicate of this bug. ***

Comment 11 Allon Mureinik 2017-11-23 12:42:58 UTC
*** Bug 1516698 has been marked as a duplicate of this bug. ***

Comment 12 Yaniv Lavi 2017-11-26 12:10:32 UTC
Is this still relevant?

Comment 13 Allon Mureinik 2017-11-26 14:58:23 UTC
(In reply to Yaniv Lavi from comment #12)
> Is this still relevant?

yup

Comment 14 Doron Fediuck 2018-05-16 10:32:37 UTC
Closing old bugs.
If needed please reopen and explain why.


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