Public bug reported:

I meet this bug in Newton.
Login tenant "admin" with admin role, and update user roles in tenant "demo", 
it failed and raise error msg "Quota value(s) cannot be less than the current 
usage value(s): 1374208 RAM (MB) used, 78 Instances used, 263 VCPUs used.".
This tenant is empty and should not have any usage.
The indicated usage is actually for current tenant "admin".

After trace horizon code, seems there's a bug in 
openstack_dashboard/api/nova.py.
server list filter "search_opts" is overwritten with current tenant_id so it 
will only list servers belong to current tenant.

In addition, we need to add "all_tenants=True" into "search_opts" when 
filtering servers with tenant_id, otherwise the tenant_id will be ignored. See 
below bug:
https://bugs.launchpad.net/nova/+bug/1185290

** Affects: horizon
     Importance: Undecided
         Status: New

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

Title:
  When updating tenant quota, used resource is miscalculated

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  I meet this bug in Newton.
  Login tenant "admin" with admin role, and update user roles in tenant "demo", 
it failed and raise error msg "Quota value(s) cannot be less than the current 
usage value(s): 1374208 RAM (MB) used, 78 Instances used, 263 VCPUs used.".
  This tenant is empty and should not have any usage.
  The indicated usage is actually for current tenant "admin".

  After trace horizon code, seems there's a bug in 
openstack_dashboard/api/nova.py.
  server list filter "search_opts" is overwritten with current tenant_id so it 
will only list servers belong to current tenant.

  In addition, we need to add "all_tenants=True" into "search_opts" when 
filtering servers with tenant_id, otherwise the tenant_id will be ignored. See 
below bug:
  https://bugs.launchpad.net/nova/+bug/1185290

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to