Bug 1700039

Summary: Subscriptions "Cancel" button does not have the intuitive effect the user expects which Registering through the cockpit "Register System" dialog.
Product: Red Hat Enterprise Linux 8 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: high    
Version: 8.0CC: anilsson, csnyder, jgalipea, jhnidek, jstavel, khowell, redakkan, wpoteat
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.26.5-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:54:49 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:
Attachments:
Description Flags
"Register System" dialog in cockpit two seconds after clicking "Register". none

Description John Sefler 2019-04-15 16:19:20 UTC
Created attachment 1555282 [details]
"Register System" dialog in cockpit two seconds after clicking "Register".

Description of problem:
  below Steps to Reproduce

Version-Release number of selected component (if applicable):
[root@kvm-01-guest04 ~]# rpm -q subscription-manager-cockpit cockpit
subscription-manager-cockpit-1.23.8-35.el8.noarch
cockpit-185-2.el8.x86_64


How reproducible:
100%

Steps to Reproduce:
[root@kvm-01-guest04 ~]# subscription-manager config --server.hostname=subscription.rhsm.stage.redhat.com
[root@kvm-01-guest04 ~]# subscription-manager config --logging.default_log_level=DEBUG
[root@kvm-01-guest04 ~]# systemctl start cockpit.service
[root@kvm-01-guest04 ~]# hostname
kvm-01-guest04.lab.eng.rdu2.redhat.com

OPEN FIREFOX TO https://kvm-01-guest04.lab.eng.rdu2.redhat.com:9090/subscriptions ADVANCED ADD EXCEPTION

Login to cockpit gui with root/password

On Subscriptions tab, click Register and enter valid Login/Password in the dialog and click the dialog Register button.

At this point (while the pointer is spinning), notice the Register button behind the register dialog has flipped to "Unregister" while the spinning task of auto-attach is processing.  Moreover, each of the fields on the register dialog are still active and clicking the Cancel button makes the dialog go away, but does NOT actually cancel the background registration process.  If you continue watching the cockpit gui, the installed product goes green.   Hence "Cancel" does not have intuitive effect the user expects (in otherwords, the user expects the registration process to unroll itself when they press Cancel in the midst of a spinning registration).

My advice would be to disable all of the fields in the registration dialog including the Cancel button until the background registration processing completes.  If there was an error, the dialog should re-enable all the fields and wait for the user to make corrections and try again.  If there was no error, the dialog disappears after the spinner stops spinning and the system is registered.

Thus the Cancel button is only useful to close the registration dialog when the user decides not to press the Register dialog button.

Comment 9 errata-xmlrpc 2020-04-28 16:54:49 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:1849