Logic to upload formulas to an environment is necessary

Bug #616478 reported by Gustavo Niemeyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Medium
Kapil Thangavelu

Bug Description

We need to implement some kind of formula.EnvironmentPublisher which is able to do the following:

1) Is initialized with an Environment instance

2) One or more formulas are added to it (e.g. publisher.add_formula(formula))

3) On publisher.publish(), a connection is established with the environment and:
    a) A verification is made to see which of the added formulas do not exist in the environment yet
    b) All the unavailable formulas are sent to the FileStorage of the given environment
    c) The new formulas are added to the Zookeeper filesystem, through the FormulaStateManager object (see bug #616481).

This logic would be used by the "deploy" command, but can also be used by an individual subcommand which is able to *just* upload the formula. Something like:

    $ ensemble store-formula <formula name>

Tags: spike

Related branches

Changed in ensemble:
status: New → Confirmed
importance: Undecided → Medium
description: updated
description: updated
Changed in ensemble:
milestone: none → 0.1
Changed in ensemble:
assignee: nobody → Kapil Thangavelu (hazmat)
status: Confirmed → In Progress
Changed in ensemble:
status: In Progress → Fix Committed
Changed in ensemble:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.