crowbar/barclamp-crowbar — pull request #779 by cloudedge (2013-11-26 04:38:51+00:00)
Title: Improve workflow for simulated nodes and add node.hint for future function [1/2]

1) Improve the way that we handle simulated machines (prep for Docker) so that we skip the
provisioner logic more naturally. The original code used the Jig.active(test) check while
the new approach requires that the simulator (or Docker or node adder) use the "noop" Bootenv
to tell Crowbar to skip provisioning.

1a) Expose bootenv on the UI

2) Fix issue where provisioner looks for Crowbar key that is not present in test mode
does not cause failures. If it's missing in production mode then raise a better error

3) Add node.hint field into the database. This is WIP for allowing users to make requests for
Crowbar to implement during operations (already updated in the docs).

TO DO ITEMS:
1) test bootenv in BDD (may add to this pull)
2) continue to work on hint

BDD/bdd_webrat.erl | 3 -
BDD/crowbar.erl | 26 +++-
BDD/features/annealer.feature | 3 +-
BDD/features/external_links.feature | 40 ------
BDD/node.erl | 4 +-
BDD/run.erl | 44 +++++++
.../app/controllers/machines_controller.rb | 137 --------------------
.../app/controllers/runs_controller.rb | 34 +++++
.../app/controllers/scaffolds/nodes_controller.rb | 2 +-
crowbar_framework/app/models/doc.rb | 2 +
crowbar_framework/app/models/node.rb | 17 ++-
crowbar_framework/app/views/nodes/_show.html.haml | 2 +
crowbar_framework/config/locales/crowbar/en.yml | 6 +
crowbar_framework/config/routes.rb | 2 +
.../db/migrate/20120731225516_create_nodes.rb | 1 +
doc/devguide/api/ignore_me.md | 7 +
doc/devguide/api/run.md | 34 +++++
doc/devguide/documentation.md | 3 +
doc/devguide/model/jig.md | 6 +
doc/devguide/model/node.md | 25 ++++
20 files changed, 207 insertions(+), 191 deletions(-)

Crowbar-Pull-ID: f6953a47db518d6a0bd0831843a23ccde9340576

Crowbar-Release: development