← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1469942] [NEW] Error message of quota exceeded don't contain enough information

 

Public bug reported:

1. base version

stack@devstack:/opt/stack/nova$  [master]$ git log -1
commit 6969f270c5035325c603ce7a98b1647b72bf5eaa
Merge: ae4ae93 930da44
Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
Date:   Sat Jun 27 08:40:25 2015 +0000

    Merge "Fix typos detected by toolkit misspellings."

2. nova-api.log

2015-06-30 10:55:26.637 DEBUG nova.compute.api [req-2bba2e1b-da00-477a-94e8-01eee8e17401 admin demo] cores,ram quota exceeded for 08751f5a95464f5db73d9f57d55fa6b9, tried to run 1 instances. Cannot run any mo
re instances of this type. _check_num_instances_quota /opt/stack/nova/nova/compute/api.py:442
2015-06-30 10:55:26.638 INFO nova.api.openstack.wsgi [req-2bba2e1b-da00-477a-94e8-01eee8e17401 admin demo] HTTP exception thrown: Quota exceeded for cores,ram: Requested 1, but already used 1 of 1 cores

3. reproduce steps:

* set the tenant qouta, core=1, ram=512

* boot instance with flavor m1.tiny (1 core, 512 ram)

* boot instance again with flavor m1.tiny

Expected result:

*  booting instance failed in the second time, and user should know
which resource is limited, core and ram.

Actual result:

* the raised exception message only contain core limit details, but no
ram details.

stack@devstack:/home/devstack/logs$  [master]$ nova boot --image cirros-0.3.2-x86_64-disk --flavor m1.tiny --nic net-id=00d3142f-f2d1-4427-a0d3-d31c089f3c7e chenrui_demo
ERROR (Forbidden): Quota exceeded for cores,ram: Requested 1, but already used 1 of 1 cores (HTTP 403) (Request-ID: req-2bba2e1b-da00-477a-94e8-01eee8e17401)


As a End user, he should get the full information from the exception message, he don't know the ram limit detail, so he has no idea which flavor can be used to boot instance successfully.

** Affects: nova
     Importance: Undecided
     Assignee: Rui Chen (kiwik-chenrui)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Rui Chen (kiwik-chenrui)

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

Title:
  Error message of quota exceeded don't contain enough information

Status in OpenStack Compute (Nova):
  New

Bug description:
  1. base version

  stack@devstack:/opt/stack/nova$  [master]$ git log -1
  commit 6969f270c5035325c603ce7a98b1647b72bf5eaa
  Merge: ae4ae93 930da44
  Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
  Date:   Sat Jun 27 08:40:25 2015 +0000

      Merge "Fix typos detected by toolkit misspellings."

  2. nova-api.log

  2015-06-30 10:55:26.637 DEBUG nova.compute.api [req-2bba2e1b-da00-477a-94e8-01eee8e17401 admin demo] cores,ram quota exceeded for 08751f5a95464f5db73d9f57d55fa6b9, tried to run 1 instances. Cannot run any mo
  re instances of this type. _check_num_instances_quota /opt/stack/nova/nova/compute/api.py:442
  2015-06-30 10:55:26.638 INFO nova.api.openstack.wsgi [req-2bba2e1b-da00-477a-94e8-01eee8e17401 admin demo] HTTP exception thrown: Quota exceeded for cores,ram: Requested 1, but already used 1 of 1 cores

  3. reproduce steps:

  * set the tenant qouta, core=1, ram=512

  * boot instance with flavor m1.tiny (1 core, 512 ram)

  * boot instance again with flavor m1.tiny

  Expected result:

  *  booting instance failed in the second time, and user should know
  which resource is limited, core and ram.

  Actual result:

  * the raised exception message only contain core limit details, but no
  ram details.

  stack@devstack:/home/devstack/logs$  [master]$ nova boot --image cirros-0.3.2-x86_64-disk --flavor m1.tiny --nic net-id=00d3142f-f2d1-4427-a0d3-d31c089f3c7e chenrui_demo
  ERROR (Forbidden): Quota exceeded for cores,ram: Requested 1, but already used 1 of 1 cores (HTTP 403) (Request-ID: req-2bba2e1b-da00-477a-94e8-01eee8e17401)

  
  As a End user, he should get the full information from the exception message, he don't know the ram limit detail, so he has no idea which flavor can be used to boot instance successfully.

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


Follow ups

References