yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #11444
[Bug 1291330] [NEW] KeyError in policy check for create_router:enable_snat
Public bug reported:
2014-03-12 12:40:20.362 31619 ERROR neutron.policy [req-970523e8-fd23-42b7-806c-e7b5e24c7ba3 None] Policy check error while calling <bound method LinuxBridgePluginV2.get_network of <neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2 object at 0x21e3750>>!
2014-03-12 12:40:20.362 31619 TRACE neutron.policy Traceback (most recent call last):
2014-03-12 12:40:20.362 31619 TRACE neutron.policy File "/usr/local/virtualenvs/neutron-api/local/lib/python2.7/site-packages/neutron/policy.py", line 273, in __call__
2014-03-12 12:40:20.362 31619 TRACE neutron.policy target[parent_foreign_key],
2014-03-12 12:40:20.362 31619 TRACE neutron.policy KeyError: 'network_id'
2014-03-12 12:40:20.362 31619 TRACE neutron.policy
2014-03-12 12:40:20.362 31619 ERROR neutron.api.v2.resource [req-970523e8-fd23-42b7-806c-e7b5e24c7ba3 None] create failed
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource File "/usr/local/virtualenvs/neutron-api/local/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource result = method(request=request, **args)
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource File "/usr/local/virtualenvs/neutron-api/local/lib/python2.7/site-packages/neutron/api/v2/base.py", line 363, in create
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource item[self._resource])
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource File "/usr/local/virtualenvs/neutron-api/local/lib/python2.7/site-packages/neutron/policy.py", line 381, in enforce
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource raise exceptions.PolicyNotAuthorized(action=action)
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource PolicyNotAuthorized: Policy doesn't allow create_router to be performed.
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource
2014-03-12 12:42:01.880 31619 ERROR neutron.policy [req-dc5533c2-47f2-4c5e-82c8-46835edfcd1b None] Policy check error while calling <bound method LinuxBridgePluginV2.get_network of <neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2 object at 0x21e3750>>!
2014-03-12 12:42:01.880 31619 TRACE neutron.policy Traceback (most recent call last):
2014-03-12 12:42:01.880 31619 TRACE neutron.policy File "/usr/local/virtualenvs/neutron-api/local/lib/python2.7/site-packages/neutron/policy.py", line 273, in __call__
2014-03-12 12:42:01.880 31619 TRACE neutron.policy target[parent_foreign_key],
2014-03-12 12:42:01.880 31619 TRACE neutron.policy KeyError: 'network_id'
This occurs in at least 2014.1b3 and 2014.1b4. The request looks like
this:
curl -H 'X-Auth-Token: 741249c076164c1cae9602a61603b61c' \
-H 'Content-Type: application/json' \
-d '{"router":{"name":"natrouter","admin_state_up":true,"external_gateway_info":{"network_id":"(uuid)","enable_snat":true}}}'
https://neutron/v2.0/routers
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1291330
Title:
KeyError in policy check for create_router:enable_snat
Status in OpenStack Neutron (virtual network service):
New
Bug description:
2014-03-12 12:40:20.362 31619 ERROR neutron.policy [req-970523e8-fd23-42b7-806c-e7b5e24c7ba3 None] Policy check error while calling <bound method LinuxBridgePluginV2.get_network of <neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2 object at 0x21e3750>>!
2014-03-12 12:40:20.362 31619 TRACE neutron.policy Traceback (most recent call last):
2014-03-12 12:40:20.362 31619 TRACE neutron.policy File "/usr/local/virtualenvs/neutron-api/local/lib/python2.7/site-packages/neutron/policy.py", line 273, in __call__
2014-03-12 12:40:20.362 31619 TRACE neutron.policy target[parent_foreign_key],
2014-03-12 12:40:20.362 31619 TRACE neutron.policy KeyError: 'network_id'
2014-03-12 12:40:20.362 31619 TRACE neutron.policy
2014-03-12 12:40:20.362 31619 ERROR neutron.api.v2.resource [req-970523e8-fd23-42b7-806c-e7b5e24c7ba3 None] create failed
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource File "/usr/local/virtualenvs/neutron-api/local/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource result = method(request=request, **args)
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource File "/usr/local/virtualenvs/neutron-api/local/lib/python2.7/site-packages/neutron/api/v2/base.py", line 363, in create
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource item[self._resource])
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource File "/usr/local/virtualenvs/neutron-api/local/lib/python2.7/site-packages/neutron/policy.py", line 381, in enforce
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource raise exceptions.PolicyNotAuthorized(action=action)
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource PolicyNotAuthorized: Policy doesn't allow create_router to be performed.
2014-03-12 12:40:20.362 31619 TRACE neutron.api.v2.resource
2014-03-12 12:42:01.880 31619 ERROR neutron.policy [req-dc5533c2-47f2-4c5e-82c8-46835edfcd1b None] Policy check error while calling <bound method LinuxBridgePluginV2.get_network of <neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2 object at 0x21e3750>>!
2014-03-12 12:42:01.880 31619 TRACE neutron.policy Traceback (most recent call last):
2014-03-12 12:42:01.880 31619 TRACE neutron.policy File "/usr/local/virtualenvs/neutron-api/local/lib/python2.7/site-packages/neutron/policy.py", line 273, in __call__
2014-03-12 12:42:01.880 31619 TRACE neutron.policy target[parent_foreign_key],
2014-03-12 12:42:01.880 31619 TRACE neutron.policy KeyError: 'network_id'
This occurs in at least 2014.1b3 and 2014.1b4. The request looks like
this:
curl -H 'X-Auth-Token: 741249c076164c1cae9602a61603b61c' \
-H 'Content-Type: application/json' \
-d '{"router":{"name":"natrouter","admin_state_up":true,"external_gateway_info":{"network_id":"(uuid)","enable_snat":true}}}'
https://neutron/v2.0/routers
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1291330/+subscriptions
Follow ups
References