Merge "Min value of max_memory is been added"
This commit is contained in:
commit
efdcc182a5
|
@ -31,7 +31,7 @@ ALL_DPM_OPTS = [
|
|||
cfg.IntOpt('max_processors', help="""
|
||||
Maximum number of shared physical IFL processors on the target CPC that can
|
||||
be used for this OpenStack hypervisor host"""),
|
||||
cfg.IntOpt('max_memory', help="""
|
||||
cfg.IntOpt('max_memory', min=512, help="""
|
||||
Maximum amount of memory (in MiB) on the target CPC that can be used for
|
||||
this OpenStack hypervisor host"""),
|
||||
cfg.IntOpt('max_instances', default=-1, min=-1, help="""
|
||||
|
|
|
@ -30,3 +30,7 @@ class TestConfigParameters(TestCase):
|
|||
def test_min_value(self):
|
||||
self.assertRaises(ValueError, self.CONF.set_override, "max_instances",
|
||||
-2, group="dpm")
|
||||
|
||||
def test_max_memory_min_value(self):
|
||||
self.assertRaises(ValueError, self.CONF.set_override, "max_memory",
|
||||
500, group="dpm")
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
upgrade:
|
||||
- Minimum value of 512 has been set for the configuration
|
||||
option ``max_memory``.This is the minimum memory needed
|
||||
by the host to launch an instance.
|
Loading…
Reference in New Issue