Transcript
Page 1: Setting up your virtual infrastructure using FI-LAB Cloud

Setting up your virtual infrastructure using FI-LAB Cloud

1

Page 2: Setting up your virtual infrastructure using FI-LAB Cloud

Content

Introduction to FI-LAB Cloud Hosting

Deploying your first VM

Deploying components for your application

Object Storage API

Reference Information

2

Page 3: Setting up your virtual infrastructure using FI-LAB Cloud

3

FI-LAB Cloud Hosting

Page 4: Setting up your virtual infrastructure using FI-LAB Cloud

FI-LAB Cloud Hosting

Create your account in lab.fi-ware.eu

Enter in the Cloud Portal

Create your keypair (private/private key)

Deploy your instance

Add a public IP

Open ports to the VM

4

Page 5: Setting up your virtual infrastructure using FI-LAB Cloud

5

Enter your email and passwordto access to the FI-LAB.

If you do not have it or forgot it, sign up or request for a new one.

Page 6: Setting up your virtual infrastructure using FI-LAB Cloud

6

You must create a keypairto access to the servers.

Page 7: Setting up your virtual infrastructure using FI-LAB Cloud

7

Choose the VM and click Lanch.

Page 8: Setting up your virtual infrastructure using FI-LAB Cloud

8

Allocate new IP

Page 9: Setting up your virtual infrastructure using FI-LAB Cloud

9

Open ports in your VM.

Page 10: Setting up your virtual infrastructure using FI-LAB Cloud

10

Page 11: Setting up your virtual infrastructure using FI-LAB Cloud

Deploying components for your application

11

• Deploying applications and not only Servers.• Ad hoc installation (not template usage).

• Managing applications in Servers (install, uninstall, configure, snapshot…).

• Deploying different environments for that applications.

Page 12: Setting up your virtual infrastructure using FI-LAB Cloud

Deploy example

Blueprint template: fiware1

• Blueprint Template: platform specification to be deployed.

• Tier: Each kind of software and server to be deployed.

• Each Tier can be deployed in one or several servers (e.g. tomcat, 2-5 servers).

• Blueprint Instance: Deployed in the testbed.

Tier 1: Tomcat

Tier 2: Context Broker

Tier 3: MongoDB

Server: 1 Server: 1

Servers: 2-5

Context Broker

Context Broker

12

Page 13: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

13

Press the option“Blueprint Templates”

from menu

You can open the Catalog of Blueprint Template or create one

from the scratch.

Page 14: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

14

You should introduce the “Name” and the “Description”.

Page 15: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

15

To add new Tier, press “DemoSantander” name.

Page 16: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

16

After press “Add Tier” you seethis windows to define the servers of this tier.

You must define a Keypairto access to those servers.

Install software pressingthe mouse right click.

Page 17: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

17

You should specify the maximum, minimum and current

number of servers

Page 18: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

18

Press “Action” and select “Lauch Template” to launch

the Instance.

Page 19: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

19

You should specify the “Name” and “Description” for

your blueprint.

Page 20: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

20

Firstly, we need to instantiateThe servers.

Page 21: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

21

Secondly, the installationof the software.

Page 22: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

22

Finally, if all was ok.Pressing the name you can

see the tiers of this blueprint.

Page 23: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

23

Press it to get informationof your server.

Page 24: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

24

Page 25: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

25

Page 26: Setting up your virtual infrastructure using FI-LAB Cloud

Demo

26

Page 27: Setting up your virtual infrastructure using FI-LAB Cloud

Object Storage Authentication

http://forge.fi-ware.eu/plugins/mediawiki/wiki/fiware/index.php/Object_Storage_-_User_and_Programmers_Guide

Authentication to get initial token

username='[email protected]' password='mypassword' curl -d '{"auth": {"passwordCredentials": {"username":"'$username'", "password":"'$password'"}}}' \ -H 'Content-type: aplication/json' \ http://cloud.lab.fi-ware.eu:4730/v2.0/tokens \ -vvv

Use initial token to get tenant

curl -H 'x-auth-token: '$token http://cloud.lab.fi-ware.eu:4730/v2.0/tenants

Authenticate tenant to get token for Object Storage

curl -d '{"auth": {"passwordCredentials": {"username":"'$username'", "password":"'$password'"}, "tenantId":"'$tenantId'"}}' \ -H 'Content-type: aplication/json' \http://cloud.lab.fi-ware.eu:4730/v2.0/tokens

Object Storage URL

http://130.206.82.9:8080/v1/AUTH_tenantId

27

Page 28: Setting up your virtual infrastructure using FI-LAB Cloud

Reference Information

More information and manuals on the Pegasus PaaS Manager page at FI-WARE Catalogue, “Documentation” tab

• http://tinyurl.com/paas-manager (1)

More information and manuals on the Object Storage GE page at FI-WARE Catalogue.

• http://tinyurl.com/object-storage (2)

More FI-LAB Cloud Hosting components.

• http://tinyurl.com/cloud-hosting-ges (3)

28

(1) http://catalogue.fi-ware.eu/enablers/paas-manager-pegasus/documentation(2) http://catalogue.fi-ware.eu/enablers/object-storage-ge-fi-ware-implementation(3) http://catalogue.fi-ware.eu/enablers?chapter_tid=2

Page 29: Setting up your virtual infrastructure using FI-LAB Cloud

If you have any question or problem contact to

[email protected]

29


Recommended