Nova does not take into account the quota information

Asked by Jérôme Gallard

Hello,

With the Nova Rev11395 in multizone mode, I have an issue with the quota of instances.
I run the following command:
root@p-novamaster2:~# nova-manage project quota --project=project_admin --key=instances --value=15

It seems that it works because of the following:
root@p-novamaster2:~# nova-manage project quota --project=project_admin
metadata_items: 128
instances: 15
injected_file_content_bytes: 10240
injected_files: 5
volumes: 10
gigabytes: 1000
cores: 20
ram: 51200
floating_ips: 10

However when I try to start more than 10 instances (with nova boot) I got the following answer:
Instance quotas have been exceeded (HTTP 413)

I checked on the mysql database, and it seems that the number of instances is updated to 15.

Do you have an idea about what could be wrong in my configuration ?

Thank you.
Jérôme

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Vish Ishaya
Solved:
Last query:
Last reply:
Revision history for this message
Best Vish Ishaya (vishvananda) said :
#1

you will probably need to update cores and ram as well.

also, if you are using keystone, you need to specify project as the id instead of the name e.g --project=1

On Nov 9, 2011, at 9:50 AM, Jérôme Gallard wrote:

> New question #178177 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/178177
>
> Hello,
>
> With the Nova Rev11395 in multizone mode, I have an issue with the quota of instances.
> I run the following command:
> root@p-novamaster2:~# nova-manage project quota --project=project_admin --key=instances --value=15
>
> It seems that it works because of the following:
> root@p-novamaster2:~# nova-manage project quota --project=project_admin
> metadata_items: 128
> instances: 15
> injected_file_content_bytes: 10240
> injected_files: 5
> volumes: 10
> gigabytes: 1000
> cores: 20
> ram: 51200
> floating_ips: 10
>
> However when I try to start more than 10 instances (with nova boot) I got the following answer:
> Instance quotas have been exceeded (HTTP 413)
>
> I checked on the mysql database, and it seems that the number of instances is updated to 15.
>
> Do you have an idea about what could be wrong in my configuration ?
>
> Thank you.
> Jérôme
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Jérôme Gallard (jerome-gallard) said :
#2

Thank you very much for your answer.
The problem was linked to the name of the project. It was not clear that it's mandatory to use the project id.

Can I open a bug to request an update of the documentation ?
Usage: nova-manage project quota <args> [options]

Options:
  -h, --help show this help message and exit
  --project=<Project name>
                        Project name
  --key=<key> Key
  --value=<value> Value

Thank you again,
Jérôme

Revision history for this message
Jérôme Gallard (jerome-gallard) said :
#3

Just another question linked to the first one, just for my understanding.

I don't understand why the quotas are linked with Keystone. Can you have a look on another question linked to quotas and multi-zone mode ? https://answers.launchpad.net/nova/+question/178179

Thank you very much,
Jérôme

Revision history for this message
Jérôme Gallard (jerome-gallard) said :
#4

Thanks Vish Ishaya, that solved my question.