]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid initialization of policy engine before extensions are loaded
authorSalvatore Orlando <salv.orlando@gmail.com>
Wed, 1 May 2013 10:32:17 +0000 (12:32 +0200)
committerSalvatore Orlando <salv.orlando@gmail.com>
Wed, 1 May 2013 18:20:32 +0000 (20:20 +0200)
commitf78174aa3cb0f88c995b2b1f61d10a0761b7bfe7
treeed033d678749954177d70d85135c64388ebc1582
parentb1b89da57fc1d3fbf22b948359a8260bdcd84c39
Avoid initialization of policy engine before extensions are loaded

Bug 1174877

For a particular NVP extension, a database entry was being populated
in the plugin's __init__ method. The entry was added with an admin
context. Grabbing the context caused the policy engine to load before
all the extension were loaded, so rule on extended attribute
were not being parsed correctly.
This cause checks on external networks to fail always.

Change-Id: Icbc759773acab2a7687883d8d2844272c8ea55a3
quantum/plugins/nicira/QuantumPlugin.py