← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

* 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})

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: log quota reserve

-- 
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):
  New

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


Follow ups