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 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 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 23:35:13 -0500

swoo gravatar image

Ran "nova delete 20854cdd-b158-449c-a44a-c676ebdc0f8f"

Command didn't return an error and didn't delete the instance.

nova-api output: 2012-03-19 16:31:49 INFO nova.api.openstack.wsgi [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] GET http://10.228.24.234:8774/v1.1/openstack/servers/detail?fresh=1332199909.35 (http://10.228.24.234:8774/v1.1/openst...) 2012-03-19 16:31:49 DEBUG nova.api.openstack.wsgi [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Unrecognized Content-Type provided in request from (pid=3143) get_body /home/localadmin/openstack/nova/nova/api/openstack/wsgi.py:697 2012-03-19 16:31:49 DEBUG nova.compute.api [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Searching by: {'deleted': False, 'fresh': '1332199909.35', 'project_id': 'openstack'} from (pid=3143) get_all /home/localadmin/openstack/nova/nova/compute/api.py:1010 2012-03-19 16:31:49 DEBUG nova.api.openstack.common [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Generated ERROR from vm_state=error task_state=deleting. from (pid=3143) status_from_state /home/localadmin/openstack/nova/nova/api/openstack/common.py:96 2012-03-19 16:31:49 DEBUG nova.api.openstack.common [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Generated ERROR from vm_state=error task_state=deleting. from (pid=3143) status_from_state /home/localadmin/openstack/nova/nova/api/openstack/common.py:96 2012-03-19 16:31:49 DEBUG nova.api.openstack.common [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Generated ERROR from vm_state=error task_state=spawning. from (pid=3143) status_from_state /home/localadmin/openstack/nova/nova/api/openstack/common.py:96 2012-03-19 16:31:49 DEBUG nova.api.openstack.common [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Generated ERROR from vm_state=error task_state=deleting. from (pid=3143) status_from_state /home/localadmin/openstack/nova/nova/api/openstack/common.py:96 2012-03-19 16:31:49 DEBUG nova.api.openstack.common [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Generated ERROR from vm_state=error task_state=deleting. from (pid=3143) status_from_state /home/localadmin/openstack/nova/nova/api/openstack/common.py:96 2012-03-19 16:31:49 DEBUG nova.api.openstack.common [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Generated ERROR from vm_state=error task_state=deleting. from (pid=3143) status_from_state /home/localadmin/openstack/nova/nova/api/openstack/common.py:96 2012-03-19 16:31:49 DEBUG nova.api.openstack.common [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Generated ERROR from vm_state=error task_state=deleting. from (pid=3143) status_from_state /home/localadmin/openstack/nova/nova/api/openstack/common.py:96 2012-03-19 16:31:49 DEBUG nova.api.openstack.common [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Generated ERROR from vm_state=error task_state=deleting. from (pid=3143) status_from_state /home/localadmin/openstack/nova/nova/api/openstack/common.py:96 2012-03-19 16:31:49 DEBUG nova.api.openstack.common [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Generated ERROR from vm_state=error task_state=deleting. from (pid=3143) status_from_state /home/localadmin/openstack/nova/nova/api/openstack/common.py:96 2012-03-19 16:31:49 DEBUG nova.api.openstack.common [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Generated ERROR from vm_state=error task_state=deleting. from (pid=3143) status_from_state /home/localadmin/openstack/nova/nova/api/openstack/common.py:96 2012-03-19 16:31:49 DEBUG nova.compute.api [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Searching by: {'uuid': ['7b3045bd-2af5-4074-8352-42bc1ef4095b', '62c3f5cb-62e0-46de-be46-4aaf3e5d676e', 'c6049034-8f33-4f3f-8c49-dba4f238406c', 'c194ec35-b798-44f8-b6a4-10c43cc66236', 'b4894f33-243f-4f4e-97e4-1f44f9c773b4', 'c813bc01-c590-4ede-bcf4-fdcbe5414b00', '20854cdd-b158-449c-a44a-c676ebdc0f8f', '5a0d5c03-4869-48bd-a15b-60afb6e526c7', 'b481cd67-ef31-4072-9723-48240f4b9ee1', 'b1967369-d887-47a2-a53e-d077f5349563']} from (pid=3143) get_all /home/localadmin/openstack/nova/nova/compute/api.py:1010 2012-03-19 16:31:49 DEBUG nova.compute.api [req-bae31505-1f34-4415-8994-7b07a8497ff9 localadmin openstack] Searching by: {'uuid': ['7b3045bd-2af5-4074-8352-42bc1ef4095b ... (more)

edit flag offensive delete link more
0

answered 2012-03-20 11:45:42 -0500

johngarbutt gravatar image

Ouch, that looks annoying. Afraid I have not see that set of errors before.

Since you are using DevStack, it might be easier to start again (although it would be nice to know what has cause all your pain): killall screen ./stack.sh

When you try to create an instance (easier using horizon, you can see what is going on better), you can then trace what is happening through the different logs, and you should be able to find the route cause of your issues.

Just want to double check, but I assume there is just a single XenSever with a single DomU running the nova services? And you are using EXT storage for your local storage SR?

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: 297 times

Last updated: Mar 21 '12