← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1240900] Re: resource count will fail if the user is a admin role on the tenant

 

I checked and tested quotas behavior and it works as expected.
Quotas in admin tenant is not affected by other tenants.

The remaining problem is firewall count for admin tenant. It is a
duplicated of bug 1258438.

As a whole, I mark this as Invalid.

** Changed in: neutron
       Status: Triaged => Invalid

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

Title:
  resource count will fail if the user is a admin role on the tenant

Status in OpenStack Neutron (virtual network service):
  Invalid

Bug description:
  def _get_collection_count(self, context, model, filters=None):
          return self._get_collection_query(context, model, filters).count()
  will count the entire resources instead of the ones which belong to the context's tenant if the context is a admin one.

  So If I use a admin user to create a resource, the count's meaning
  will fail. In particular, the firewall implementation, we are allowing
  one firewall for one tenant. So if the user is admin one,  the system
  can only have zero firewall for the admin user to create another
  firewall.

  I think the quota is also in defect when the user is an admin user.

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