Bug 1551582
| Summary: | [downstream clone - 4.1.10] engine tries to balance vms that are down. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | RHV bug bot <rhv-bugzilla-bot> |
| Component: | ovirt-engine | Assignee: | Andrej Krejcir <akrejcir> |
| Status: | CLOSED ERRATA | QA Contact: | Polina <pagranat> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.1.6 | CC: | akrejcir, apinnick, bperkins, lsurette, lveyde, mavital, mgoldboi, rbalakri, Rhev-m-bugs, srevivo, ykaul |
| Target Milestone: | ovirt-4.1.10 | Keywords: | ZStream |
| Target Release: | --- | Flags: | lsvaty:
testing_plan_complete-
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Previously, if a virtual machine with a positive affinity to a host was down, the affinity rules enforcer tried to migrate it, because it was not running on the specified host. When migration failed, the affinity rules enforcer repeated tried to migrate the same virtual machine, ignoring other virtual machines that violated affinity rules. In this release, the affinity rules enforcer ignores virtual machines that are down.
|
Story Points: | --- |
| Clone Of: | 1537343 | Environment: | |
| Last Closed: | 2018-03-20 16:37:08 UTC | Type: | --- |
| 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: | 1537343 | ||
| Bug Blocks: | |||
|
Description
RHV bug bot
2018-03-05 12:53:06 UTC
verified in rhvm-4.2.2-0.1.el7.noarch
created 3 affinity groups for 3 VMs (see xml below).
Tried scenarios:
1. create affinity group for powered off VM. check in engine.log that there are no attempts to migrate.
2. create affinity group for running VM. Then Power Off and check engine.log for no errors.
<affinity_group>
<name>af_group3</name>
<hosts_rule>
<enabled>true</enabled>
<enforcing>true</enforcing>
<positive>true</positive>
</hosts_rule>
<vms_rule>
<enabled>false</enabled>
<enforcing>true</enforcing>
<positive>false</positive>
</vms_rule>
<hosts>
<host href="/ovirt-engine/api/hosts/b97f27e5-1307-4dfa-a285-6fad766ebe82" id="b97f27e5-1307-4dfa-a285-6fad766ebe82"/>
</hosts>
<vms>
<vm href="/ovirt-engine/api/vms/8b60e9a2-c834-4f47-a30b-dbb2e6d8f07b" id="8b60e9a2-c834-4f47-a30b-dbb2e6d8f07b"/>
</vms>
</affinity_group>
<affinity_group>
<name>af_group1</name>
<hosts_rule>
<enabled>true</enabled>
<enforcing>false</enforcing>
<positive>true</positive>
</hosts_rule>
<positive>true</positive>
<vms_rule>
<enabled>true</enabled>
<enforcing>false</enforcing>
<positive>true</positive>
</vms_rule>
<hosts>
<host href="/ovirt-engine/api/hosts/9a50c448-61a1-4085-bfd1-62a6ee0b5525" id="9a50c448-61a1-4085-bfd1-62a6ee0b5525"/>
</hosts>
<vms>
<vm href="/ovirt-engine/api/vms/0cded25e-63ef-43ed-996c-9cfc1934d37a" id="0cded25e-63ef-43ed-996c-9cfc1934d37a"/>
</vms>
</affinity_group>
<affinity_group>
<name>af_group2</name>
<hosts_rule>
<enabled>true</enabled>
<enforcing>false</enforcing>
<positive>true</positive>
</hosts_rule>
<positive>true</positive>
<vms_rule>
<enabled>true</enabled>
<enforcing>false</enforcing>
<positive>true</positive>
</vms_rule>
<hosts>
<host href="/ovirt-engine/api/hosts/9a50c448-61a1-4085-bfd1-62a6ee0b5525" id="9a50c448-61a1-4085-bfd1-62a6ee0b5525"/>
</hosts>
<vms>
<vm href="/ovirt-engine/api/vms/206a53a3-d04a-4e0c-83c5-f76b9757af40" id="206a53a3-d04a-4e0c-83c5-f76b9757af40"/>
</vms>
</affinity_group>
(Originally by Polina Agranat)
verified on rhv-release-4.1.10-5-001.noarch. Run the following scenarios. No errors in engine.log Create affinity group with: - two VMs - Up and Down, the stop the running VM. - two VMs Down the following groups: - VM affinity positive, Host affinity positive, Enforcing true/false. - VM affinity negative, Host affinity negative, Enforcing true/false. - VM affinity positive, Host affinity negative, Enforcing true/false. - VM affinity negative, Host affinity positive, Enforcing true/false. 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/RHBA-2018:0562 BZ<2>Jira Resync sync2jira sync2jira |