MaxMemoryExceededError uses max_processors value

See 3bb1595d1f/nova_dpm/virt/dpm/utils.py (L38-L44)
Especially the line: config_mem=CONF.dpm.max_processors,
That should be "max_memory".

Closes-Bug: #1687051

Change-Id: I3e631550b29647234404638e201f40f362311d89
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
This commit is contained in:
Prabhat Ranjan 2017-05-02 11:47:29 +05:30
parent 163ee6f3b7
commit 0c66a91884
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ def validate_host_conf(cpc):
if (CONF.dpm.max_memory > cpc.get_property('storage-customer')):
raise exceptions.MaxMemoryExceededError(
config_mem=CONF.dpm.max_processors,
config_mem=CONF.dpm.max_memory,
cpcsubset_name=CONF.host,
max_mem=cpc.get_property('storage-customer'),
cpcid=CONF.dpm.cpc_object_id,