congress/congress
Eric Kao 94fdc38c86 Add policy creation with rules or from policy library
persistent_create_policy_with_rules method added to agnostic runtime
to transactionally create policy along with rules. The main work is
done by the persistent_insert_rules method extended to allow creation
of the target policy along with the rule inserts.

Database transactions added in persistent_insert_rules to make sure
all changes (policy add and rules insert) can be committed or rolled
back together.

DB table locking expanded to the `policies` table in the policy
creation case to prevent conflicting policy changes from other nodes.

policy_model add_item API method extended to accept policy item with
rules, (exclusive) or parameter specifying ID of library policy to
activate.

Partially implements: blueprint policy-library
Partial-Bug: 1693622

Change-Id: I2a83ac11b7014d417ff7553f602a8bb96a9adc34
2017-07-17 16:26:24 -07:00
..
api Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
common Automatically load library policy files at start 2017-07-06 17:45:19 -07:00
datalog Pad positional args up to required number 2017-04-12 15:13:19 -07:00
datasources Merge "Replace oslo_utils.timeutils.isotime" 2017-06-05 10:34:21 +00:00
db Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
dse2 Merge "Set access_policy for messaging's dispatcher" 2017-07-07 04:38:57 +00:00
library_service Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
policy_engines Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
server Update and add haht rule test cases for locking 2017-01-30 20:22:39 +00:00
synchronizer Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
tests Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
__init__.py Removes unnecessary utf-8 encoding 2017-02-27 19:38:03 -08:00
auth.py delete unused log translations 2017-03-28 16:29:37 +08:00
context.py delete unused log translations 2017-03-28 16:29:37 +08:00
exception.py Automatically load library policy files at start 2017-07-06 17:45:19 -07:00
harness.py Automatically load library policy files at start 2017-07-06 17:45:19 -07:00
opts.py Fixes congress.conf.sample file generation 2017-01-20 08:01:43 -06:00
service.py Use only strings in paste.deploy.loadapp global_conf 2016-09-15 18:00:11 +00:00
utils.py delete unused log translations 2017-03-28 16:29:37 +08:00
version.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00