setting up your virtual infrastructure using fi lab cloud webminar

75
Open APIs for Open Minds Setting up your virtual infrastructure using FI-LAB Cloud (http://tinyurl.com/FIWARECloudWebminar) Henar Muñoz Frutos ([email protected]) Webminar

Upload: henar-munoz-frutos

Post on 13-Jul-2015

462 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Setting up your virtual infrastructure using fi lab cloud webminar

Open APIs for Open Minds

Setting up your virtual infrastructure

using FI-LAB Cloud (http://tinyurl.com/FIWARECloudWebminar)

Henar Muñoz Frutos

([email protected])

Webminar

Page 2: Setting up your virtual infrastructure using fi lab cloud webminar

Content

1. Introduction to FI-LAB Cloud Hosting

2. Deploying your first server

3. Containers and volumes

4. Deploying components for your application in your FI-LAB Cloud Hosting

5. Reference Information

1

Page 3: Setting up your virtual infrastructure using fi lab cloud webminar

2

“We truly believe

that OpenStack is

the Linux of cloud

computing”

Mariano Cunietti

CTO Enter &

Cloudup

Page 4: Setting up your virtual infrastructure using fi lab cloud webminar

3

Source: https://twitter.com/netpres/status/296039862182744064/photo/1

Page 5: Setting up your virtual infrastructure using fi lab cloud webminar

4

1. Introduction to FI-LAB Cloud Hosting

Page 6: Setting up your virtual infrastructure using fi lab cloud webminar

2. Deploying your first Server

Create your account in lab.fi-ware.eu

Enter in the Cloud Portal

Create your keypair (private key)

Deploy your instance

Add a public IP

Open ports to the VM

5

Page 7: Setting up your virtual infrastructure using fi lab cloud webminar

6

Page 8: Setting up your virtual infrastructure using fi lab cloud webminar

7

Enter your email and password

to access to the FI-LAB.

Sign in

Page 9: Setting up your virtual infrastructure using fi lab cloud webminar

8

Enter your email and password

to access to the FI-LAB.

If you do not have it or forgot it,

sign up or request for a new one.

Sign in

Page 10: Setting up your virtual infrastructure using fi lab cloud webminar

Create new user account

9

Page 11: Setting up your virtual infrastructure using fi lab cloud webminar

10

You must create a keypair

to access to the servers.

Create a new keypair

Page 12: Setting up your virtual infrastructure using fi lab cloud webminar

11

Create a new keypair

Page 13: Setting up your virtual infrastructure using fi lab cloud webminar

12

Create a new keypair

Please download it.

The portal does not store

your Public Key

Page 14: Setting up your virtual infrastructure using fi lab cloud webminar

How to connect from Windows

Install PuTTY and PuTTYgen from http://www.putty.org/

Convert your Keypair to PPK

• Start PuTTYgen (e.g. From the Start menu, click All Programs > PuTTY >

PuTTYgen)

• Click Load and select the Keypair file (e.g. sevilla.pem). You’ll need to display

All Files (*.*) to see your Keypair.

• Click Open.

13

Page 15: Setting up your virtual infrastructure using fi lab cloud webminar

How to connect from Windows

14

Page 16: Setting up your virtual infrastructure using fi lab cloud webminar

How to connect from Windows

Connect to your instance

• Start PuTTY.

• Put the public IP of your instance (default SSH port: 22).

Configure it to use your Keypair

• Open the Auth submenu (Connection > SSH > Auth)

• Select the recently generated Private key file (PPK file).

15

Page 17: Setting up your virtual infrastructure using fi lab cloud webminar

Create a new

Security Group

Security groups

16

Page 18: Setting up your virtual infrastructure using fi lab cloud webminar

Security groups

17

Page 19: Setting up your virtual infrastructure using fi lab cloud webminar

Edit Rules to open

ports in your VM.

Security groups

18

Page 20: Setting up your virtual infrastructure using fi lab cloud webminar

Security groups

19

Page 21: Setting up your virtual infrastructure using fi lab cloud webminar

Allocate IP to project

20

Allocate new IP

Page 22: Setting up your virtual infrastructure using fi lab cloud webminar

Allocate IP to project

21

Page 23: Setting up your virtual infrastructure using fi lab cloud webminar

Allocate IP to project

22

Page 24: Setting up your virtual infrastructure using fi lab cloud webminar

Launch Instances

23

Launch new

instance

Page 25: Setting up your virtual infrastructure using fi lab cloud webminar

Launch new instance

24

Page 26: Setting up your virtual infrastructure using fi lab cloud webminar

Launch new instance

25

Page 27: Setting up your virtual infrastructure using fi lab cloud webminar

Launch new instance

26

Page 28: Setting up your virtual infrastructure using fi lab cloud webminar

Launch new instance

27

Page 29: Setting up your virtual infrastructure using fi lab cloud webminar

Launch new instance

28

Page 30: Setting up your virtual infrastructure using fi lab cloud webminar

Associate IP

29

Associate a public

IP to a server.

Page 31: Setting up your virtual infrastructure using fi lab cloud webminar

Associate IP

30

Page 32: Setting up your virtual infrastructure using fi lab cloud webminar

Associate IP

31

Page 33: Setting up your virtual infrastructure using fi lab cloud webminar

Allocate IP to project

32

Page 34: Setting up your virtual infrastructure using fi lab cloud webminar

Instance Overview

33

Page 35: Setting up your virtual infrastructure using fi lab cloud webminar

Access to the instance

34

Page 36: Setting up your virtual infrastructure using fi lab cloud webminar

Access to the instance

35

Page 37: Setting up your virtual infrastructure using fi lab cloud webminar

Access to the instance

36

Page 38: Setting up your virtual infrastructure using fi lab cloud webminar

3. Containers and volumes

Create volumes

Attach volume to servers

Create containers in the object storage

Upload objects into your containers

Object Storage API

37

Page 39: Setting up your virtual infrastructure using fi lab cloud webminar

Create a volume

38

Create a new

volume

Page 40: Setting up your virtual infrastructure using fi lab cloud webminar

Create a volume

39

Page 41: Setting up your virtual infrastructure using fi lab cloud webminar

Attach volume to instance

40

Page 42: Setting up your virtual infrastructure using fi lab cloud webminar

Attach volume to instance

41

Page 43: Setting up your virtual infrastructure using fi lab cloud webminar

Attach volume to instance

42

Page 44: Setting up your virtual infrastructure using fi lab cloud webminar

Create container

43

Create a new

container

Page 45: Setting up your virtual infrastructure using fi lab cloud webminar

Create container

44

Page 46: Setting up your virtual infrastructure using fi lab cloud webminar

Create container

45

Page 47: Setting up your virtual infrastructure using fi lab cloud webminar

Upload object

46

Page 48: Setting up your virtual infrastructure using fi lab cloud webminar

Upload object

47

Page 49: Setting up your virtual infrastructure using fi lab cloud webminar

Object Storage API

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

48

Page 50: Setting up your virtual infrastructure using fi lab cloud webminar

4. Deploying components for your application

in FI-LAB Cloud Hosting

Deploying components for your application.

Create Blueprint templates.

Create Tiers on a Blueprint template.

Launch Blueprint templates -> create Blueprint instances

See details of the Blueprint instance

Check the SW installed on the Blueprint instance.

49

Page 51: Setting up your virtual infrastructure using fi lab cloud webminar

Deploying components for your application

50

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

usage).

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

• Deploying different environments for those applications.

Page 52: Setting up your virtual infrastructure using fi lab cloud webminar

Deploying components for your application

Blueprint template: fiware1• Blueprint Template: platform specification

to be deployed.

Context Broker

51

Page 53: Setting up your virtual infrastructure using fi lab cloud webminar

Deploying components for your application

Blueprint template: fiware1• Blueprint Template: platform specification

to be deployed.

• Tier: Each kind of software and server to

be deployed.

Tier 1: Tomcat

Tier 2: Context Broker Tier 3: MongoDB

Context Broker

52

Page 54: Setting up your virtual infrastructure using fi lab cloud webminar

Deploying components for your application

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).

Tier 1: Tomcat

Tier 2: Context Broker Tier 3: MongoDB

Server: 1 Server: 1

Servers: 2-5

Context Broker

53

Page 55: Setting up your virtual infrastructure using fi lab cloud webminar

Deploying components for your application

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 FI-Lab.Tier 1: Tomcat

Tier 2: Context Broker Tier 3: MongoDB

Server: 1 Server: 1

Servers: 2-5

Context Broker

Context Broker

54

Page 56: Setting up your virtual infrastructure using fi lab cloud webminar

Create Blueprint templates

55

Press the option

“Blueprint Templates”

from menu

You can open the Catalog of

Blueprint Template or create one

from the scratch.

Page 57: Setting up your virtual infrastructure using fi lab cloud webminar

Create Blueprint templates

56

You should introduce the

“Name” and the “Description”.

Page 58: Setting up your virtual infrastructure using fi lab cloud webminar

Create Tiers on a Blueprint template

57

To add new Tier,

press “SevillaTemplate”

name.

Page 59: Setting up your virtual infrastructure using fi lab cloud webminar

Create Tiers on a Blueprint template

58

Press “Add Tier” to create

new tier inside the template

Page 60: Setting up your virtual infrastructure using fi lab cloud webminar

Create Tiers on a Blueprint template

59

You must select a Keypair

to access to those servers.

Do not forget to check

It if you want to have public

access

Page 61: Setting up your virtual infrastructure using fi lab cloud webminar

Create Tiers on a Blueprint template

60

Drag&Drop the software that

you want to install on this

group of servers.

Page 62: Setting up your virtual infrastructure using fi lab cloud webminar

Create Tiers on a Blueprint template

61

Page 63: Setting up your virtual infrastructure using fi lab cloud webminar

Launch Blueprint templates -> Blueprint instances

62

Press “Action” and select

“Lauch Template” to launch

the Instance.

Page 64: Setting up your virtual infrastructure using fi lab cloud webminar

Launch Blueprint templates -> Blueprint instances

63

You should specify the “Name”

and “Description” for

your blueprint.

Page 65: Setting up your virtual infrastructure using fi lab cloud webminar

Launch Blueprint templates -> Blueprint instances

64

Firstly, the deployment

of infrastructure.

Page 66: Setting up your virtual infrastructure using fi lab cloud webminar

Launch Blueprint templates -> Blueprint instances

65

Secondly, the installation

of the software.

Page 67: Setting up your virtual infrastructure using fi lab cloud webminar

Launch Blueprint templates -> Blueprint instances

66

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

see the tiers of this blueprint.

Page 68: Setting up your virtual infrastructure using fi lab cloud webminar

Launch Blueprint templates -> Blueprint instances

67

Press it to get information

of your server(s).

Page 69: Setting up your virtual infrastructure using fi lab cloud webminar

Demo

68

10.0.1.93

130.206.82.54

Page 70: Setting up your virtual infrastructure using fi lab cloud webminar

Demo

69

Page 71: Setting up your virtual infrastructure using fi lab cloud webminar

Demo

70

Page 72: Setting up your virtual infrastructure using fi lab cloud webminar

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)

71

(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 73: Setting up your virtual infrastructure using fi lab cloud webminar

72

Source: http://blog.liverez.com/2013/11/25/5-questions-to-ask-when-switching-to-cloud-based-vacation-rental-software/

Page 75: Setting up your virtual infrastructure using fi lab cloud webminar

http://fi-ppp.eu

http://fi-ware.eu

Follow @Fiware on Twitter !

Thanks !

74