Store Ensemble version number in topology node and verify ops
Bug #825398 reported by
Jim Baker
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Medium
|
Jim Baker |
Bug Description
Ensemble will occasionally have backwards breaking changes. To accommodate this scenario, store a version number in the topology node at bootstrap. This version number is a monotonically increasing integer and is in part of the Ensemble package itself.
Any topology operations will raise a suitable error about working with too old a version when they parse the topology node. This should result in the desired outcome of failing early without requiring additional checking against ZK. There may be better ways to do this.
Related branches
lp://staging/~jimbaker/pyjuju/verify-version
- Kapil Thangavelu (community): Approve
- Gustavo Niemeyer: Approve
-
Diff: 185 lines (+83/-8)4 files modifiedensemble/errors.py (+26/-0)
ensemble/state/tests/test_topology.py (+28/-2)
ensemble/state/topology.py (+21/-5)
ensemble/tests/test_errors.py (+8/-1)
Changed in ensemble: | |
importance: | Undecided → Medium |
assignee: | nobody → Jim Baker (jimbaker) |
milestone: | none → dublin |
status: | New → In Progress |
Changed in ensemble: | |
milestone: | dublin → eureka |
Changed in ensemble: | |
status: | In Progress → Fix Released |
To post a comment you must log in.