Bug 1268373
| Summary: | Enforce engine VM memory configuration against available memory | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-hosted-engine-setup | Reporter: | Simone Tiraboschi <stirabos> |
| Component: | UX | Assignee: | Rafael Martins <rmartins> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Artyom <alukiano> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 1.3.0 | CC: | bmcclain, bugs, didi, lveyde, mavital, rgolan, rmartins, sbonazzo, stirabos, ylavi |
| Target Milestone: | ovirt-3.6.1 | Keywords: | Triaged, ZStream |
| Target Release: | 1.3.1 | Flags: | rule-engine:
ovirt-3.6.z+
bmcclain: planning_ack+ sbonazzo: devel_ack+ istein: testing_ack+ |
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
ovirt-hosted-engine-setup now validates the amount of memory to be used by hosted-engine virtual machine against the memory available in the host system.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-02-23 09:19:20 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1284979 | ||
|
Description
Simone Tiraboschi
2015-10-02 17:24:01 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. What does the ha service do in this situation. Are we safe there? (In reply to Yaniv Dary from comment #2) > What does the ha service do in this situation. Are we safe there? Am not sure what you're asking by "safe" The ha tries to run a vm with the amount of memory told. If Qemu can't maloc this amount for the VM, it will simply fail. (In reply to Roy Golan from comment #3) > (In reply to Yaniv Dary from comment #2) > > What does the ha service do in this situation. Are we safe there? > > Am not sure what you're asking by "safe" > > The ha tries to run a vm with the amount of memory told. If Qemu can't maloc > this amount for the VM, it will simply fail. What will happen if no host with enough memory exists? HA is subtracting some points from the host score if the free memory value is low so the host with more free memory in general will win. After a full shutdown no other VMs should be there so restarting the engine VM should not be an issue. We can have an issue if the host where the engine VM was running goes down and no other alive host has enough memory for it: I don't think that the HA agent is able to shutdown any other VM to automatically restart the engine. Roy, do we have any automatic memory reservation criteria based on hosted-engine requirements? we have ha reservation feature, but first I do not sure if it will recognize HE vm as HA vm and also it does not prevent from starting vm and take all memory from host, it just show some warning message Verified on ovirt-hosted-engine-setup-1.3.3.3-1.el7ev.noarch
Please specify the memory size of the VM in MB [Defaults to appliance OVF value: 4096]: -1
[WARNING] Minimum requirements for memory size not met
Continue with specified memory size? (Yes, No) [No]:
Please specify the memory size of the VM in MB [Defaults to appliance OVF value: 4096]: 1024
[WARNING] Minimum requirements for memory size not met
Continue with specified memory size? (Yes, No) [No]: No
Please specify the memory size of the VM in MB [Defaults to appliance OVF value: 4096]: a
[ ERROR ] Invalid memory size specified: a
Please specify the memory size of the VM in MB [Defaults to appliance OVF value: 4096]: dasda
[ ERROR ] Invalid memory size specified: dasda
Please specify the memory size of the VM in MB [Defaults to appliance OVF value: 4096]: 65536
[WARNING] Invalid memory size specified: 65536, while only 15005 are available on the host
|