+ All Categories
Home > Technology > Fiware cloud developers week brussels

Fiware cloud developers week brussels

Date post: 16-Jul-2015
Category:
Upload: fernando-lopez-aguilar
View: 322 times
Download: 1 times
Share this document with a friend
Popular Tags:
64
FIWARE Cloud Fernando López Telefónica I+D Cloud Architects, FIWARE [email protected] , @flopezaguilar Kenneth Nagin IBM Cloud Chapter Lead, FIWARE [email protected]
Transcript
Page 1: Fiware cloud developers week brussels

FIWARE Cloud

Fernando LópezTelefónica I+DCloud Architects, [email protected], @flopezaguilar

Kenneth NaginIBMCloud Chapter Lead, [email protected]

Page 2: Fiware cloud developers week brussels

Content

• FIWARE Lab Cloud Hosting: Overview and Architecture

• FIWARE Lab: Basic functionalities

–FIWARE Compute Services

–FIWARE Network Services

–FIWARE Storage Services

• FIWARE Lab: PaaS, working with Blueprints

• Reference Information

2

Page 3: Fiware cloud developers week brussels

FIWARE Lab Cloud Hosting: Overview and Architecture

3

Page 4: Fiware cloud developers week brussels

FIWARE Lab Cloud Hosting

4

Page 5: Fiware cloud developers week brussels

FIWARE Lab Cloud Hosting

Cloud PortalPaaS

SDC Monitoring

Account

5

Compute Object Storage

Page 6: Fiware cloud developers week brussels

Summary

•Account: Manages identity and organizations; provides authentication and authorization for other services

(OpenStack Keystone)

•Compute: Manages the lifecycle of compute instances. Responsibilities include spawning, scheduling and

decommissioning of VMs (OpenStack Nova)

•Network: Enable Network-Connectivity-as-a-Service for other services, e.g. Compute, (OpenStack Neutron)

•Storage:– Persistent block storage for running compute instances (OpenStack Cinder)

– Stores and retrieves arbitrary unstructured data object and provide storage for other services, e.g. Image, (OpenStack Swift)

• Image: Stores and retrieves VM disk images used by compute (OpenStack Glance)

• Monitoring: Monitoring information about VMs

• SDC: Deploying Software in VMs

• PaaS Manager– Working with regions

– Creating Tiers and deploying Blueprints

6

Page 7: Fiware cloud developers week brussels
Page 8: Fiware cloud developers week brussels

FIWARE Lab Cloud – Multiregion

8

Page 9: Fiware cloud developers week brussels

Account

• Creating an account– https://account.lab.fi-ware.org

• Understanding organizations– Mapped to OS tenants

• Signing in in Cloud Portal – https://cloud.lab.fi-ware.org

– SSO

9

Page 10: Fiware cloud developers week brussels

Add new user

Enter your email and password

to access to the FIWARE Lab.

If you do not have it or forgot it,

sign up or request for a new

one.

10

Page 11: Fiware cloud developers week brussels

FIWARE Lab: Basic functionalities

11

Page 12: Fiware cloud developers week brussels

FIWARE Lab: Basic functionalities

• Create keypair (private key)

• Create security group (incoming ports to VM, e.g. 22 for ssh)

• Deploy an instance

–choice from a library of predefined images, e.g. Centros, Ubuntu, etc.

–choice flavor of resource configuration (vCPU, memory, user disk, ephemeral disk).

–choice security group.

–choice keypair to ssh into VM.

–specify configuration scripts (optional).

• Associate public IP with VM.

• Create private networks and associate to VMs.

• Create storage volumes and attach to VM.

12

Page 13: Fiware cloud developers week brussels

Create keypair

You must create a keypair

to access to the servers.

13

Page 14: Fiware cloud developers week brussels

Security groups

Create a Security Group

14

Page 15: Fiware cloud developers week brussels

Create and edit Security Group rules

15

Page 16: Fiware cloud developers week brussels

Launch Instances

Launch new

instance

16

Page 17: Fiware cloud developers week brussels

Launch Instances

17

Page 18: Fiware cloud developers week brussels

Launch Instances

18

Page 19: Fiware cloud developers week brussels

Allocate IP to a project

Allocate new IP

19

Page 20: Fiware cloud developers week brussels

Allocate Floating IP

20

Page 21: Fiware cloud developers week brussels

Instances Overview

21

Page 22: Fiware cloud developers week brussels

Access to the instance

22

Page 23: Fiware cloud developers week brussels

FIWARE Network

• Multi-tenancy: Do I need to isolate tenants?

– Even if you trust them, you might want isolation.

– Tenant creates his own network(s) and router(s) allowing complex network

topologies for multi-tier applications.

• Create private network with subnets.

• Create router and interfaces.

• Set gateway.

• Deploy instance on network.

23

Page 24: Fiware cloud developers week brussels

Create your own network

Create a new

Network

24

Page 25: Fiware cloud developers week brussels

Add subnet associate to the previous network

Add subnet

25

Page 26: Fiware cloud developers week brussels

Add subnet associate to the previous network

Add Network

Address (CIDR)Define DNS

server

26

Page 27: Fiware cloud developers week brussels

Create a router

Assign router

name

27

Page 28: Fiware cloud developers week brussels

Set gateway

Assign a

gateway

to the router

28

Page 29: Fiware cloud developers week brussels

Set gateway

Select the

network

29

Page 30: Fiware cloud developers week brussels

Assign subnet

Double Click on

the

router name

30

Page 31: Fiware cloud developers week brussels

Assign subnet

Add interface

(subnet)

31

Page 32: Fiware cloud developers week brussels

Assign subnet

Select the network

to connect

32

Page 33: Fiware cloud developers week brussels

Deploy a new instance: Networking

Select the network

to connect

33

Page 34: Fiware cloud developers week brussels

Create a volume

34

Page 35: Fiware cloud developers week brussels

Attach a volume to an instance

35

Page 36: Fiware cloud developers week brussels

Volume attached

36

Page 37: Fiware cloud developers week brussels

FIWARE Object Store, i.e. OpenStack Swift• Create container

• Upload objects, i.e. files

• Download objects

• Storlets (to be deployed)

– Small computer programs that can be deployed and get executed inside a Swift cluster in an isolated manner.

– Bring the compute to the data thus saving on the bandwidth required to bring the data to the compute.

– Based on a Swift cluster empowered with the storlet engine Swift middleware and Docker, which allows the execution

of user written code inside Swift in an isolated manner.

Page 38: Fiware cloud developers week brussels

Object Storage API

• http://forge.fi-ware.org/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.org:4730/v2.0/tokens \ -vvv

• Use initial token to get tenant

curl -H 'x-auth-token: '$token http://cloud.lab.fi-ware.org: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.org:4730/v2.0/tokens

• Object Storage URL

http://130.206.82.9:8080/v1/AUTH_tenantId

38

Page 39: Fiware cloud developers week brussels

FIWARE Lab: PaaS, working with Blueprints

39

Page 40: Fiware cloud developers week brussels

FIWARE PaaS

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

40

Page 41: Fiware cloud developers week brussels

Real scenario

• Users want to define lots of parameters.

– Password, ports, default installation.

• Users want to install several things in the same server.

– Tomcat + git, tomcat + java + git, …

• Users need to deploy complex environment.

– One server for Tomcat, another for MySQL, …

• Some parameters are unknown before instantiate the system.

41

Page 42: Fiware cloud developers week brussels

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

42

Page 43: Fiware cloud developers week brussels

Create a new blueprint template

43

Press the option

“Blueprint Templates”

from menu

You can open the Catalog of

Blueprint Template or create

one

from the scratch.

Page 44: Fiware cloud developers week brussels

Create a new blueprint template

44

You should introduce the

“Name” and the

“Description”.

Page 45: Fiware cloud developers week brussels

Add tiers

45

To add new Tier,

press “hh-template” name.

Page 46: Fiware cloud developers week brussels

Add tiers

46

After press “Add Tier” you see

this windows to define

the servers of this tier.

You must select a Keypair

to access to those servers.

You should specify the

maximum, minimum and

current

number of servers

Page 47: Fiware cloud developers week brussels

Add software in tier

47

Install software pressing

the mouse right click.

Page 48: Fiware cloud developers week brussels

Add software in tier

48

Edit special attributes like

default port.

Page 49: Fiware cloud developers week brussels

Add software in tier

49

Page 50: Fiware cloud developers week brussels

Connect network

50

Drag&Drop the network

to connect the tier..

Introduce an alias to

connect

together several tiers.

Page 51: Fiware cloud developers week brussels

Topology

51

Page 52: Fiware cloud developers week brussels

Launch a Blueprint Template -> Blueprint Instance

52

Press “Action” and select

“Launch Template” to launch

the Instance.

Page 53: Fiware cloud developers week brussels

Launch a Blueprint Template -> Blueprint Instance

53

You should specify the “Name”

and “Description” for

your blueprint.

Page 54: Fiware cloud developers week brussels

Demo

54

Firstly, the deployment

of infrastructure.

Page 55: Fiware cloud developers week brussels

Demo

55

Secondly, the

installation

of the software.

Page 56: Fiware cloud developers week brussels

Demo

56

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

see the tiers of this blueprint.

Page 57: Fiware cloud developers week brussels

Demo

57

Press it to get information

of your server.

Page 58: Fiware cloud developers week brussels

Demo

58

Page 59: Fiware cloud developers week brussels

Reference Information

59

Page 60: Fiware cloud developers week brussels

Documentation

• FIWARE Cloud Portal:– Documentation: http://catalogue.fi-ware.org/enablers/self-service-interfaces-cloud-portal-

upm

• FIWARE Cloud Infrastructure– Account: http://catalogue.fi-ware.org/enablers/identity-management-keyrock

– SDC: http://catalogue.fi-ware.org/enablers/software-deployment-configuration-sagitta

– PaaS Manager: http://catalogue.fi-ware.org/enablers/paas-manager-pegasus

• FIWARE eLearning Platform– http://edu.fi-ware.org/

• More detailed presentation– Slides: http://tinyurl.com/fiwarelab-cloud

60

Page 61: Fiware cloud developers week brussels
Page 62: Fiware cloud developers week brussels

If you have any question or problem contact to

[email protected]

You can go to stackoverflow and ask question with the tag fiware and/or filab.

62

Page 63: Fiware cloud developers week brussels
Page 64: Fiware cloud developers week brussels

Thanks!Thanks!


Recommended