Bug 1767335

Summary: [downstream clone - 4.3.7] Removing of Affinity Label in Edit VM window throws java.lang.UnsupportedOperationException
Product: Red Hat Enterprise Virtualization Manager Reporter: RHV bug bot <rhv-bugzilla-bot>
Component: ovirt-engineAssignee: Andrej Krejcir <akrejcir>
Status: CLOSED ERRATA QA Contact: Polina <pagranat>
Severity: high Docs Contact:
Priority: medium    
Version: unspecifiedCC: bugs, rbarry, Rhev-m-bugs
Target Milestone: ovirt-4.3.7Keywords: Rebase
Target Release: 4.3.7   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.3.7.2 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1758786 Environment:
Last Closed: 2019-12-12 10:36:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1758786    
Bug Blocks:    

Description RHV bug bot 2019-10-31 08:21:30 UTC
+++ This bug is an upstream to downstream clone. The original bug is: +++
+++   bug 1758786 +++
======================================================================

Created attachment 1622785 [details]
engine.log

Description of problem:java.lang.UnsupportedOperationException while Removing Affinity Label in Edit VM window  


Version-Release number of selected component (if applicable):
ovirt-engine-4.3.6.6-0.1.el7.noarch

How reproducible:100%


Steps to Reproduce:

1. In Cluster/Affinity Labels tab create two labels with the same VM - In Open Edit window/AffinityLabels tab see that the VM is assigned to two labels.
2. Try to remove one of the selected labels.

Actual results:
2019-10-05 18:30:04,634+03 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-3) [e2520fe3-9750-4df7-83e3-c6a8fe0bf288] Lock Acquired to object 'EngineLock:{exclusiveLocks='[golden_env_mixed_virtio_0=VM_NAME]', sharedLocks='[82455688-2265-403a-a5c1-b34c26ed2e3e=VM]'}'
2019-10-05 18:30:04,647+03 ERROR [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-3) [e2520fe3-9750-4df7-83e3-c6a8fe0bf288] Error during ValidateFailure.: java.lang.UnsupportedOperationException
        at java.util.Collections$UnmodifiableCollection.remove(Collections.java:1060) [rt.jar:1.8.0_222]

Expected results: label removed 


Additional info: log attached

(Originally by Polina Agranat)

Comment 1 RHV bug bot 2019-10-31 08:21:32 UTC
the same exception is thrown in another scenario while nothing updated in the Edit VM window , just open and close:

1. on cluster create Label1 - VM1, VM2 and Label2 with VM1, VM2, VM3.
2. Click on VM3 in Compute/VMs window, open Edit Virtual VM window/Affinity Labels. Change nothing and close.

Result: the exception is thrown.
Heslo123

(Originally by Polina Agranat)

Comment 2 Polina 2019-11-03 09:38:02 UTC
tested on the latest build http://bob.eng.lab.tlv.redhat.com/builds/4.3/rhv-4.3.7-3/rhv-release-4.3.7-3-001.noarch.rpm. still happens.

Comment 4 Polina 2019-11-17 13:57:35 UTC
verified on ovirt-engine-4.3.7.2-0.1.el7.noarch. No exception .

Comment 6 errata-xmlrpc 2019-12-12 10:36:35 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:4229