← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1960032] Re: NullQuota driver returns None that breaks client API

 

Reviewed:  https://review.opendev.org/c/openstack/neutron/+/827875
Committed: https://opendev.org/openstack/neutron/commit/8ccbbb229276c62de4799810571b222d9bc046f5
Submitter: "Zuul (22348)"
Branch:    master

commit 8ccbbb229276c62de4799810571b222d9bc046f5
Author: Jakub Libosvar <libosvar@xxxxxxxxxx>
Date:   Fri Feb 4 10:15:12 2022 -0500

    [quota] Enable ``DbQuotaDriverNull`` as a production driver
    
    Enabled ``DbQuotaDriverNull`` as a productio quota database
    quota driver. This driver does not enforce any quota nor have access
    to the database. When using this quota driver, the API will return
    the default empty values expected from the ``QuotaDriverAPI`` class.
    
    Closes-bug: #1960032
    
    Change-Id: Iafa24753e657746a8b8165b5a63c17de9a9ba791
    Signed-off-by: Jakub Libosvar <libosvar@xxxxxxxxxx>
    Co-Authored-By: Rodolfo Alonso Hernandez <ralonsoh@xxxxxxxxxx>


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1960032

Title:
  NullQuota driver returns None that breaks client API

Status in neutron:
  Fix Released

Bug description:
  When NullQuotaDriver is used, any operations above quotas return None
  instead of empty dict. Some tools rely on the quota, like for example
  following fails:

  openstack quota show admin
  'NoneType' object has no attribute 'items'

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



References