← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1619085] Re: incorrect description in nova-api.log about quota check

 

Reviewed:  https://review.openstack.org/364698
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=0d4ad97c26ceff1f3bed92992b49e4262b33e9da
Submitter: Jenkins
Branch:    master

commit 0d4ad97c26ceff1f3bed92992b49e4262b33e9da
Author: to-niwa <to-niwa@xxxxxxxxxxx>
Date:   Fri Sep 2 17:00:14 2016 +0900

    incorrect description in nova-api.log about quota check
    
    Change an argument related to logging for user quota check
    because debug-level log shows only tenant quota even if
    user quota is defined.
    
    Change-Id: I07f5852077775041e36316d689f9f70c76d82b18
    Closes-Bug: #1619085


** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1619085

Title:
  incorrect description in nova-api.log about quota check

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  * Bug:
  When checking quotas and trying to reserve resources for instances, the process prints some incorrect information to nova-api.log.

  
  * Solution:
  In line 533 of the code file 'nova.quota.py'(class:DbQuotaDriver,method:reserve) , the argument 'quotas' should be 'user_quotas'.

  Original code(line 530-533,nova.quota.py):
  LOG.debug('Quotas for project %(project_id)s and user %(user_id)s '
                    'after resource sync: %(quotas)s',
                    {'project_id': project_id, 'user_id': user_id, 'quotas': quotas})
  Should be:
  LOG.debug('Quotas for project %(project_id)s and user %(user_id)s '
                    'after resource sync: %(quotas)s',
                    {'project_id': project_id, 'user_id': user_id, 'quotas': user_quotas})

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1619085/+subscriptions


References