Bug 928689
| Summary: | [Backend] CPU pinning can be set on non migratable VM's with no specific host to run on | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Ido Begun <ibegun> | ||||
| Component: | ovirt-engine | Assignee: | ofri <omasad> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ido Begun <ibegun> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.2.0 | CC: | acathrow, dfediuck, dyasny, gchaplik, iheim, lpeer, oramraz, pstehlik, Rhev-m-bugs, sgrinber, yeylon, ykaul | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 3.2.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | sla | ||||||
| Fixed In Version: | sf15 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 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: | |||||||
| Attachments: |
|
||||||
|
Description
Ido Begun
2013-03-28 08:54:54 UTC
This will be allowed (in 3.3). When the user selects 'Do not allow migration' and 'Run on any host in cluster' the engine will select a host to run on on Run-Vm. The VM will not migrate from that host once it is running. (for each run of the VM the host may choose a different host) correction: When the user selects 'Do not allow migration' and 'Run on any host in cluster' the engine will select a host to run on on Run-Vm. But "CPU pinning will not be allowed in this case"
A = cpu pinning
B = use host cpu
* = will be available on 3.2 - deprecated from 3.3 onward
** = will be available from 3.3 (currently blocked on Run-VM)
For RHEV:
Any Selected
Host Host
-------------------------------------------------------------
Allow auto migration
Allow Man. migration B*
Do not allow migration B** A+B
For oVirt:
Any Selected
Host Host
-------------------------------------------------------------
Allow auto migration A
Allow Man. migration B* A
Do not allow migration B** A+B
Tested on SF13.1: In UI: Setting CPU pinning to a VM with "Do not allow migration" with "Run on any host in cluster" is disabled. In API: <vm> ... <cpu> <cpu_tune> <vcpu_pin vcpu="0" cpu_set="0"/> </cpu_tune> </cpu> <placement_policy> <affinity>pinned</affinity> </placement_policy> </vm> Status: 200 OK (In reply to comment #3) > Tested on SF13.1: > > In UI: > Setting CPU pinning to a VM with "Do not allow migration" with "Run on any > host in cluster" is disabled. > Ido, based on comment 2 pinning should always fail in RHEV, unless selected "Do not allow migration + "Selected Host". So it works as expected. Why did you fail it? (In reply to comment #4) > (In reply to comment #3) > > Tested on SF13.1: > > > > In UI: > > Setting CPU pinning to a VM with "Do not allow migration" with "Run on any > > host in cluster" is disabled. > > > > Ido, > based on comment 2 pinning should always fail in RHEV, unless selected > "Do not allow migration + "Selected Host". So it works as expected. Why > did you fail it? I was able to reproduce the bug using API: it's possible to set CPU pinning when selecting "Do not allow migration" and "Run on any host in cluster". OK - SF15 In addition to being blocked in UI, CPU pinning is now blocked when setting it on a VM with no specific host to run on, and a proper error is given: [Cannot set host CPU pinning when host is not selected] 3.2 has been released 3.2 has been released 3.2 has been released |