crowbar/barclamp-clouderamanager — pull request #111 by Paul-Webster (2013-05-02 15:11:39+00:00)
Title: Hadoop 2.3/pebbles/RHEL 6.4 - CM API dev work - Submitter: Paul Webster  Reviewer: Vinayak Ponangi [1/1]

Hadoop 2.3/pebbles/RHEL 6.4 - CM API dev work - Submitter: Paul Webster Reviewer: Vinayak Ponangi
* Upgraded the RESTful API client version to v3. CM 4.5 implements the API functionality at
a v3 level and this change improves functional capabilities of the RESTful client interface.
* Added code to programmatically create/set the CM services, roles and host instances (cm_api.rb).
This code is fully debugged but the host instance information is still statically coded in an
in-line data structure for debugging purposes (live cluster environment).
We still need to write code to populate this data structure from the crowbar wall and
Chef role assignments - working on that next.
* Added support to set the CM "rack_id" parameter via the API.
* Class name fix up in BaseApiObject - cls.from_json_dict(). It was incorrect (cls.class.name->cls).
* Added roleConfigGroupRef RO_ATTR to the APIRoleObject. This ATTR is an API v3 dependency and
required implementation to properly support the API at the v3 level.
* Fixed up a few file permissions.
* 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/CM API integration is fully debugged.

.../clouderamanager/attributes/default.rb | 5 +-
.../clouderamanager/libraries/api_client.rb | 2 +-
chef/cookbooks/clouderamanager/libraries/roles.rb | 2 +-
chef/cookbooks/clouderamanager/libraries/types.rb | 2 +-
chef/cookbooks/clouderamanager/recipes/cm-api.rb | 82 ++++++++++++++++---
.../cookbooks/clouderamanager/recipes/cm-server.rb | 15 ++++
chef/cookbooks/clouderamanager/recipes/default.rb | 16 ++--
.../crowbar/bc-template-clouderamanager.json | 7 +-
.../crowbar/bc-template-clouderamanager.schema | 3 +-
crowbar.yml | 1 +
.../clouderamanager/_edit_attributes.html.haml | 4 +
11 files changed, 108 insertions(+), 31 deletions(-)

Crowbar-Pull-ID: 1cee0b5285c28fb3425a26007b2f25da035b6d8f

Crowbar-Release: pebbles