congress/congress
Eric K a0f1c1a17d Disallow duplicated policy name in DB
Bug: DB allows two PE instances to insert two policies with the same
name (different ID), causing irrecoverable error in all following
policy sync attempts.

This patch fixes the bug by locking database table and checking for
duplicates before adding new policy.

Manually tested under SQLite and MySQL.

Change-Id: I0de1692a895fbf47703f668b44e2c9300f518f76
2016-09-29 01:17:49 -07:00
..
api Disallow duplicated policy name in DB 2016-09-29 01:17:49 -07:00
common Mark distributed_architecture config as DEPRECATED 2016-09-23 09:15:40 +05:30
datalog Fixes to synchronize_policies 2016-09-25 22:32:23 -07:00
datasources Use keystone session in keystone_driver 2016-09-24 04:41:46 +00:00
db Disallow duplicated policy name in DB 2016-09-29 01:17:49 -07:00
dse Start and Stop DatasourceDriver in new architecture 2016-06-22 04:00:40 +00:00
dse2 control_bus service has only 1 heartbeat thread 2016-09-16 02:22:34 +09:00
policy_engines Disallow duplicated policy name in DB 2016-09-29 01:17:49 -07:00
server Use only strings in paste.deploy.loadapp global_conf 2016-09-15 18:00:11 +00:00
tests Merge "Trivial: Replace 'assertTrue(a not in b)' with 'assertNotIn(a, b)'" 2016-09-27 15:34:43 +00:00
tests2 Disable old DSE code 2016-08-10 12:18:48 -07:00
__init__.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00
auth.py Moved CORS middleware configuration into oslo-config-generator 2016-03-14 10:55:49 -07:00
context.py Define context.roles with base class 2016-04-06 11:53:04 -04:00
exception.py Introduce 'lazy_tables' flag to nova datasource driver 2016-08-23 15:57:28 +09:00
harness.py Use only strings in paste.deploy.loadapp global_conf 2016-09-15 18:00:11 +00:00
opts.py Restore the DSE opt group 2016-09-01 08:36:41 -07:00
service.py Use only strings in paste.deploy.loadapp global_conf 2016-09-15 18:00:11 +00:00
utils.py Remove distributed_architecture flag 2016-09-05 11:03:13 +05:30
version.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00