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

Bug 1758786

Summary: Removing of Affinity Label in Edit VM window throws java.lang.UnsupportedOperationException
Product: [oVirt] ovirt-engine Reporter: Polina <pagranat>
Component: BLL.VirtAssignee: Andrej Krejcir <akrejcir>
Status: CLOSED CURRENTRELEASE QA Contact: Polina <pagranat>
Severity: high Docs Contact:
Priority: medium    
Version: 4.3.6.3CC: bugs, rbarry
Target Milestone: ovirt-4.4.0Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1767335 (view as bug list) Environment:
Last Closed: 2020-05-20 20:01:51 UTC Type: Bug
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:    
Bug Blocks: 1767335    
Attachments:
Description Flags
engine.log none

Description Polina 2019-10-05 15:43:24 UTC
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

Comment 1 Polina 2019-10-06 11:17:20 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

Comment 3 Polina 2019-11-17 12:20:19 UTC
verified on ovirt-engine-4.3.7.2-0.1.el7.noarch. No exception .

Comment 4 Polina 2020-01-23 16:20:44 UTC
verified on rhv-4.4.0-14 according to https://bugzilla.redhat.com/show_bug.cgi?id=1758786#c0 and c1

Comment 5 Sandro Bonazzola 2020-05-20 20:01:51 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.