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

Bug 1461645

Summary: [Admin Portal] Uncaught exception occurred when deleting template from storage domain (related to delete protection?)
Product: Red Hat Enterprise Virtualization Manager Reporter: vaibhav <vpagar>
Component: ovirt-web-uiAssignee: Tal Nisan <tnisan>
Status: CLOSED ERRATA QA Contact: Raz Tamir <ratamir>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.6CC: aefrat, lsvaty, ratamir, tnisan, vpagar, ylavi
Target Milestone: ovirt-4.2.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-15 17:56:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
UI.log
none
Screenshot of the error pop-up when deleting a write-protected template none

Description vaibhav 2017-06-15 04:33:39 UTC
Description of problem:
Uncaught exception occurred when deleting template from storage domain. 

~~~~~~
2017-06-13 19:25:36,813 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-8) [] Permutation name: 48526BF4A45B24ED366586696A8D363E
2017-06-13 19:25:36,813 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-8) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: undefined
	at Unknown.Ev(webadmin-0.js@25078)
	at Unknown.Mv(webadmin-0.js@41)
	at Unknown.X7(webadmin-0.js@19)
	at Unknown.$7(webadmin-0.js@19)
	at Unknown.i7(webadmin-0.js@117)
	at Unknown.oq(webadmin-0.js@26)
	at Unknown.yq(webadmin-0.js@23798)
	at Unknown.Y2(webadmin-0.js@149)
	at Unknown.qq(webadmin-0.js@112)
	at Unknown.R9e(webadmin-0.js@964)
	at Unknown.z$e(webadmin-0.js@85)
	at Unknown.B0e(webadmin-0.js@46)
	at Unknown.Sx(webadmin-0.js@29)
	at Unknown.Wx(webadmin-0.js@57)
	at Unknown.eval(webadmin-0.js@54)
	at Unknown.OC(webadmin-0.js@20)
	at Unknown.v9e(webadmin-0.js@98)
	at Unknown.lvl(webadmin-0.js@10635)
	at Unknown.R9e(webadmin-0.js@582)
	at Unknown.z$e(webadmin-0.js@85)
	at Unknown.y$e(webadmin-0.js@60)
	at Unknown.z0e(webadmin-0.js@52)
	at Unknown.Sx(webadmin-0.js@29)
	at Unknown.Wx(webadmin-0.js@57)
	at Unknown.eval(webadmin-0.js@54)
Caused by: java.lang.ClassCastException
~~~~~~~~~

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

RHEV 4.0.6 

Actual results:
uncaught exception

Expected results:
ui without uncaught exception popup

Additional info:

Comment 1 vaibhav 2017-06-15 04:38:34 UTC
Created attachment 1287904 [details]
UI.log

Comment 2 Allon Mureinik 2017-06-18 09:06:16 UTC
Tal, isn't this a dup of a bug we already have our sights on?

Comment 5 Tal Nisan 2017-06-18 10:15:59 UTC
Hard to tell, the logs are obfuscated, I'll try and reproduce in the meanwhile but vaibhav, can you please add logs after installing the symbols package?

Comment 6 vaibhav 2017-06-19 04:26:04 UTC
Hello Tal,

I tried to remove template from API and then I got the exact error message because of what it was failing. I disabled "Delete Protection" from database and tried to delete template so this time I didn't got any GUI error.

Command used to delete template :- 

~~~~~~~~~~~~~~~~~~~
[root@dhcp8-54 ~]# curl -k --request DELETE --header 'Version: 4' --header 'Accept: application/xml' --user 'admin@internal:redhat.com' https://dhcp8-54.gsslab.pnq.redhat.com/ovirt-engine/api/templates/67cef94c-0900-4b48-9a65-89349ebcb0f4
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fault>
    <detail>[Cannot remove Template. Delete protection is enabled. In order to delete, disable Delete protection first.]</detail>
    <reason>Operation Failed</reason>
</fault>
~~~~~~~~~~~~~~~~~~~

I think the error in GUI should give error about "Delete protection"

Comment 7 Allon Mureinik 2017-09-03 15:10:59 UTC
Created attachment 1321525 [details]
Screenshot of the error pop-up when deleting a write-protected template

This seems to have been solved as part of the 4.2 GUI overhaul. Moving to MODIFIED.

Comment 8 Raz Tamir 2017-11-15 13:52:07 UTC
Verified on ovirt-engine-4.2.0-0.0.master.20171113223918.git25568c3.el7.centos

No exception when deleting template - UI and API

Comment 11 errata-xmlrpc 2018-05-15 17:56:17 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-2018:1515

Comment 12 Franta Kust 2019-05-16 13:07:37 UTC
BZ<2>Jira Resync