TooManyInstances msg is misleading if ram or cores over-quota

Bug #1031737 reported by Eoghan Glynn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Eoghan Glynn

Bug Description

The TooManyInstances exception message is misleading if it's the ram or cores resource that has gone over-quota, as opposed to the raw number of instances.

For example if only 6 instances are in use, against a quota of say 10, but then a request to start an xlarge fails because the required 16384Mb memory would cause the ram resource to go over-quota, then the exception message returned to the client would be:

  'Quota exceeded for ram: Requested 1, but already used 6 of 6 instances'

whereas it would be more meaningful as, for example:

  'Quota exceeded for ram: Requested 16384, but already used 90112 of 98304 ram'

Eoghan Glynn (eglynn)
Changed in nova:
assignee: nobody → Eoghan Glynn (eglynn)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/10644

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/10644
Committed: http://github.com/openstack/nova/commit/54f4d3be88d53035303328d3b0c287956c4dbd2f
Submitter: Jenkins
Branch: master

commit 54f4d3be88d53035303328d3b0c287956c4dbd2f
Author: Eoghan Glynn <email address hidden>
Date: Tue Jul 31 16:18:16 2012 +0000

    Clarify TooManyInstances exception message.

    Fixes LP 1031737.

    Previously the message indicated the number of instances requested
    and an incorrect indication of the headroom, in the case where ram
    or cores was the resource gone over-quota (as opposed to the number
    of raw instances).

    Change-Id: I9f7f3203f0e644ba533940a87e496bfd09da0460

Changed in nova:
status: In Progress → Fix Committed
Eoghan Glynn (eglynn)
Changed in nova:
importance: Undecided → Low
milestone: none → folsom-3
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-3 → 2012.2
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.