crowbar/barclamp-clouderamanager — pull request #115 by Paul-Webster (2013-05-10 14:29:51+00:00)
Title: Hadoop 2.3/pebbles/RHEL 6.4 - CM API role assignment tuning - Submitter: Paul Webster  Reviewer: Vinayak Ponangi [1/1]

Hadoop 2.3/pebbles/RHEL 6.4 - CM API role assignment tuning - Submitter: Paul Webster Reviewer: Vinayak Ponangi
* Refactored CM role assignment code in order to correctly match CB->CM roles.
* Added the CM GATEWAY role assignment to the CB edgenodes.
* Added code to automatically re-start the cm-server if the license key is updated (or changed).
* Refactored the API client get_license() method to return nil if no license key found (RestClient::ResourceNotFound exception rescue$
* All code tested at the unit and system level on a live 8 node Hadoop cluster.
* CM_API code execution is still disabled by default via dev mode flag - "deployment_type=manual".
It will remain that way until the functional aspects of CB/API execution is fully debugged.

.../clouderamanager/attributes/default.rb | 2 +-
.../clouderamanager/libraries/api_client.rb | 10 +-
chef/cookbooks/clouderamanager/recipes/cm-api.rb | 96 +++--
.../crowbar/bc-template-clouderamanager.json | 2 +-
unittest/api_test_harness.rb | 538 ++++++++++----------
unittest/cm_license_check.rb | 76 +++
unittest/create_cluster.rb | 2 +-
7 files changed, 419 insertions(+), 307 deletions(-)

Crowbar-Pull-ID: dcc26aaf8a51c03d769518128754bbb5dc70d98c

Crowbar-Release: pebbles