fuel-dev team mailing list archive
-
fuel-dev team
-
Mailing list archive
-
Message #00771
Re: error when updating quotas
Hello,
It was it! I missed this new setting in the release not and i have done the deployment as I was used to do it in previous version. After checking the option, everything work correctly with the quota.
Meg, to update the quota you can use the edit quotas form in the tenant panel in horizon or just use the nova quota-update commande from nova API as descirbed in the documentation. For example
nova quota-update --floating-ips 10 <tenant-id>
Samuel
________________________________________
De : Meg McRoberts [mmcroberts@xxxxxxxxxxxx]
Date d'envoi : mercredi 2 avril 2014 19:23
À : kir.vondreth
Cc : BARTEL Samuel NRS; fuel-dev@xxxxxxxxxxxxxxxxxxx; COUZIGOU Stephane NRS
Objet : Re: [Fuel-dev] error when updating quotas
Tangential question from the lurking writer: if I enable quotas and want to modify them, do I use the nova quota* commands
as described here: http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html ?
Thanks!
meg
On Wed, Apr 2, 2014 at 9:59 AM, kir.vondreth <kir.vondreth@xxxxxxxxx<mailto:kir.vondreth@xxxxxxxxx>> wrote:
Hello,
Had problems with quotas as well.
Turned out to be because of a setting in Fuel.
With https://bugs.launchpad.net/fuel/+bug/1275987 there is a deployment setting to enable/disable quotas, and it is set to disabled by default.
Check if you are in this situation...
Regards,
KV
Le 2 avr. 2014 à 11:33, samuel.bartel@xxxxxxxxxx<mailto:samuel.bartel@xxxxxxxxxx> a écrit :
Hello,
After deployment of a HA environment in ubuntu 12.04 the quota affected to the created tenant don't match to the default quota defined in nova.conf. These are the quotas set :
Metadata Items -1
VCPUs -1
Instances -1
Injected Files -1
Injected File Content Bytes -1
Volumes : 10
Snapshots 10
Gigabytes : 1000
RAM (MB) : -1
Security Groups : -1
Security Group Rules : -1
Floating IPs : 250
Networks :50
Ports : 250
Routers : 50
Subnets :50
when we try to modify a quota (from horizon or from the api) we got errors:
-horizon : Error: Modified project information and members, but unable to modify project quotas.
-api : ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-0c804ba1-47ed-4269-9371-66ca840c039e)
and the following errors in the logs :
<179>Apr 2 09:13:33 node-3 nova-nova.api.openstack ERROR: Caught error: 'metadata_items'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 119, in __call__
return req.get_response(self.application)
File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
application, catch_exc_info=False)
File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
app_iter = application(self.environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
return resp(environ, start_response)
File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 545, in __call__
return self.app(env, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
return resp(environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
return resp(environ, start_response)
File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
response = self.app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
return resp(environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
return self.func(req, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 938, in __call__
content_type, body, accept)
File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 997, in _process_stack
action_result = self.dispatch(meth, request, action_args)
File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1078, in dispatch
return method(req=request, **action_args)
File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/quotas.py", line 136, in update
user_id=user_id)
File "/usr/lib/python2.7/dist-packages/nova/quota.py", line 1180, in get_settable_quotas
user_id=user_id)
File "/usr/lib/python2.7/dist-packages/nova/quota.py", line 741, in get_settable_quotas
quotas[resource.name<http://resource.name>].update(minimum=0, maximum=-1)
KeyError: 'metadata_items'
is it a known issue? is there configuration work arounds?
regards
Samuel
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
--
Mailing list: https://launchpad.net/~fuel-dev
Post to : fuel-dev@xxxxxxxxxxxxxxxxxxx<mailto:fuel-dev@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~fuel-dev
More help : https://help.launchpad.net/ListHelp
--
Mailing list: https://launchpad.net/~fuel-dev
Post to : fuel-dev@xxxxxxxxxxxxxxxxxxx<mailto:fuel-dev@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~fuel-dev
More help : https://help.launchpad.net/ListHelp
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
References