Add action-managed-update flag to limit changes on routing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-advanced-routing |
Fix Released
|
Critical
|
Giuseppe Petralia |
Bug Description
When "juju config" changes any value, routes will automatically trigger a "remove_routes" (the current live routes) and "apply" the new routes. However, there are customers that want to limit changes during approved operations or pre-agreed weekly maintenance windows.
A new config parameter "action-
New rules and routes should be validated before removing the live ones. In case there is something wrong, the action would fail and the "old" routes would continue working.
Related branches
- Alvaro Uria (community): Approve
- BootStack Reviewers: Pending requested
-
Diff: 288 lines (+155/-16)11 files modifiedactions.yaml (+2/-0)
actions/apply-changes (+1/-0)
actions/apply_changes.py (+60/-0)
config.yaml (+5/-0)
lib/advanced_routing_helper.py (+5/-0)
reactive/advanced_routing.py (+8/-0)
tests/functional/test_routing.py (+37/-0)
tests/unit/conftest.py (+4/-14)
tests/unit/test_AdvancedRoutingHelper.py (+1/-1)
tests/unit/test_actions.py (+31/-0)
tox.ini (+1/-1)
Changed in charm-advanced-routing: | |
assignee: | nobody → Giuseppe Petralia (peppepetra86) |
status: | New → In Progress |
importance: | Undecided → Critical |
Changed in charm-advanced-routing: | |
status: | In Progress → Fix Committed |
Changed in charm-advanced-routing: | |
milestone: | none → 20.05 |
Changed in charm-advanced-routing: | |
status: | Fix Committed → Fix Released |