yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #48827
[Bug 1561310] Re: dashboard displays wrong quotas
Right now, I'd say reproducing on master (mitaka at least) is top
priority. If it's not an issue, then it's fixed. Icehouse is pretty old
at this point.
The reason for (2) was explained, there is some other operation going on
for the project that has taken a reservation on quotas, which then goes
into calculating the overall usage, see:
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/used_limits.py#L57
When you recreate this, what does this show you?
nova limits --tenant <project id> --reserved?
That should show you the quota limits plus total usage (included used
quota and reserved quota). If that adds up to 10 when you recreate,
then I think the bug is in Horizon for not using the --reserved option
when displaying quota usage.
** Changed in: nova
Status: New => Incomplete
** Also 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 Compute (nova).
https://bugs.launchpad.net/bugs/1561310
Title:
dashboard displays wrong quotas
Status in OpenStack Dashboard (Horizon):
New
Status in OpenStack Compute (nova):
Incomplete
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/horizon/+bug/1561310/+subscriptions
References