Hadoop 2.3 dev (Fred) - CM API - Submitter: Paul Webster Reviewer: Vinayak Ponangi [1/1]

Hadoop 2.3 dev (Fred) - CM API - Submitter: Paul Webster Reviewer: Vinayak Ponangi
   * Added a new role to execute CM_API code on the CM admin node (clouderamanager-cb-adminnode.rb).
   * Hookup and underpinnings for the new clouderamanager-cb-adminnode role.
   * Added new UI components to support API integration (cluster_name, cdh_version).
   * Implemented code to automatically deploy the cluster via chef script (cm-api.rb).
     This code is connected to a dev mode flag and the default setting is disabled
     (no automatically cluster deployment). See the deployment_mode (manual/auto) field
     on the CM proposal screen - work in progress/not complete.
   * Fixed an API connection issue. The use_tls parameter was inadvertently type casted
     as a string and it should be type bool. This caused the SSH connection to fail
     (fix validated and working correctly now).
   * Changed the CB service provided object code to make a copy of the node objects as to
     not interfere with the baseline node model (NodeObject.all.dup).
   * Other miscellaneous cleanup changes (mostly doc) in the service provider module.
   * Completed the CB package installation code so the cluster can be brought up without
     relying on CM to lay down the base CDH/CM packages.
   * auto-config and auto-start the cm-agents to get them heartbeating on the cluster
     (a requirement of the implementation).
   * All changes validated at the unit test and system deployment level.



 .../clouderamanager/attributes/default.rb          |   10 +--
 chef/cookbooks/clouderamanager/recipes/cm-api.rb   |   60 ++++++++++++++++++--
 .../cookbooks/clouderamanager/recipes/cm-server.rb |    7 ++-
 .../crowbar/bc-template-clouderamanager.json       |    6 ++-
 .../crowbar/bc-template-clouderamanager.schema     |    4 +-
 chef/roles/clouderamanager-cb-adminnode.rb         |   26 +++++++++
 chef/roles/clouderamanager-server.rb               |    3 +-
 crowbar.yml                                        |    3 +
 .../app/controllers/clouderamanager_controller.rb  |    6 ++-
 .../app/models/clouderamanager_service.rb          |   39 +++++++++----
 .../clouderamanager/_edit_attributes.html.haml     |    8 +++
 .../clouderamanager/_edit_deployment.html.haml     |    5 +-
 .../views/barclamp/clouderamanager/nodes.html.haml |   18 ++++++
 unittest/api_test_harness.rb                       |    3 +-
 unittest/create_cluster.rb                         |   31 ++++++++++-
 15 files changed, 192 insertions(+), 37 deletions(-)

Crowbar-Pull-ID: b497147bc2dfedad60cf10a0ac83300baa811026

Crowbar-Release: fred