Bug 2024086 - [RFE] Add a host to affinity group by its name
Summary: [RFE] Add a host to affinity group by its name
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.4.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Ori Liel
QA Contact: Polina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-17 09:41 UTC by Arik
Modified: 2022-04-20 06:33 UTC (History)
1 user (show)

Fixed In Version: ovirt-engine-4.5.0
Clone Of:
Environment:
Last Closed: 2022-04-20 06:33:59 UTC
oVirt Team: Virt
Embargoed:
pm-rhel: ovirt-4.5?
pm-rhel: planning_ack?
pm-rhel: devel_ack+
pm-rhel: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-44040 0 None None None 2021-11-17 09:42:05 UTC
oVirt gerrit 117734 0 master MERGED restapi: Add a host to affinity group by its name 2022-01-02 16:41:44 UTC
oVirt gerrit 117887 0 master MERGED api-model: access affinity group host by host name 2021-12-13 07:52:01 UTC
oVirt gerrit 118016 0 master ABANDONED restapi: Remove a host from affinity group by its name 2022-01-02 12:02:36 UTC

Description Arik 2021-11-17 09:41:29 UTC
It works using the identifier of the host but we don't look for the host by its name (if only the name is specified) as we should

Comment 2 Polina 2022-03-22 17:17:45 UTC
verified on ovirt-engine-4.5.0.1-601.f26e9ea8cac5.3.el8ev.noarch


POST https://{{host}}/ovirt-engine/api/clusters/{clusterId}/affinitygroups/{affinitygroupID}/hosts
body:
<host><name>host_mixed_2</name></host>

response: 200

<action>
    <status>complete</status>
</action>

Comment 3 Sandro Bonazzola 2022-04-20 06:33:59 UTC
This bugzilla is included in oVirt 4.5.0 release, published on April 20th 2022.

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


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