Need to change the parameter that is used to check against max_memory

Bug #1719831 reported by sreeteja
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-dpm
Invalid
Undecided
Unassigned

Bug Description

This max_memory parameter is checked against 'storage-customer'
https://github.com/openstack/nova-dpm/blob/2b53cd3f330432d43cc93cb1ad8785293203e4fd/nova_dpm/virt/dpm/utils.py#L49

'storage-customer' is the total memory of the CPC but to launch instance using devstack setup it needs to be checked against available memory of CPC.

https://github.com/zhmcclient/python-zhmcclient/blob/48b8d5c0619072afa1832758fe3c4a58628be95e/tools/cpcdata#L260

so this parameter needs to be replaced by 'storage-customer-available'

sreeteja (sreeteja)
description: updated
Revision history for this message
Prabhat Ranjan (pranjank) wrote :

I think this should not be bug.

Problem with 'storage-customer-available' is:
Let's say cpc has 10 GB memory(total) and no partition has created yet. And we start compute service with max_memory=5GB and created 3 partition of with 1GB RAM. And then if we restart compute service it will through exception.

Revision history for this message
Prabhat Ranjan (pranjank) wrote :

In above example lets say 5 GB instead of 10 GB

Revision history for this message
Andreas Scheuring (andreas-scheuring) wrote :

Agree with Prabhat!

Revision history for this message
Andreas Scheuring (andreas-scheuring) wrote :

Is not a bug - works as designed. See Prabhats comment.

Changed in nova-dpm:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.