Logic for handling formula states in ZK is needed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Medium
|
Gustavo Niemeyer |
Bug Description
Along the lines of what was described in bug #616485 in the context of services, and bug #616487 in the context of machines, we also need state classes to deal with formulas.
The following classes are recommended:
FormulaStateMan
FormulaState: Instances of this class will deal with details pertinent to a single formula, such as its name, its revision number, and its digest.
Part of this logic is necessary to upload new formulas in the environment, as per bug #616478, and to get formulas deployed, as covered in bug #616490.
The following bugs describe additional features of the FormulaStateMan
- Bug #619370: Searching for formulas
- Bug #619371: Formula removal
- Bug #619280: Formula replacement
Related branches
- Kapil Thangavelu (community): Approve
-
Diff: 653 lines (+420/-53)15 files modifiedMakefile (+6/-1)
ensemble/errors.py (+13/-0)
ensemble/formula/base.py (+35/-0)
ensemble/formula/bundle.py (+16/-5)
ensemble/formula/directory.py (+23/-34)
ensemble/formula/info.py (+5/-1)
ensemble/formula/tests/test_base.py (+53/-0)
ensemble/formula/tests/test_bundle.py (+19/-0)
ensemble/formula/tests/test_directory.py (+39/-11)
ensemble/formula/tests/test_info.py (+10/-0)
ensemble/lib/filehash.py (+18/-0)
ensemble/lib/tests/test_filehash.py (+13/-0)
ensemble/state/formula.py (+74/-0)
ensemble/state/tests/test_formula.py (+85/-0)
ensemble/tests/test_errors.py (+11/-1)
Changed in ensemble: | |
assignee: | nobody → Gustavo Niemeyer (niemeyer) |
importance: | Undecided → Medium |
status: | New → Confirmed |
description: | updated |
description: | updated |
Changed in ensemble: | |
status: | Confirmed → In Progress |
description: | updated |
description: | updated |
Changed in ensemble: | |
milestone: | none → 0.1 |
Changed in ensemble: | |
status: | In Progress → Fix Committed |
Changed in ensemble: | |
status: | Fix Committed → Fix Released |