Ask Your Question
0

Quota exceeded: code=%(code)s (HTTP 413)

asked 2012-03-17 00:49:22 -0500

swoo gravatar image

I'm running Xenserver and Openstack. I'm following the XenServer Development doc. Everything is installed by I get the Quota error when I try to run an instance.

nova@OSserver2b:/home/localadmin/openstack/nova$ nova image-list +--------------------------------------+---------+--------+ | ID | Name | Status | +--------------------------------------+---------+--------+ | 465442ad-da0a-401a-9efc-4a38a165361e | kernal | ACTIVE | | 6c5f6148-34db-424b-bd8f-82c4688c7d78 | ramdisk | ACTIVE | | 7b17d37e-8a76-4791-bf51-d887146ced52 | kernal | ACTIVE | +--------------------------------------+---------+--------+ nova@OSserver2b:/home/localadmin/openstack/nova$ nova flavor-list +----+-----------+-----------+------+----------+-------+------------+----------+ | ID | Name | Memory_MB | Swap | Local_GB | VCPUs | RXTX_Quota | RXTX_Cap | +----+-----------+-----------+------+----------+-------+------------+----------+ | 1 | m1.tiny | 512 | | 0 | 1 | | | | 2 | m1.small | 2048 | | 20 | 1 | | | | 3 | m1.medium | 4096 | | 40 | 2 | | | | 4 | m1.large | 8192 | | 80 | 4 | | | | 5 | m1.xlarge | 16384 | | 160 | 8 | | | +----+-----------+-----------+------+----------+-------+------------+----------+ nova@OSserver2b:/home/localadmin/openstack/nova$ nova boot test --flavor 1 --image 465442ad-da0a-401a-9efc-4a38a165361e Quota exceeded: code=%(code)s (HTTP 413) nova@OSserver2b:/home/localadmin/openstack/nova$ nova boot test --flavor 1 --image 6c5f6148-34db-424b-bd8f-82c4688c7d78 Quota exceeded: code=%(code)s (HTTP 413) nova@OSserver2b:/home/localadmin/openstack/nova$ nova boot test --flavor 1 --image 7b17d37e-8a76-4791-bf51-d887146ced52 Quota exceeded: code=%(code)s (HTTP 413) nova@OSserver2b:/home/localadmin/openstack/nova$ ./bin/nova-manage project quota openstack /usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py:8: UserWarning: Module nova was already imported from /home/localadmin/openstack/nova/nova/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path import pkg_resources

2012-03-16 17:11:47 DEBUG nova.utils [req-f8ec300f-ed76-4b48-b93f-7e0b1623dc8e None None] backend <module 'nova.db.sqlalchemy.api'="" from="" '="" home="" localadmin="" openstack="" nova="" nova="" db="" sqlalchemy="" api.pyc'=""> from (pid=843) __get_backend /home/localadmin/openstack/nova/nova/utils.py:607 metadata_items: 128 instances: 10 injected_file_content_bytes: 10240 injected_files: 5 volumes: 10 gigabytes: 1000 cores: 20 ram: 51200 floating_ips: 10 nova@OSserver2b:/home/localadmin/openstack/nova$

As far as I can tell, I should be able to create unto 10 instances, but it won't even let me create 1.

Am I missing another setting? Any help would be appreciated. Thanks.

edit retag flag offensive close merge delete

14 answers

Sort by ยป oldest newest most voted
0

answered 2012-03-19 23:24:17 -0500

swoo gravatar image

Interesting. Just ran a "nova list" and found:

nova@OSserver2b:/home/localadmin/openstack/nova$ nova list +--------------------------------------+------+--------+----------+ | ID | Name | Status | Networks | +--------------------------------------+------+--------+----------+ | 20854cdd-b158-449c-a44a-c676ebdc0f8f | test | ERROR | | | 5a0d5c03-4869-48bd-a15b-60afb6e526c7 | test | ERROR | | | 62c3f5cb-62e0-46de-be46-4aaf3e5d676e | test | ERROR | | | 7b3045bd-2af5-4074-8352-42bc1ef4095b | test | ERROR | | | b1967369-d887-47a2-a53e-d077f5349563 | test | ERROR | | | b481cd67-ef31-4072-9723-48240f4b9ee1 | test | ERROR | | | b4894f33-243f-4f4e-97e4-1f44f9c773b4 | test | ERROR | | | c194ec35-b798-44f8-b6a4-10c43cc66236 | test | ERROR | | | c6049034-8f33-4f3f-8c49-dba4f238406c | test | ERROR | | | c813bc01-c590-4ede-bcf4-fdcbe5414b00 | test | ERROR | | +--------------------------------------+------+--------+----------+

So it seems that instances were being created and I did indeed have 10 of them already. Will delete and they to create again and see what happens.

edit flag offensive delete link more
0

answered 2012-03-19 19:52:08 -0500

swoo gravatar image

Also checked the clock and they are all in sync.

edit flag offensive delete link more
0

answered 2012-03-19 19:36:37 -0500

swoo gravatar image

Yes, I am currently using a pull from DevStack.

The nova-api.log file shows: 2012-03-19 12:28:02 INFO nova.wsgi [-] Started metadata on 0.0.0.0:8775 2012-03-19 12:28:11 INFO nova.api.openstack.wsgi [req-e7e8696d-11ac-40a7-9013-11fdb90d025e localadmin openstack] POST http://10.228.24.234:8774/v1.1/openstack/servers (http://10.228.24.234:8774/v1.1/openst...) 2012-03-19 12:28:12 DEBUG nova.utils [req-e7e8696d-11ac-40a7-9013-11fdb90d025e localadmin openstack] backend from (pid=2534) __get_backend /home/localadmin/openstack/nova/nova/utils.py:607 2012-03-19 12:28:14 WARNING nova.compute.api [req-e7e8696d-11ac-40a7-9013-11fdb90d025e localadmin openstack] Quota exceeded for openstack, tried to run 1 instances 2012-03-19 12:28:14 INFO nova.api.openstack.wsgi [req-e7e8696d-11ac-40a7-9013-11fdb90d025e localadmin openstack] HTTP exception thrown: Quota exceeded: code=%(code)s 2012-03-19 12:28:14 INFO nova.api.openstack.wsgi [req-e7e8696d-11ac-40a7-9013-11fdb90d025e localadmin openstack] http://10.228.24.234:8774/v1.1/openstack/servers (http://10.228.24.234:8774/v1.1/openst...) returned with HTTP 413

I didn't notice any activity on the other logs.

edit flag offensive delete link more
0

answered 2012-03-19 16:50:40 -0500

johngarbutt gravatar image

I would recommend you try using DevStack ( http://wiki.openstack.org/XenServer/DevStack (http://wiki.openstack.org/XenServer/D...) ).

I have not seen that error myself, but it looks a lot like a configuration issue.

If you could check the api-server and the scheduler logs they may be able to give you some hints as to why it thinks you have reached your quota. Maybe the way you integrated keystone is not quite working?

It might be worth checking the clocks to ensure it does not simply think there are no resources avaiable (but I thought that would give you a different error).

I hope that is of some help.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-03-17 00:49:22 -0500

Seen: 295 times

Last updated: Mar 21 '12