FIWARE Lab

55
Pasquale Vitale Engineering Ingegneria Informatica FIWARE LAB Cloud Portal

Transcript of FIWARE Lab

Page 1: FIWARE Lab

Pasquale VitaleEngineering Ingegneria Informatica

FIWARE LAB Cloud Portal

Page 2: FIWARE Lab

Summary

FIWARE LAB Cloud Hosting

Deploying your first VM

Deploying components for your application

Object Storage API

Reference Information

Page 3: FIWARE Lab

OpenStack: The Open Source Cloud Operating System

OpenStack is open source software to build private and public clouds

FIWARE LAB Cloud Portal is IaaS based on OpenStack

Provision and manage large networks of virtual machines

Object storage and Block storage for use with servers and applicationsPluggable, scalable, API-driven system

for managing networks and IP addresses

Cloud Portal

Page 4: FIWARE Lab

FIWARE LAB Cloud Hosting

Steps:

Create your account in lab.fi-ware.org

Enter in the Cloud Portal

Create your keypair (private key)

Deploy your instance

Add a public IP

Open ports to the VM

Page 5: FIWARE Lab

FIWARE LAB Cloud Hosting Create your account in lab.fi-ware.org

If you forgot it, request the new password

Enter your email and password to access to the FIWARE LAB

Redirect to account.lab.fi-ware.org/users/sign_in

If you do not have an account, sign up

Page 6: FIWARE Lab

FIWARE LAB Cloud Hosting Enter in the Cloud Portal

COMPUTE

STORAGE

BLUEPRINT

Page 7: FIWARE Lab

FIWARE LAB Cloud Hosting Create your keypair

Page 8: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section

Compute menu

Images

Instances

Security

Flavors

Snapshots

Page 9: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Images

Choose your VM you want to launch

•baseimages,•fiware:apps,•fiware:data,•fiware:i2nd,•fiware:iot,•fiware:security,•fiware:userinterface,•fiware:utils

Page 10: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section detail

Page 11: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Wizard - step 1 of 4

Details

Instance Name

Flavor (tiny, small, medium, etc…)

Instance Count

Page 12: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Wizard - step 2 of 4

Access & Security

Keypair

Security Groups

Page 13: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Wizard - step 3 of 4

Post Creation

Customization Script

Page 14: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Wizard - step 4 of 4

Summary

Instance Name

Keypair

Security Group

Page 15: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Instances

Page 16: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Flavors

Page 17: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Security

Security

Floating IPs

Security Groups

Keypairs

Page 18: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Security

Security

Floating IPs

Allocate Floating IPs

Actions

Associate IP

Disassociate Floating IP

Release Floating IPs

Page 19: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Security

Security

Floating IPs

Allocate Floating IPs

Actions

Associate IP

Disassociate Floating IP

Release Floating IPs

Page 20: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Security

Security

Security Groups

Create Security Group

Actions

Edit Rule

Delete Rule

Page 21: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Security

Security

Security Groups

Create Security Group

Actions

Edit Rule

Delete Rule

-1 is to allow ping

22 is to allow ssh

443 is to allow https

80 is to allow http allow only IP

Page 22: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Security

Security

Keypairs

Create Keypair

Import Keypair

Actions

Delete Keypairs

Page 23: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Security

Security

Keypairs

Create Keypair

Import Keypair

Actions

Delete Keypairs

Page 24: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Snapshots

Snapshots

Instance Snapshots

Volume Snapshots

Page 25: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Snapshots

Snapshots

Instance Snapshots

Actions

Launch Instance

Edit Image

Delete Snapshots

Page 26: FIWARE Lab

FIWARE LAB Cloud Hosting Compute section Snapshots

Snapshots

Volume Snapshots

Actions

Delete Snapshots

Page 27: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section

Blueprint Instances

Blueprint Templates

Page 28: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Blueprint Instances

Go in the catalog

Page 29: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Blueprint Templates

Open Catalog

Create New Template

Actions

Launch Template

Clone Template

Delete Template

Page 30: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Open Catalog

Blueprint Templates

Catalog

Close catalog

Actions

Clone Template

Page 31: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Create New Template

Blueprint Template

Create New Template

Page 32: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Click on template to start the wizard to add tiers in your CloudPortalTemplate

Page 33: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Blueprint Templates

Create Tier

Wizard step 1 of 2

Page 34: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Blueprint Templates

Create Tier

Wizard step 2 of 2

Software added to tier

Page 35: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

CloudPortalTemplate detail

Edit and delete tiers

Page 36: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

There are 2 tiers for CloudPortalTemplate

Page 37: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Launch the CloudPortalTemplate

to start the wizard

Page 38: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Blueprint Templates

Launch Blueprint Template

Page 39: FIWARE Lab

FIWARE LAB Cloud Hosting Blueprint section Blueprint Instances

Page 40: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section

Volumes

Containers

Page 41: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section Volumes

Volumes are persistent storage for the VM

Page 42: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section Create Volume

Create Volume

Page 43: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section

Volume attached

Page 44: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section Containers

Containers are object storage (like folders)

Page 45: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section Create Container

Create Container

Page 46: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section Create Container

Upload Objects

Page 47: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section Container

Download Object

Page 48: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section Container

Copy Object

Page 49: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section Object Storage API

Authentication to get initial tokenusername='[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 tenantcurl -H 'x-auth-token: '$token http://cloud.lab.fi-ware.org:4730/v2.0/tenants

Authenticate tenant to get token for Object Storagecurl -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 URLhttp://$node_cdmi:8080/cdmi/$auth/container/

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

Page 50: FIWARE Lab

FIWARE LAB Cloud Hosting Storage section Example container

REST call: GET

X-Auth-Tokenapplication/cdmi-object X-CDMI-Specification-Version

List of objects within the container

Page 51: FIWARE Lab

Connection to VM (1)

Example via SSH

with keypair.pem file

ssh -i keypair.pem [email protected]

Page 52: FIWARE Lab

Connection to VM (2)

Example via Putty

Convert keypair to PPK

Page 53: FIWARE Lab

Connection to VM (3)

Example via FileZilla

Set keypair

Page 54: FIWARE Lab

Information

If you have any question or problem contact [email protected]

You can see webinars, courses, videos in the FIWARE Academyhttp://edu.fi-ware.org

You can use stackoverflow to ask question using the fiware and/or filab tags.

Page 55: FIWARE Lab

Thanks!Thanks!