← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1561310] [NEW] dashboard displays wrong quotas

 

Public bug reported:

1. User try to  boot a new vm by click the button "+ Launch Instance"  in dashboard web->project->compute->instances.
2. But the button "+ Launch Instance"  is disabled and shows "quota exceeded".
3. Then user go to dashboard web->project->compute->overview perspective, but find Instances,VCPU and RAM haven't exceed 
the quotas. In this case, it's shows like below:
Instances
Used 8 of 10
VCPUs
Used 18 of 20
RAM
Used 512MB of 50.0GB 
This will confuse the user, is there anything incorrect?

root cause: 
I think one of the root cause is that the current project have another work, such as rebuilding vm, which obtail some quotas and mark
the 'reserved' fields(nova->quota_usages table) to a none zero value .
So I select *  from nova.quota_usages where project_id = 'current project id', and find thati in  the row 'cores' , the 'reserved' = 2. Because of this,  the VCPU is actually Used 10 of 10. 
Excepted result:
The 'reserved' quota should also be taken as an used quota ,and so in dashboard web->project->compute->overview perspectiv, it should shows as below:
VCPUs
Used 20 of 20.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1561310

Title:
  dashboard displays wrong quotas

Status in OpenStack Compute (nova):
  New

Bug description:
  1. User try to  boot a new vm by click the button "+ Launch Instance"  in dashboard web->project->compute->instances.
  2. But the button "+ Launch Instance"  is disabled and shows "quota exceeded".
  3. Then user go to dashboard web->project->compute->overview perspective, but find Instances,VCPU and RAM haven't exceed 
  the quotas. In this case, it's shows like below:
  Instances
  Used 8 of 10
  VCPUs
  Used 18 of 20
  RAM
  Used 512MB of 50.0GB 
  This will confuse the user, is there anything incorrect?

  root cause: 
  I think one of the root cause is that the current project have another work, such as rebuilding vm, which obtail some quotas and mark
  the 'reserved' fields(nova->quota_usages table) to a none zero value .
  So I select *  from nova.quota_usages where project_id = 'current project id', and find thati in  the row 'cores' , the 'reserved' = 2. Because of this,  the VCPU is actually Used 10 of 10. 
  Excepted result:
  The 'reserved' quota should also be taken as an used quota ,and so in dashboard web->project->compute->overview perspectiv, it should shows as below:
  VCPUs
  Used 20 of 20.

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


Follow ups