Bug 1540955 - The Affinity Positive/Negative Value is not updated in the UI window
Summary: The Affinity Positive/Negative Value is not updated in the UI window
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.2.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ovirt-4.2.3
: 4.2.3.2
Assignee: Andrej Krejcir
QA Contact: Polina
URL:
Whiteboard:
: 1551544 (view as bug list)
Depends On:
Blocks: 1493149
TreeView+ depends on / blocked
 
Reported: 2018-02-01 12:07 UTC by Polina
Modified: 2018-05-10 06:29 UTC (History)
4 users (show)

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
Clone Of:
Environment:
Last Closed: 2018-05-10 06:29:20 UTC
oVirt Team: SLA
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1540973 0 unspecified CLOSED hosts rule in affinity group is always enabled in rest response API (even if disabled in UI ) 2021-02-22 00:41:40 UTC
oVirt gerrit 88968 0 master MERGED core: Change initial values of AffinityGroup fields. 2018-03-23 13:08:36 UTC
oVirt gerrit 88969 0 master MERGED core: Add vds_affinity_enabled column to affinity_groups table 2018-03-23 13:08:42 UTC
oVirt gerrit 88970 0 master MERGED core: Use bulk DB calls when validating affinity groups 2018-03-23 13:08:48 UTC
oVirt gerrit 88971 0 master MERGED core: Add checks if VDS affinity is enabled to various places 2018-03-23 13:08:55 UTC
oVirt gerrit 88997 0 master MERGED restapi: Host affinity rules can be disabled using the API 2018-03-23 13:09:05 UTC
oVirt gerrit 89008 0 master MERGED webadmin: Fill values in AffinityGroupModel and add columns to affinity table 2018-04-09 11:06:48 UTC
oVirt gerrit 89372 0 ovirt-engine-4.2 MERGED core: Change initial values of AffinityGroup fields. 2018-04-09 15:11:20 UTC
oVirt gerrit 89373 0 ovirt-engine-4.2 MERGED core: Add vds_affinity_enabled column to affinity_groups table 2018-04-09 15:11:29 UTC
oVirt gerrit 89374 0 ovirt-engine-4.2 MERGED core: Use bulk DB calls when validating affinity groups 2018-04-09 15:11:38 UTC
oVirt gerrit 89375 0 ovirt-engine-4.2 MERGED core: Add checks if VDS affinity is enabled to various places 2018-04-09 15:11:46 UTC
oVirt gerrit 89376 0 ovirt-engine-4.2 MERGED restapi: Host affinity rules can be disabled using the API 2018-04-09 15:11:56 UTC
oVirt gerrit 89993 0 ovirt-engine-4.2 MERGED webadmin: Fill values in AffinityGroupModel and add columns to affinity table 2018-04-09 15:12:02 UTC

Internal Links: 1540973

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.


Note You need to log in before you can comment on or make changes to this bug.