presentación de powerpointcattelefonica.webs.upv.es/fiware/fiwarecloud... · fiware object store,...

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]

Upload: others

Post on 03-Sep-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

FIWARE Cloud

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

Kenneth NaginIBMCloud Chapter Lead, [email protected]

Page 2: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

FIWARE Lab Cloud Hosting: Overview and Architecture

3

Page 4: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

FIWARE Lab Cloud Hosting

4

Page 5: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

FIWARE Lab Cloud Hosting

Cloud PortalPaaS

SDC Monitoring

Account

5

Compute Object Storage

Page 6: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download
Page 8: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

FIWARE Lab Cloud – Multiregion

8

Page 9: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

FIWARE Lab: Basic functionalities

11

Page 12: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Create keypair

You must create a keypair

to access to the servers.

13

Page 14: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Security groups

Create a Security Group

14

Page 15: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Create and edit Security Group rules

15

Page 16: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Launch Instances

Launch new

instance

16

Page 17: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Launch Instances

17

Page 18: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Launch Instances

18

Page 19: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Allocate IP to a project

Allocate new IP

19

Page 20: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Allocate Floating IP

20

Page 21: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Instances Overview

21

Page 22: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Access to the instance

22

Page 23: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Create your own network

Create a new

Network

24

Page 25: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Add subnet associate to the previous network

Add subnet

25

Page 26: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Add subnet associate to the previous network

Add Network

Address (CIDR)Define DNS

server

26

Page 27: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Create a router

Assign router

name

27

Page 28: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Set gateway

Assign a

gateway

to the router

28

Page 29: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Set gateway

Select the

network

29

Page 30: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Assign subnet

Double Click on

the

router name

30

Page 31: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Assign subnet

Add interface

(subnet)

31

Page 32: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Assign subnet

Select the network

to connect

32

Page 33: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Deploy a new instance: Networking

Select the network

to connect

33

Page 34: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Create a volume

34

Page 35: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Attach a volume to an instance

35

Page 36: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Volume attached

36

Page 37: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

FIWARE Lab: PaaS, working with Blueprints

39

Page 40: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Create a new blueprint template

44

You should introduce the

“Name” and the

“Description”.

Page 45: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Add tiers

45

To add new Tier,

press “hh-template” name.

Page 46: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Add software in tier

47

Install software pressing

the mouse right click.

Page 48: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Add software in tier

48

Edit special attributes like

default port.

Page 49: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Add software in tier

49

Page 50: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Connect network

50

Drag&Drop the network

to connect the tier..

Introduce an alias to

connect

together several tiers.

Page 51: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Topology

51

Page 52: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Launch a Blueprint Template -> Blueprint Instance

52

Press “Action” and select

“Launch Template” to launch

the Instance.

Page 53: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Launch a Blueprint Template -> Blueprint Instance

53

You should specify the “Name”

and “Description” for

your blueprint.

Page 54: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Demo

54

Firstly, the deployment

of infrastructure.

Page 55: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Demo

55

Secondly, the

installation

of the software.

Page 56: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Demo

56

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

see the tiers of this blueprint.

Page 57: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Demo

57

Press it to get information

of your server.

Page 58: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Demo

58

Page 59: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Reference Information

59

Page 60: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download
Page 62: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

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: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download
Page 64: Presentación de PowerPointcattelefonica.webs.upv.es/Fiware/fiwarecloud... · FIWARE Object Store, i.e. OpenStack Swift • Create container • Upload objects, i.e. files • Download

Thanks!Thanks!