+++ This bug is an upstream to downstream clone. The original bug is: +++ +++ bug 1769212 +++ ====================================================================== Description of problem: the Affinity Group created by Rest API has no labels even they are defined in the request body Version-Release number of selected component (if applicable): ovirt-engine-4.3.7.1-0.1.el7.noarch How reproducible:100% Steps to Reproduce: 1.Create Label (host or vm or both) in Compute/Clusters/Cluster/Affinity Labels tag 2.POST https://{{host}}/ovirt-engine/api/clusters/9684ce59-4549-4204-bb6f-9a6f685a27c8/affinitygroups <affinity_group> <name>test_2</name> <enforcing>true</enforcing> <hosts_rule> <enabled>true</enabled> <enforcing>true</enforcing> <positive>true</positive> </hosts_rule> <positive>true</positive> <priority>1</priority> <vms_rule> <enabled>true</enabled> <enforcing>true</enforcing> <positive>true</positive> </vms_rule> <host_labels> <affinity_label id="90e8e1ee-0968-47c1-ac57-685d817179bf"/> </host_labels> <hosts/> <vm_labels> <affinity_label id="90e8e1ee-0968-47c1-ac57-685d817179bf"/> </vm_labels> <vms/> </affinity_group> Actual results: The responce is 201 but the labels are missing <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <affinity_group href="/ovirt-engine/api/clusters/9684ce59-4549-4204-bb6f-9a6f685a27c8/affinitygroups/724d8529-acf4-49d3-b46c-dc91478cb2ae" id="724d8529-acf4-49d3-b46c-dc91478cb2ae"> <name>test_2</name> <link href="/ovirt-engine/api/clusters/9684ce59-4549-4204-bb6f-9a6f685a27c8/affinitygroups/724d8529-acf4-49d3-b46c-dc91478cb2ae/hostlabels" rel="hostlabels"/> <link href="/ovirt-engine/api/clusters/9684ce59-4549-4204-bb6f-9a6f685a27c8/affinitygroups/724d8529-acf4-49d3-b46c-dc91478cb2ae/vmlabels" rel="vmlabels"/> <link href="/ovirt-engine/api/clusters/9684ce59-4549-4204-bb6f-9a6f685a27c8/affinitygroups/724d8529-acf4-49d3-b46c-dc91478cb2ae/vms" rel="vms"/> <enforcing>true</enforcing> <hosts_rule> <enabled>true</enabled> <enforcing>true</enforcing> <positive>true</positive> </hosts_rule> <positive>true</positive> <priority>1</priority> <vms_rule> <enabled>true</enabled> <enforcing>true</enforcing> <positive>true</positive> </vms_rule> <cluster href="/ovirt-engine/api/clusters/9684ce59-4549-4204-bb6f-9a6f685a27c8" id="9684ce59-4549-4204-bb6f-9a6f685a27c8"/> <host_labels/> <hosts/> <vm_labels/> <vms/> </affinity_group> Expected results: the group must contain labels Additional info: (Originally by Polina Agranat)
Here is the patch: https://gerrit.ovirt.org/#/c/105449/ I cannot add it to the 'Links' section above, because of a bugzilla internal error.
WARN: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason: [Found non-acked flags: '{'rhevm-4.3.z': '?'}', ] For more info please contact: rhv-devops: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason: [Found non-acked flags: '{'rhevm-4.3.z': '?'}', ] For more info please contact: rhv-devops
verified on ovirt-engine-4.3.8.1-0.1.master.el7.noarch
INFO: Bug status (VERIFIED) wasn't changed but the folowing should be fixed: [No relevant external trackers attached] For more info please contact: rhv-devops
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/RHSA-2020:0498