Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 957729 - [RFE] Expose VM Limit config values to rhevm-config
[RFE] Expose VM Limit config values to rhevm-config
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: RFEs (Show other bugs)
3.3.0
Unspecified Unspecified
high Severity unspecified
: ---
: 3.3.0
Assigned To: Frantisek Kobzik
Ilanit Stein
virt
: FutureFeature, Improvement
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-29 08:04 EDT by Andrew Cathrow
Modified: 2015-09-22 09 EDT (History)
7 users (show)

See Also:
Fixed In Version: is3
Doc Type: Enhancement
Doc Text:
A virtual machine's memory limit can be edited using the VM64BitMaxMemorySizeInMB, VM32BitMaxMemorySizeInMB and VMMinMemorySizeInMB options in rhevm-config. Likewise, a virtual machine's maximum number of CPUs can be edited using the MaxNumOfCpuPerSocket, MaxNumOfVmCpus, and MaxNumOfVmSockets options.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-01-21 12:19:40 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 15807 None None None Never
Red Hat Product Errata RHSA-2014:0038 normal SHIPPED_LIVE Important: Red Hat Enterprise Virtualization Manager 3.3.0 update 2014-01-21 17:03:06 EST

  None (edit)
Description Andrew Cathrow 2013-04-29 08:04:07 EDT
VM maximum CPU and memory config values should be user editable with rhevm-config
Comment 1 Itamar Heim 2013-04-29 09:47:48 EDT
workarounds:
1. change the db directly (not recommended).
2. use rhevm-config with an alternate property file with the requested property to change
Comment 2 Michal Skrivanek 2013-06-12 07:40:38 EDT
is the intent to limit it per OS? If so we can do that with OS info integration in OS config files. System wide still, though.
Comment 3 Andrew Cathrow 2013-06-12 07:43:23 EDT
(In reply to Michal Skrivanek from comment #2)
> is the intent to limit it per OS? If so we can do that with OS info
> integration in OS config files. System wide still, though.

No, in this BZ just to allow the setting to be changed by the user using engine-config
Comment 4 Michal Skrivanek 2013-06-12 08:32:38 EDT
and what about the CPU? To define Max number of VCPUs? per user or global or..?
Comment 5 Michal Skrivanek 2013-06-12 08:39:06 EDT
(In reply to Andrew Cathrow from comment #3)
> No, in this BZ just to allow the setting to be changed by the user using
> engine-config
ok - so what I'm asking is whether "OS info" integration instead where you can configure it per OS is good enough.
...and the previous comment
Comment 6 Itamar Heim 2013-06-13 07:02:38 EDT
memory is covered by os info.
for cpu, lets add to property file, and later consider if to move to osinfo as well.
Comment 7 Andrew Cathrow 2013-06-13 07:08:28 EDT
I don't believe OS info is relevant here.
The first step is to make sure that our virtual hardware limits are accessible.
That's different to guest limits.
Comment 8 Itamar Heim 2013-06-13 07:57:59 EDT
andrew, lets avoid confusion - please specify the config keys you want exposed
Comment 9 Michal Skrivanek 2013-06-14 06:07:40 EDT
for CPU we have: MaxNumOfCpuPerSocket, MaxNumOfVmCpus, MaxNumOfVmSockets
for memory: VM32BitMaxMemorySizeInMB, VM64BitMaxMemorySizeInMB and a minimum limit VMMinMemorySizeInMB

those 2 max memory limits are not currently exposed
Comment 11 Ilanit Stein 2013-07-15 02:33:21 EDT
Verified on is5, that all config values detailed on comment #9, can be user editable. 
Shouldn't be any validation/limit on the values themselves?


[root@istein-33 yum.repos.d]# engine-config -g MaxNumOfCpuPerSocket
MaxNumOfCpuPerSocket: 16 version: 3.0
MaxNumOfCpuPerSocket: 16 version: 3.1
MaxNumOfCpuPerSocket: 16 version: 3.2
MaxNumOfCpuPerSocket: 16 version: 3.3
[root@istein-33 yum.repos.d]# engine-config -g MaxNumOfVmCpus MaxNumOfCpuPerSocket
MaxNumOfVmCpus: 160 version: 3.1
MaxNumOfVmCpus: 160 version: 3.2
MaxNumOfVmCpus: 160 version: 3.3
MaxNumOfVmCpus: 64 version: 3.0
[root@istein-33 yum.repos.d]# engine-config -g MaxNumOfVmCpus
MaxNumOfVmCpus: 160 version: 3.1
MaxNumOfVmCpus: 160 version: 3.2
MaxNumOfVmCpus: 160 version: 3.3
MaxNumOfVmCpus: 64 version: 3.0
[root@istein-33 yum.repos.d]# engine-config -g MaxNumOfVmSockets
MaxNumOfVmSockets: 16 version: 3.0
MaxNumOfVmSockets: 16 version: 3.1
MaxNumOfVmSockets: 16 version: 3.2
MaxNumOfVmSockets: 16 version: 3.3
[root@istein-33 yum.repos.d]# engine-config -g VM32BitMaxMemorySizeInMB
VM32BitMaxMemorySizeInMB: 20480 version: general
[root@istein-33 yum.repos.d]# engine-config -g VM64BitMaxMemorySizeInMB
VM64BitMaxMemorySizeInMB: 524288 version: 3.0
VM64BitMaxMemorySizeInMB: 2097152 version: 3.1
VM64BitMaxMemorySizeInMB: 2097152 version: 3.2
VM64BitMaxMemorySizeInMB: 2097152 version: 3.3
[root@istein-33 yum.repos.d]# engine-config -g VMMinMemorySizeInMB
VMMinMemorySizeInMB: 256 version: general
[root@istein-33 yum.repos.d]# engine-config -s VM64BitMaxMemorySizeInMB=2097150
Please select a version:
1. 3.0
2. 3.1
3. 3.2
4. 3.3
2
[root@istein-33 yum.repos.d]# engine-config -g VM64BitMaxMemorySizeInMB
VM64BitMaxMemorySizeInMB: 524288 version: 3.0
VM64BitMaxMemorySizeInMB: 2097150 version: 3.1
VM64BitMaxMemorySizeInMB: 2097152 version: 3.2
VM64BitMaxMemorySizeInMB: 2097152 version: 3.3
[root@istein-33 yum.repos.d]# engine-config -s VM64BitMaxMemorySizeInMB=2097152
Please select a version:
1. 3.0
2. 3.1
3. 3.2
4. 3.3
2
[root@istein-33 yum.repos.d]# engine-config -g VM64BitMaxMemorySizeInMB
VM64BitMaxMemorySizeInMB: 524288 version: 3.0
VM64BitMaxMemorySizeInMB: 2097152 version: 3.1
VM64BitMaxMemorySizeInMB: 2097152 version: 3.2
VM64BitMaxMemorySizeInMB: 2097152 version: 3.3
[root@istein-33 yum.repos.d]# engine-config -s MaxNumOfVmCpus=160000
Please select a version:
1. 3.1
2. 3.2
3. 3.3
4. 3.0
2
[root@istein-33 yum.repos.d]# engine-config -g VM64BitMaxMemorySizeInMB
VM64BitMaxMemorySizeInMB: 524288 version: 3.0
VM64BitMaxMemorySizeInMB: 2097152 version: 3.1
VM64BitMaxMemorySizeInMB: 2097152 version: 3.2
VM64BitMaxMemorySizeInMB: 2097152 version: 3.3
[root@istein-33 yum.repos.d]# engine-config -g MaxNumOfVmCpus
MaxNumOfVmCpus: 160 version: 3.1
MaxNumOfVmCpus: 160000 version: 3.2
MaxNumOfVmCpus: 160 version: 3.3
MaxNumOfVmCpus: 64 version: 3.0
[root@istein-33 yum.repos.d]# engine-config -s MaxNumOfVmCpus=160
Please select a version:
1. 3.1
2. 3.2
3. 3.3
4. 3.0

Please select a version:
1. 3.1
2. 3.2
3. 3.3
4. 3.0
2
[root@istein-33 yum.repos.d]# engine-config -g MaxNumOfVmCpus
MaxNumOfVmCpus: 160 version: 3.1
MaxNumOfVmCpus: 160 version: 3.2
MaxNumOfVmCpus: 160 version: 3.3
MaxNumOfVmCpus: 64 version: 3.0
Comment 12 Michal Skrivanek 2013-07-15 03:13:25 EDT
it's a separate application so it won't do the same check as the engine backend would do. This tool is for semi-supported stuff which you shouldn't normally touch
Comment 14 errata-xmlrpc 2014-01-21 12:19:40 EST
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.

http://rhn.redhat.com/errata/RHSA-2014-0038.html

Note You need to log in before you can comment on or make changes to this bug.