The Compatible One Application and Platform Service 1 (COAPS) API User Guide



Similar documents
OpenPaaS Le réseau social d'entreprise

1 Building, Deploying and Testing DPES application

OpenTOSCA Release v1.1. Contact: Documentation Version: March 11, 2014 Current version:

Lucid Key Server v2 Installation Documentation.

Sonatype CLM Enforcement Points - Continuous Integration (CI) Sonatype CLM Enforcement Points - Continuous Integration (CI)

UVOS WEB REGISTRATION EXTENSION MANUAL

Creating Web Services Applications with IntelliJ IDEA

WEBAPP PATTERN FOR APACHE TOMCAT - USER GUIDE

Configuring Secure Socket Layer (SSL) for use with BPM 7.5.x

Solr Bridge Search Installation Guide

Hudson configuration manual

Sonatype CLM for Maven. Sonatype CLM for Maven

1 What is Cloud Computing? Cloud Infrastructures OpenStack Amazon EC CAMF Cloud Application Management

Tool-Assisted Knowledge to HL7 v3 Message Translation (TAMMP) Installation Guide December 23, 2009

Integrating your Maven Build and Tomcat Deployment

Instant Chime for IBM Sametime For IBM Websphere and IBM DB2 Installation Guide

NetWrix File Server Change Reporter. Quick Start Guide

IBM Bluemix Tutorial Connecting Eclipse to Bluemix v2.0

CORISECIO. Quick Installation Guide Open XML Gateway

CloudBerry Dedup Server

Tutorial: setting up a web application

Getting Started. SAP HANA Cloud End-to-End-Development Scenarios. Develop your first End-to-End SAP HANA Cloud Application Scenario. Version 1.4.

Customizing the SSOSessionTimeout.jsp page for Kofax Front Office Server 3.5.2

Spring Security SAML module

Practice Fusion API Client Installation Guide for Windows

TIBCO Spotfire Statistics Services Installation and Administration Guide. Software Release 5.0 November 2012

Setting up your virtual infrastructure using FIWARE Lab Cloud

Using Internet or Windows Explorer to Upload Your Site

WEBAPP PATTERN FOR APACHE TOMCAT - USER GUIDE

Simba XMLA Provider for Oracle OLAP 2.0. Linux Administration Guide. Simba Technologies Inc. April 23, 2013

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

Magento Search Extension TECHNICAL DOCUMENTATION

Installation Guide for contineo

Configuration Manual Yahoo Cloud System Benchmark (YCSB) 24-Mar-14 SEECS-NUST Faria Mehak

Programming on the Web(CSC309F) Tutorial: Servlets && Tomcat TA:Wael Aboelsaadat

Mediasite. captioning

Dream Report Version 4.5

VERSION 9.02 INSTALLATION GUIDE.

How To Run A Hello World On Android (Jdk) On A Microsoft Ds.Io (Windows) Or Android Or Android On A Pc Or Android 4 (

Using IBM DevOps Services & Bluemix Services Part 2: Deploying an App that Uses a Data Management service

In order to upload a VM you need to have a VM image in one of the following formats:

TIBCO Silver Fabric Continuity User s Guide

TIBCO Spotfire Statistics Services Installation and Administration

JBoss SOAP Web Services User Guide. Version: M5

SSO Plugin. Integration for BMC MyIT and SmartIT. J System Solutions. Version 4.0

PEtALS Quick Start. PEtALS Team Roland NAUDIN - February

Apache Stratos (incubating) M5 Installation Guide

Application Interface Services Server for Mobile Enterprise Applications Configuration Guide Tools Release 9.2

CREATE A CUSTOM THEME WEBSPHERE PORTAL

EMC Documentum Content Services for SAP Repository Manager

NGASI Shared-Runtime Manager Administration and User Guide WebAppShowcase DBA NGASI

Workshop for WebLogic introduces new tools in support of Java EE 5.0 standards. The support for Java EE5 includes the following technologies:

Hadoop Data Warehouse Manual

NovaBACKUP Remote Workforce Version 12.5 Cloud Restore

TIBCO Spotfire Statistics Services Installation and Administration Guide

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Enterprise Service Bus

SpagoBI exo Tomcat Installation Manual

Scala InfoChannel Content Manager 5 Backup and Restore Instructions

Important Release Information and Technical and Deployment Support Notes

APIS CARM NG Quick Start Guide for MS Windows

AJ Matrix V5. Installation Manual

docs.hortonworks.com

Mercury Users Guide Version 1.3 February 14, 2006

What is Aconex Local Copy? Controlling Access to a Datastore Hardware Requirements Software Requirements Installing Aconex Local Copy Troubleshooting

Portal Factory CMIS Connector Module documentation

IKAN ALM Architecture. Closing the Gap Enterprise-wide Application Lifecycle Management

TIBCO Spotfire Statistics Services Installation and Administration. Release 5.5 May 2013

Installing Drupal on Your Local Computer

BIRT Application and BIRT Report Deployment Functional Specification

Continuous Integration (CI) and Testing - Configuring Bamboo, Hudson, and TestMaker

1 How to install CQ5 with an Application Server

LICENSE4J AUTO LICENSE GENERATION AND ACTIVATION SERVER USER GUIDE

Towards a Standard PaaS Implementation API: A Generic Cloud Persistent-Storage API

DEPLOYING WEBTOP 6.8 ON JBOSS 6.X APPLICATION SERVER

Livezilla How to Install on Shared Hosting By: Jon Manning

Improved Credential and SSL Configuration for EE 7

Deploying Oracle Business Intelligence Publisher in J2EE Application Servers Release

Lab 1 Whatsup Watson Hands-On Lab

Instant Chime for IBM Sametime Installation Guide for Apache Tomcat and Microsoft SQL

OBIEE Cloning. Cloning the OBIEE 11g database migration to a new host. Ashok Thiyagarajan ADVANS MARLBOROUGH, MA AND CHENNAI, INDIA

Deploying Intellicus Portal on IBM WebSphere

INSTALLING AND INVOKING ORACLE DATA INTEGRATOR (ODI) PUBLIC WEB SERVICES

Appendix E. Captioning Manager system requirements. Installing the Captioning Manager

3. Installation and Configuration. 3.1 Java Development Kit (JDK)

Networks and Services

SuperOffice Pocket CRM

Building a Modular Server Platform with OSGi. Dileepa Jayakody Software Engineer SSWSO2 Inc.

Using EMC Documentum with Adobe LiveCycle ES

IUCLID 5 Guidance and Support

FileMaker Server 14. FileMaker Server Help

IBM WebSphere Application Server Version 7.0

Upgrading Your Web Server from ClientBase Browser Version 2.0 or Above to Version 2.1.1

StreamServe Persuasion SP5 StreamStudio

Orchestrating Document and Media Management using CMIS

Transcription:

The Compatible One Application and Platform Service 1 (COAPS) API User Guide Using the COAPS API (v1.5.3) to provision and manage applications on Cloud Foundry Telecom SudParis, Computer Science Department 1 COAPs is proposed to replace *-PaaS.

Contributors: Mohamed Sellami, Telecom SudParis. Sami Yangui, Telecom SudParis. Mohamed Mohamed, Telecom SudParis. Samir Tata, Telecom SudParis. Contents Introduction... 3 Building the Cloud Foundry-PaaS API... 3 Deploying the Cloud Foundry-PaaS API... 3 Interacting with the Cloud Foundry-PaaS API... 4 Using CURL... 4 Using the Web-based client... 5 2

Introduction The COAPS API is a generic REST API that allows a seamless interaction with different and heterogeneous PaaS. In this aim, it exposes a generic interface that can be implemented according to the different actions exposed by a PaaS (e.g. Cloud Foundry, Openshift, etc.). In this user guide, we present a COAPS API implementation to interact with a Cloud Foundry PaaS. The different steps to build the CloudFoundry-COAPS API, to install it and to test it are detailed below. Building the Cloud Foundry-COAPS API 1. First, use GIT to locally clone the project s code from: git://gitorious.ow2.org/ow2- compatibleone/coaps.git. The cloned repository contains: a. coaps/spec: the COAPS API specifications. b. coaps/api: the java interfaces for the COAPS API. The current api ensures application and environment management operations. c. coaps/core: this folder contains two subfolders: i. CloudFoundry-api: the CloudFoundry-COAPS implementation. ii. OpenShift-api: the OpenShift-COAPS implementation. d. coaps/client: a generic Web-based client to test the different implementations. e. coaps/test-resources: the application description (i.e manifest) and a Java Web application that can be deployed on Cloud Foundry or Openshift. 2. Build the project using maven (version 3.0.4). Go to the cloned repository s root directory (i.e. coaps) and run mvn install : This action will build, among others, a Web-based implementation of the CloudFoundry- COAPS API (CF-api.war in the coaps/core/cloudfoundry-api/target folder). Deploying the Cloud Foundry-COAPS API After the maven build, a Web application (i.e. war file) is generated in the CloudFoundry-api subfolder. This application has to be deployed on a Web server and will act as a REST server which allows interacting with a CloudFoundry PaaS. 1. To deploy the application using the apache Tomcat server, the version 7 using a java 1.6 runtime is required. Deploy the Web implementation of the CoudFoundry-api by copying the CF-api.war from GenericAPI/core/CloudFoundry-api/target to the tomcat s webapps folder. 2. You can test the deployment of the application by typing http://{hostname}:{portnumber}/cf-api/ in your Web browser. You should get a message indicating that your CloudFoundry implementation is correctly running. 3

3. By default, the CloudFoundry-COAPS API will interact with the online VMware's Cloud Application Platform (i.e. http://api.cloudfoundry.com/ ) using a test account. You can sign up for a free Cloud Foundry account on this page: https://my.cloudfoundry.com/signup. The connection parameters can be updated by changing the default parameters in the credentials.properties file: a. To modify this file, first stop the running tomcat instance and open the CF-api.war file with your favorite compression tool. b. Go to WEB-INF/classes/telecom/sudparis/eu/copaas/core/server/ resources/credentials.properties. c. Edit the file to specify your credentials. For example: vcap.target=http://api.cloudfoundry.com vcap.email=login vcap.passwd=password host=api.cloudfoundry.com api.public.url=http:// {hostname}:{portnumber}/cf-api/rest/ d. Save the file and restart tomcat. Note: if the old credentials persist after a change, try to delete the extracted CF-api folder and any related temporally folders. Interacting with the Cloud Foundry-COAPS API To invoke the API actions, one can use any REST client (eg. CURL) or our Web-based client (generated in the client sub-folder). Using CURL The list of available operations, their type (i.e. GET, POST, etc.) and invocation path and parameters can be viewed at: http://{hostname}:{portnumber}/cf-api/rest/application.wadl. An example of the provided WADL resources and operations description is given in Figure 1. 4

Figure 1 the WADL description of the REST resources and operations offered by the Cloud Foundry implementation For example: to list all available applications on a Cloud Foundry instance we use: To create an environment, we have to provide its description file in XML (i.e. its manifest) through a POST: An example of a manifest is provided in coaps/test-resources. Note: If you use this manifest, do not forget to remove the license block in the beginning. Using the Web-based client The web archive (client.war) of the client is available at coaps/client/target/client.war. To deploy the client, copy the client.war to the tomcat s webapps folder. The client will be available at this address: http://{hostname}:{portnumber}/client/. In the following, we describe an application provisioning use case on Cloud Foundry: 5

1. Launch the client http://{hostname}:{portnumber}/client/ from a Web browser and specify the location of your CloudFoundry-COAPS API implementation 2 2. Create an environment: select the "create environment" action from the action list and provide the manifest describing, among others, the environment needed by the application to deploy (runtimes, frameworks, etc.). In the body of the request just paste the content of coaps/test-resources/manifest.xml (without the license comment). After submitting this request (i.e. click on the submit button), an XML description of the created environment is returned. From this descriptor, you have to ''save'' the returned "envid" that must be provided later to link this environment to the application to deploy (deployapplication action). 2 Currently we provide only the Cloud Foundry and Openshift implementations. To test the Openshift-PaaS API implementation, deploy the associated war (from coaps/core/openshift-api/target) on tomcat. 6

Note: If additional nodes are needed, a database for example, the Environment manifest must be updated accordingly. To add a mysql database in the environment for example, add the following element after the existing < paas_environment_node > element. < paas_environment_node content_type="database" name="mysql" version="2.2" provider="cf"/> 3. Create the application: select the "create application" action from the action list and provide the manifest describing the application. In the body of the request just paste the content of coaps/test-resources/manifest.xml (without the license comment). 7

In the same way as the created environment, an "appid" will be provided by the API. Note 1: If needed, you have to modify the manifest to update the name of the application and to specify the path of the application to deploy in the <paas_application_deployable> element. Note 2: If additional instances are needed, the manifest must be updated accordingly. To declare an additional instance, add the following element after the existing <paas_application_version_instance> element. <paas_application_version_instance name="instance2" initial_state="1" default_instance="false"/> 8

4. Deploy the application select the "deploy application" action from the action list while specifying the environment identifier "envid" and the application identifier "appid" in the path. You also have to join the application artifacts to deploy. In this example we are using the SampleServlet.war application. This action will upload and deploy the specified application on the Cloud Foundry PaaS. By default, the state of the application is set to STOPPED. As response, an XML descriptor of the deployed application is returned. 5. Start the application: select the "start application" action from the action list and provide the application identifier "appid" in the path. 9

The application is now started and its access URL http://servletsampleapplication.cloudfoundry.com is available in the returned application description. The application is now accessible via a browser on the returned URL. Note: The provided scenario is a basic example that shows how to deploy a java Web application on a specific environment (java_web) and start it on one instance. However, for particular needs, more constraints can be described on the manifests (i.e. jredis environment, mysql database, more instances, etc.). 10

Note : Additional environment and application operations are also offered by the CloudFoundry- COAPS API implementation. For example: stop application, describe/destroy application/environment, etc. 11