Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Need clarity on why quota-update is throwing 403 even for admin account

quantum quota-update is throwing 403 (Forbidden: {"QuantumError": "Access was denied to this resource."}) though the credentials used for updation are of admin user. Request you to confirm if this response is a bug.

Following is the curl request and response for updation of port quota:

ubuntu@devstack1:~/pavan_quantum/tempest/tempest/tests/network$ quantum --debug quota-update --port 100

REQ: curl -i http://10.5.28.253:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-quantumclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "Openstack1"}}}'

RESP:{'date': 'Mon, 01 Jul 2013 11:45:24 GMT', 'vary': 'X-Auth-Token', 'content-length': '6445', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-07-01T11:45:24.625360", "expires": "2013-07-02T11:45:24Z", "id": "MIILUgYJKoZIhvcNAQcCoIILQzCCCz8CAQExCTAHBgUrDgMCGjCCCisGCSqGSIb3DQEHAaCCChwEggoYeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNy0wMVQxMTo0NToyNC42MjUzNjAiLCAiZXhwaXJlcyI6ICIyMDEzLTA3LTAyVDExOjQ1OjI0WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiNzBlNzVjMjRiZDhiNGY3ODg0ZjA3M2RkNDUxMGE5ZmEiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjUuMjguMjUzOjg3NzQvdjIvNzBlNzVjMjRiZDhiNGY3ODg0ZjA3M2RkNDUxMGE5ZmEiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6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0lSbh-C1Mag6bAU8o7eA5axgjQFKwQkzfusS-9yskBUUMYltxIeEV41zCqcyzA5rS8Yf4h59S9dO2KFf6C2G1row==", "tenant": {"description": null, "enabled": true, "id": "70e75c24bd8b4f7884f073dd4510a9fa", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.5.28.253:8774/v2/70e75c24bd8b4f7884f073dd4510a9fa", "region": "RegionOne", "internalURL": "http://10.5.28.253:8774/v2/70e75c24bd8b4f7884f073dd4510a9fa", "id": "0267c48f4bfc44d1800277207c7d2ba2", "publicURL": "http://10.5.28.253:8774/v2/70e75c24bd8b4f7884f073dd4510a9fa"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://10.5.28.253:9696/", "region": "RegionOne", "internalURL": "http://10.5.28.253:9696/", "id": "27bbc93d4d344d2887213daee67a3933", "publicURL": "http://10.5.28.253:9696/"}], "endpoints_links": [], "type": "network", "name": "quantum"}, {"endpoints": [{"adminURL": "http://10.5.28.253:3333", "region": "RegionOne", "internalURL": "http://10.5.28.253:3333", "id": "7345ba87493a4bc8944dc4a725f461db", "publicURL": "http://10.5.28.253:3333"}], "endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL": "http://10.5.28.253:9292", "region": "RegionOne", "internalURL": "http://10.5.28.253:9292", "id": "a1783c63a0604e478c837bfcf8636343", "publicURL": "http://10.5.28.253:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://10.5.28.253:8776/v1/70e75c24bd8b4f7884f073dd4510a9fa", "region": "RegionOne", "internalURL": "http://10.5.28.253:8776/v1/70e75c24bd8b4f7884f073dd4510a9fa", "id": "56ccc4fada104392b8cc8c14dbfd0f48", "publicURL": "http://10.5.28.253:8776/v1/70e75c24bd8b4f7884f073dd4510a9fa"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://10.5.28.253:8773/services/Admin", "region": "RegionOne", "internalURL": "http://10.5.28.253:8773/services/Cloud", "id": "13d6c5dffb3646d18ae891af6b27cc9f", "publicURL": "http://10.5.28.253:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://10.5.28.253:35357/v2.0", "region": "RegionOne", "internalURL": "http://10.5.28.253:5000/v2.0", "id": "37c3be7f17824ea29d9777a1843c1118", "publicURL": "http://10.5.28.253:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "494e15f2fd6843ddbfac7502dc316337", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["b73ae2ff29be4fd183faa3f677780bc4"]}}}

REQ: curl -i http://10.5.28.253:9696/v2.0/quotas/tenant.json -X GET -H "X-Auth-Token: MIILUgYJKoZIhvcNAQcCoIILQzCCCz8CAQExCTAHBgUrDgMCGjCCCisGCSqGSIb3DQEHAaCCChwEggoYeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNy0wMVQxMTo0NToyNC42MjUzNjAiLCAiZXhwaXJlcyI6ICIyMDEzLTA3LTAyVDExOjQ1OjI0WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiNzBlNzVjMjRiZDhiNGY3ODg0ZjA3M2RkNDUxMGE5ZmEiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjUuMjguMjUzOjg3NzQvdjIvNzBlNzVjMjRiZDhiNGY3ODg0ZjA3M2RkNDUxMGE5ZmEiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuNS4yOC4yNTM6ODc3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fusS-9yskBUUMYltxIeEV41zCqcyzA5rS8Yf4h59S9dO2KFf6C2G1row==" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-quantumclient"

RESP:{'date': 'Mon, 01 Jul 2013 11:45:24 GMT', 'status': '200', 'content-length': '61', 'content-type': 'application/json; charset=UTF-8', 'content-location': 'http://10.5.28.253:9696/v2.0/quotas/tenant.json'} {"tenant": {"tenant_id": "70e75c24bd8b4f7884f073dd4510a9fa"}}

REQ: curl -i http://10.5.28.253:9696/v2.0/quotas/70e75c24bd8b4f7884f073dd4510a9fa.json -X PUT -H "X-Auth-Token: MIILUgYJKoZIhvcNAQcCoIILQzCCCz8CAQExCTAHBgUrDgMCGjCCCisGCSqGSIb3DQEHAaCCChwEggoYeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNy0wMVQxMTo0NToyNC42MjUzNjAiLCAiZXhwaXJlcyI6ICIyMDEzLTA3LTAyVDExOjQ1OjI0WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiNzBlNzVjMjRiZDhiNGY3ODg0ZjA3M2RkNDUxMGE5ZmEiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjUuMjguMjUzOjg3NzQvdjIvNzBlNzVjMjRiZDhiNGY3ODg0ZjA3M2RkNDUxMGE5ZmEiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuNS4yOC4yNTM6ODc3NC92Mi83MGU3NWMyNGJkOGI0Zjc4ODRmMDczZGQ0NTEwYTlmYSIsICJpZCI6ICIwMjY3YzQ4ZjRiZmM0NGQxODAwMjc3MjA3YzdkMmJhMiIsICJ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uZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xMC41LjI4LjI1MzozNTM1Ny92Mi4wIiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzEwLjUuMjguMjUzOjUwMDAvdjIuMCIsICJpZCI6ICIzN2MzYmU3ZjE3ODI0ZWEyOWQ5Nzc3YTE4NDNjMTExOCIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzEwLjUuMjguMjUzOjUwMDAvdjIuMCJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJpZGVudGl0eSIsICJuYW1lIjogImtleXN0b25lIn1dLCAidXNlciI6IHsidXNlcm5hbWUiOiAiYWRtaW4iLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogIjQ5NGUxNWYyZmQ2ODQzZGRiZmFjNzUwMmRjMzE2MzM3IiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiYjczYWUyZmYyOWJlNGZkMTgzZmFhM2Y2Nzc3ODBiYzQiXX19fTGB-zCB-AIBATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYAN5Crex+7qeuvA-IPkNfa58eI0Tvf4y1VtR+tZSKj2UZluPFLp-EGNrtEQ-ynLr1cMh7CuSkweHfSlam8alk0lSbh-C1Mag6bAU8o7eA5axgjQFKwQkzfusS-9yskBUUMYltxIeEV41zCqcyzA5rS8Yf4h59S9dO2KFf6C2G1row==" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-quantumclient" -d '{"quota": {"port": 100}}'

RESP:{'date': 'Mon, 01 Jul 2013 11:45:24 GMT', 'status': '403', 'content-length': '55', 'content-type': 'application/json; charset=UTF-8'} {"QuantumError": "Access was denied to this resource."}

{"QuantumError": "Access was denied to this resource."} Traceback (most recent call last): File "/opt/stack/python-quantumclient/quantumclient/shell.py", line 514, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/opt/stack/python-quantumclient/quantumclient/shell.py", line 51, in run_command return cmd.run(known_args) File "/opt/stack/python-quantumclient/quantumclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/opt/stack/python-quantumclient/quantumclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/opt/stack/python-quantumclient/quantumclient/quantum/v2_0/quota.py", line 215, in get_data data = obj_updator(tenant_id, body) File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 108, in with_params ret = self.function(instance, args, *kwargs) File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 238, in update_quota return self.put(self.quota_path % (tenant_id), body=body) File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 1016, in put headers=headers, params=params) File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 992, in retry_request headers=headers, params=params) File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py", line 926, in do_request resp, replybody = self.httpclient.do_request(action, method, body=body) File "/opt/stack/python-quantumclient/quantumclient/client.py", line 158, in do_request **kwargs) File "/opt/stack/python-quantumclient/quantumclient/client.py", line 140, in _cs_request raise exceptions.Forbidden(message=body) Forbidden: {"QuantumError": "Access was denied to this resource."} ubuntu@devstack1:~/pavan_quantum/tempest/tempest/tests/network$