Bug 2024086

Summary: [RFE] Add a host to affinity group by its name
Product: [oVirt] ovirt-engine Reporter: Arik <ahadas>
Component: RestAPIAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: Polina <pagranat>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4.9CC: bugs
Target Milestone: ovirt-4.5.0Keywords: FutureFeature
Target Release: 4.5.0Flags: pm-rhel: ovirt-4.5?
pm-rhel: planning_ack?
pm-rhel: devel_ack+
pm-rhel: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.5.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-20 06:33:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.