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

Bug 1540955

Summary: The Affinity Positive/Negative Value is not updated in the UI window
Product: [oVirt] ovirt-engine Reporter: Polina <pagranat>
Component: Frontend.WebAdminAssignee: Andrej Krejcir <akrejcir>
Status: CLOSED CURRENTRELEASE QA Contact: Polina <pagranat>
Severity: high Docs Contact:
Priority: high    
Version: 4.2.1CC: akrejcir, bugs, mgoldboi, rik.theys
Target Milestone: ovirt-4.2.3Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.3.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.3.2 Doc Type: Enhancement
Doc Text:
The host to VM affinity can now be explicitly disabled, as described in Bug 1493149. This change adds 4 new columns to the affinity group table in the UI: - 'vm polarity' - Shows if the VM affinity is positive, negative or disabled - 'vm enforcing' - Shows if the VM affinity is enforcing or not - 'host polarity' - Shows if the VM to host affinity is positive, negative or disabled - 'host enforcing' - Shows if the VM to host affinity is enforcing or not
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-10 06:29:20 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: 1493149    

Description Polina 2018-02-01 12:07:44 UTC
Description of problem:The Affinity Positive/Negative Value is not updated in the UI window


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

How reproducible:100%


Steps to Reproduce:
1.In the created group update Host rule from Disabled to Positive/Negative.
2.Open the Edit Affinity Group dialog again.
3.Send Rest API :
https://{{host}}/ovirt-engine/api/clusters/355bda00-232f-4b50-91c8-acc3efd607e2/affinitygroups


Actual results:
In UI we see the previous not updated value - "Disabled" while in rest response it is <enabled>true</enabled>

Expected results: value in UI window must be updated


Additional info:

Comment 1 Martin Sivák 2018-03-07 11:31:39 UTC
*** Bug 1551544 has been marked as a duplicate of this bug. ***

Comment 2 Yaniv Kaul 2018-03-14 07:45:12 UTC
Any updates?

Comment 3 Andrej Krejcir 2018-03-14 09:18:08 UTC
Working on it. I posted the backend patches. The frontend one needs a little more work.

Comment 4 Moran Goldboim 2018-03-14 11:47:06 UTC
removing blocker, not a regression from 4.1. 
the value actually is changing just not reflected in the UI. still a high priority.

Comment 5 Polina 2018-04-24 08:54:59 UTC
Verified on rhv-release-4.2.3-2-001.noarch.
The window is updated correctly, like the rest API response.

Comment 6 Sandro Bonazzola 2018-05-10 06:29:20 UTC
This bugzilla is included in oVirt 4.2.3 release, published on May 4th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.3 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.