Bug 1392393

Summary: [RFE] Soft host to VM affinity support
Product: [oVirt] ovirt-engine Reporter: Martin Sivák <msivak>
Component: Backend.CoreAssignee: Yanir Quinn <yquinn>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: medium Docs Contact:
Priority: high    
Version: 4.0.5.5CC: bgraveno, bugs, dfediuck, mgoldboi
Target Milestone: ovirt-4.1.0-betaKeywords: FutureFeature, Triaged
Target Release: 4.1.0.2Flags: rule-engine: ovirt-4.1+
alukiano: testing_plan_complete+
mgoldboi: planning_ack+
dfediuck: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Support for virtual machine to host affinity has been added. This enables users to create affinity groups for virtual machines to be associated with designated hosts. Virtual machine host affinity can be disabled or enabled on request. Virtual machine to host affinity is useful in the following scenarios: - Hosts with specific hardware are required by certain virtual machines. - Virtual machines that form a logical management unit can be run on a certain set of hosts for SLA or management. For example a separate rack for each customer. - Virtual machines with licensed software must run on specific physical machines to avoid scheduling virtual machines to hosts that need to be decommissioned or upgraded.
Story Points: ---
Clone Of:
: 1404660 (view as bug list) Environment:
Last Closed: 2017-02-16 14:05:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1306263    
Bug Blocks: 1404660, 1427758    

Description Martin Sivák 2016-11-07 12:33:06 UTC
Certain set of VMs form a logical management unit and should run on a certain set of hosts for SLA or management (e.g. a separate rack for each customer). The VMs can run anywhere in case the dedicated rack needs to be turned off, but should return to their dedicated hosts once the rack is back up.

This would be best implemented by enhancing the current VM to VM soft affinity rules to support hosts as well. The other piece that is needed is to add affinity based balancing operation to allow the VMs to return to the proper host when it becomes available.

Comment 1 Red Hat Bugzilla Rules Engine 2016-11-08 07:31:06 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 2 Martin Sivák 2016-12-05 10:56:43 UTC
The merged patch was not the only one that needs to get in.

Comment 3 Yanir Quinn 2016-12-08 09:05:53 UTC
Additional patches will be added.

Comment 4 Martin Sivák 2016-12-14 11:41:08 UTC
Lets use this bug to track general Host affinity only.

Comment 5 Yaniv Lavi 2016-12-14 16:24:35 UTC
This bug had requires_doc_text flag, yet no documentation text was provided. Please add the documentation text and only then set this flag.

Comment 6 Artyom 2017-02-16 08:45:59 UTC
Verified on the rhevm-4.1.1-0.1.el7.noarch
According to the polarion plan.