Bug 1083926
Summary: | The hosts max_scheduling_memory should be updated when a live migration starts. | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Roman Hodain <rhodain> |
Component: | ovirt-engine | Assignee: | Martin Sivák <msivak> |
Status: | CLOSED ERRATA | QA Contact: | Artyom <alukiano> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 3.3.0 | CC: | agkesos, bazulay, dfediuck, iheim, lpeer, mavital, msivak, oramraz, rbalakri, Rhev-m-bugs, sherold, tdosek, yeylon |
Target Milestone: | --- | ||
Target Release: | 3.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | sla | ||
Fixed In Version: | vt1.3 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-11 17:58:45 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: | |||
Bug Blocks: | 1142923, 1156165 |
Description
Roman Hodain
2014-04-03 09:14:23 UTC
The RESTAPI gets the max_scheduling_memory value directly from the backend with each invocation, it doesn't cache it in any way, so this probably needs to be changed in the backend. thoughts? The scheduling algorithm updates pending cpu and memory values for the destination host once it selects it. This happens before the migration is started. The bad value comes from VDS.calculateFreeVirtualMemory that does not use the pending field in the computation. The result is not used anywhere except REST. Checked on ovirt-engine-3.5.0-0.0.master.20140804172041.git23b558e.el6.noarch All looks fine except one thing: Have host with <max_scheduling_memory>16268656640</max_scheduling_memory> and vm with memory: 2048 and guaranteed_memory: 1024 When I start migration I see that: <max_scheduling_memory>15194914816</max_scheduling_memory> so we have reservation on host for 1024mb but just before migration finish I can see that for seconds returns old value: <max_scheduling_memory>16268656640</max_scheduling_memory> and after migration finished <max_scheduling_memory>14053015552</max_scheduling_memory> so vm reserved all 2048mb Question now why it for a second jump to old value, and when you have a big amount of vms that migrate from host to host it can be source of problem. Please open a new bug for that. It is probably related to synchronization of the database writes for memory pending counters and host info coming from vdsm. ok, so I will recheck this one and if it ok, will verified this one Verified on rhevm-3.5.0-0.21.el6ev.noarch 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://rhn.redhat.com/errata/RHSA-2015-0158.html |