crowbar/barclamp-crowbar — pull request #623 by cloudedge (2013-07-23 14:13:58+00:00)
Title: Annealer cycle runs from UI [1/2]

This pull fixes a few bugs that were blocking the annealer from running
1) %x incorrect for test barclamp
2) not deleting nodes correctly
3) added cycle method for snapshot

There are currently TWO paths for the annealer > node_role and snapshot.
We should resolve this shortly. For now, the real action is not in that code.

My testing includes creating nodes using the erlang simulator: dev:pop()

This command (in erlang) will setup a 5 node system with the default roles.

To run the annealer,
1) go to your deployment and select the committed snapshot
2) click the "to do actions" button
3) that puts one node-role into transistioning
4) click back to snapshot to admire the grid UI
5) go back to "to do actions"
6) click "run cycle" to execute the annealer (the first action Script jig and slow)
7) repeat and profit

We have not yet added code that transitions the snapshot to active when all
node-roles are ready. That is next.

BDD/dev.erl | 4 ++--
.../app/controllers/application_controller.rb | 2 +-
.../app/controllers/snapshots_controller.rb | 5 +++++
crowbar_framework/app/models/jig.rb | 17 +++++++++--------
crowbar_framework/app/models/node_role.rb | 2 +-
crowbar_framework/app/models/snapshot.rb | 4 ++--
.../app/views/node_roles/index.html.haml | 3 +++
crowbar_framework/config/locales/crowbar/en.yml | 2 ++
crowbar_framework/config/routes.rb | 4 +++-
9 files changed, 28 insertions(+), 15 deletions(-)

Crowbar-Pull-ID: 1a38f4d27d34d3bee8783ac800982da3e56dbadc

Crowbar-Release: development