fiware cloud capabilities_and_setting_up_your_environment

55
Pasquale Vitale Engineering Ingegneria Informatica FIWARE TechCamp – FIWARE LAB Cloud Portal Wednesday, December 3, 2014 - Lyngby, Denmark [email protected], @pasquy1973

Upload: miguel-garcia-gonzalez

Post on 16-Jul-2015

290 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Fiware cloud capabilities_and_setting_up_your_environment

Pasquale VitaleEngineering Ingegneria InformaticaFIWARE TechCamp – FIWARE LAB Cloud PortalWednesday, December 3, 2014 - Lyngby, Denmark

[email protected], @pasquy1973

Page 2: Fiware cloud capabilities_and_setting_up_your_environment

Summary

FIWARE LAB Cloud Hosting

Deploying your first VM

Deploying components for your application

Object Storage API

Reference Information

Page 3: Fiware cloud capabilities_and_setting_up_your_environment

OpenStack: The Open Source Cloud Operating System

OpenStack is open source software to build private and public clouds

FIWARE LAB Cloud Portal 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 cloud capabilities_and_setting_up_your_environment

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 cloud capabilities_and_setting_up_your_environment

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 cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Enter in the Cloud Portal

COMPUTE

STORAGE

BLUEPRINT

Page 7: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Create your keypair

Page 8: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section

Compute menu

Images

Instances

Security

Flavors

Snapshots

Page 9: Fiware cloud capabilities_and_setting_up_your_environment

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 cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section detail

Page 11: Fiware cloud capabilities_and_setting_up_your_environment

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

Details

Instance Name

Flavor (tiny, small, medium, etc…)

Instance Count

Page 12: Fiware cloud capabilities_and_setting_up_your_environment

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

Access & Security

Keypair

Security Groups

Page 13: Fiware cloud capabilities_and_setting_up_your_environment

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

Post Creation

Customization Script

Page 14: Fiware cloud capabilities_and_setting_up_your_environment

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

Summary

Instance Name

Keypair

Security Group

Page 15: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section Instances

Page 16: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section Flavors

Page 17: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section Security

Security

Floating IPs

Security Groups

Keypairs

Page 18: Fiware cloud capabilities_and_setting_up_your_environment

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 cloud capabilities_and_setting_up_your_environment

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 cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section Security

Security

Security Groups

Create Security Group

Actions

Edit Rule

Delete Rule

Page 21: Fiware cloud capabilities_and_setting_up_your_environment

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 cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section Security

Security

Keypairs

Create Keypair

Import Keypair

Actions

Delete Keypairs

Page 23: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section Security

Security

Keypairs

Create Keypair

Import Keypair

Actions

Delete Keypairs

Page 24: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section Snapshots

Snapshots

Instance Snapshots

Volume Snapshots

Page 25: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section Snapshots

Snapshots

Instance Snapshots

Actions

Launch Instance

Edit Image

Delete Snapshots

Page 26: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Compute section Snapshots

Snapshots

Volume Snapshots

Actions

Delete Snapshots

Page 27: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section

Blueprint Instances

Blueprint Templates

Page 28: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Blueprint Instances

Go in the catalog

Page 29: Fiware cloud capabilities_and_setting_up_your_environment

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 cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Open Catalog

Blueprint Templates

Catalog

Close catalog

Actions

Clone Template

Page 31: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Create New Template

Blueprint Template

Create New Template

Page 32: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Click on template to start

the wizard to add tiers in

your CloudPortalTemplate

Page 33: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Blueprint Templates

Create Tier

Wizard step 1 of 2

Page 34: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Blueprint Templates

Create Tier

Wizard step 2 of 2

Software added to tier

Page 35: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

CloudPortalTemplate detail

Edit and delete tiers

Page 36: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

There are 2 tiers for

CloudPortalTemplate

Page 37: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Launch the

CloudPortalTemplate

to start the wizard

Page 38: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Blueprint Templates

Blueprint Templates

Launch Blueprint Template

Page 39: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Blueprint section Blueprint Instances

Page 40: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Storage section

Volumes

Containers

Page 41: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Storage section Volumes

Volumes are persistent

storage for the VM

Page 42: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Storage section Create Volume

Create Volume

Page 43: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Storage section

Volume attached

Page 44: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Storage section Containers

Containers are object

storage (like folders)

Page 45: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Storage section Create Container

Create Container

Page 46: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Storage section Create Container

Upload Objects

Page 47: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Storage section Container

Download Object

Page 48: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Storage section Container

Copy Object

Page 49: Fiware cloud capabilities_and_setting_up_your_environment

FIWARE LAB Cloud Hosting Storage section Object Storage API

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://$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 cloud capabilities_and_setting_up_your_environment

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 cloud capabilities_and_setting_up_your_environment

Connection to VM (1)

Example via SSH

with keypair.pem file

ssh -i keypair.pem [email protected]

Page 52: Fiware cloud capabilities_and_setting_up_your_environment

Connection to VM (2)

Example via Putty

Convert keypair to PPK

Page 53: Fiware cloud capabilities_and_setting_up_your_environment

Connection to VM (3)

Example via FileZilla

Set keypair

Page 54: Fiware cloud capabilities_and_setting_up_your_environment

Information

If you have any question or problem contact to

[email protected]

You can see webinars, courses, videos in the FIWARE Academy

http://edu.fi-ware.org

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

Page 55: Fiware cloud capabilities_and_setting_up_your_environment

Thanks!Thanks!