Comment 3 for bug 1943584

Revision history for this message
Mitya Eremeev (mitos) wrote :

Sorry for my poor explanation.
The bug is not about adding the same rule in many config files.

I'll give shorter bug description for more clarity:

1. We have default rules which are hard-coded in app, e.g Octavia.
{"a", "default"}

2. Admin does not create custom policy files because he's happy with default policies. He starts app an loaded policy equals rules in app code:
{"a":"default"}

3. Admin wants to adjust policies without app restart.
He creates custom policy file which contains:
{"a": "custom"}

4. Policy was updated correctly.
Loaded policy equals:
{"a": "custom"}

5. Now admin wants to return back to default policies without app restart.
He deletes custom policy file and expects that policy are "reset" to default state if there are not custom policy files.
But loaded policies are still equal:
{"a": "custom"}