Bug 1254818 - [RFE] : Need VM affinity rule for "hypervisor pools" within a cluster
Summary: [RFE] : Need VM affinity rule for "hypervisor pools" within a cluster
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: RFEs
Version: 3.5.3
Hardware: All
OS: Linux
Target Milestone: ovirt-4.0.0-rc
: 4.0.0
Assignee: Martin Sivák
QA Contact: Artyom
URL: http://www.ovirt.org/documentation/sl...
: 1266041 (view as bug list)
Depends On:
Blocks: 1338799
TreeView+ depends on / blocked
Reported: 2015-08-18 23:21 UTC by Pawan kumar Vilayatkar
Modified: 2019-12-16 04:53 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
You can now use the REST API to assign affinity labels to hosts and virtual machines. A virtual machine can be scheduled on a host as long as the host has all the affinity labels the virtual machine has. It is also supported if the host has additional affinity labels that the virtual machine does not have.
Clone Of:
Last Closed: 2016-08-23 20:28:40 UTC
oVirt Team: SLA
Target Upstream Version:

Attachments (Terms of Use)
Basic sanity test of labels for one VM and one Host (4.03 KB, text/plain)
2016-06-02 11:32 UTC, Martin Sivák
no flags Details

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1743 0 normal SHIPPED_LIVE Red Hat Virtualization Manager 4.0 GA Enhancement (ovirt-engine) 2016-09-02 21:54:01 UTC
oVirt gerrit 55873 0 master MERGED db: Add entity, tables and DAO implementation for Label 2016-05-22 06:54:06 UTC
oVirt gerrit 55874 0 master MERGED bll: Add the basic CRUD commands for Labels 2016-05-22 07:14:57 UTC
oVirt gerrit 55875 0 master MERGED sla: Label based scheduling policy units 2016-05-22 07:38:37 UTC
oVirt gerrit 55982 0 master MERGED Add support for affinity labels 2016-06-01 09:26:48 UTC
oVirt gerrit 56507 0 None None None 2016-06-02 10:57:27 UTC
oVirt gerrit 58484 0 ovirt-engine-4.0 MERGED restapi: Affinity label REST API implementation 2016-06-02 08:10:19 UTC
oVirt gerrit 58485 0 ovirt-engine-4.0 MERGED rest: Fix NPE when no headers are present during subcollection DELETE 2016-06-02 08:11:37 UTC

Description Pawan kumar Vilayatkar 2015-08-18 23:21:21 UTC
1. What is the nature and description of the request?

As a Windows Systems Engineer working for Red Hat Internal IT, I need rhev to provide host node or cpu affinity )or pooling). Microsoft licensing requires that a license be purchased for each physical CPU that Windows servers are running on, we need to ensure that VMs are bound to a group of physical processors (or host nodes) so that we no not need to purchase licenses for every processor across all of our RHEV environments. The hosts need to be run in a high availability mode.

2. Why do you need this? (List the business requirements here)

We need this feature to prevent Red Hat IT from spending millions of dollars in licensing for Microsoft Windows Licensing for te small number of Windows hosts we have.

3. How would you like to achieve this? (List the functional requirements here)

CPU affinity or resource pooling as is available in other Virt solutions.

4. Do you have any specific time-line dependencies?

no specific time line or requirements

5. List any affected packages or components.


6. Would you be able to assist in testing this functionality if implemented?

This is the choice of the Platform Operations team

7. For each functional requirement listed in the previous question, can test to confirm the requirement is successfully implemented.

we are willing to provide testing for this functionality

Comment 2 Doron Fediuck 2016-03-03 14:15:18 UTC
we're working on an improved feature for 4.0.
However, thanks to bug 1107512, you can handle your request in 3.6 using
VM pinning to multiple hosts.

Comment 3 Doron Fediuck 2016-03-20 10:06:27 UTC
*** Bug 1266041 has been marked as a duplicate of this bug. ***

Comment 6 Yaniv Lavi 2016-05-09 10:58:45 UTC
oVirt 4.0 Alpha has been released, moving to oVirt 4.0 Beta target.

Comment 9 Martin Sivák 2016-06-02 11:32:33 UTC
Created attachment 1164031 [details]
Basic sanity test of labels for one VM and one Host

This script can be used to do basic sanity testing of the affinity label functionality. It requires a running ovirt-engine (preconfigured values - ip, admin@internal:letmein) with one VM (does not have to be running) and one Host.

Comment 11 Artyom 2016-07-18 15:43:35 UTC
Verified on rhevm-4.0.2-0.2.rc1.el7ev.noarch
According to polarion plan https://polarion.engineering.redhat.com/polarion/#/project/RHEVM3/testrun?id=4%5F0%5FSLA%5FVMS%5Fto%5FHosts%5FLabels%5Frun

Comment 13 errata-xmlrpc 2016-08-23 20:28:40 UTC
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.


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