fiware cloud developers week brussels
TRANSCRIPT
![Page 1: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/1.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/2.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/3.jpg)
FIWARE Lab Cloud Hosting: Overview and Architecture
3
![Page 4: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/4.jpg)
FIWARE Lab Cloud Hosting
4
![Page 5: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/5.jpg)
FIWARE Lab Cloud Hosting
Cloud PortalPaaS
SDC Monitoring
Account
5
Compute Object Storage
![Page 6: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/6.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/7.jpg)
![Page 8: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/8.jpg)
FIWARE Lab Cloud – Multiregion
8
![Page 9: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/9.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/10.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/11.jpg)
FIWARE Lab: Basic functionalities
11
![Page 12: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/12.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/13.jpg)
Create keypair
You must create a keypair
to access to the servers.
13
![Page 14: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/14.jpg)
Security groups
Create a Security Group
14
![Page 15: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/15.jpg)
Create and edit Security Group rules
15
![Page 16: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/16.jpg)
Launch Instances
Launch new
instance
16
![Page 17: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/17.jpg)
Launch Instances
17
![Page 18: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/18.jpg)
Launch Instances
18
![Page 19: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/19.jpg)
Allocate IP to a project
Allocate new IP
19
![Page 20: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/20.jpg)
Allocate Floating IP
20
![Page 21: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/21.jpg)
Instances Overview
21
![Page 22: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/22.jpg)
Access to the instance
22
![Page 23: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/23.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/24.jpg)
Create your own network
Create a new
Network
24
![Page 25: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/25.jpg)
Add subnet associate to the previous network
Add subnet
25
![Page 26: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/26.jpg)
Add subnet associate to the previous network
Add Network
Address (CIDR)Define DNS
server
26
![Page 27: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/27.jpg)
Create a router
Assign router
name
27
![Page 28: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/28.jpg)
Set gateway
Assign a
gateway
to the router
28
![Page 29: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/29.jpg)
Set gateway
Select the
network
29
![Page 30: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/30.jpg)
Assign subnet
Double Click on
the
router name
30
![Page 31: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/31.jpg)
Assign subnet
Add interface
(subnet)
31
![Page 32: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/32.jpg)
Assign subnet
Select the network
to connect
32
![Page 33: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/33.jpg)
Deploy a new instance: Networking
Select the network
to connect
33
![Page 34: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/34.jpg)
Create a volume
34
![Page 35: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/35.jpg)
Attach a volume to an instance
35
![Page 36: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/36.jpg)
Volume attached
36
![Page 37: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/37.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/38.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/39.jpg)
FIWARE Lab: PaaS, working with Blueprints
39
![Page 40: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/40.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/41.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/42.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/43.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/44.jpg)
Create a new blueprint template
44
You should introduce the
“Name” and the
“Description”.
![Page 45: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/45.jpg)
Add tiers
45
To add new Tier,
press “hh-template” name.
![Page 46: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/46.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/47.jpg)
Add software in tier
47
Install software pressing
the mouse right click.
![Page 48: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/48.jpg)
Add software in tier
48
Edit special attributes like
default port.
![Page 49: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/49.jpg)
Add software in tier
49
![Page 50: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/50.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/51.jpg)
Topology
51
![Page 52: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/52.jpg)
Launch a Blueprint Template -> Blueprint Instance
52
Press “Action” and select
“Launch Template” to launch
the Instance.
![Page 53: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/53.jpg)
Launch a Blueprint Template -> Blueprint Instance
53
You should specify the “Name”
and “Description” for
your blueprint.
![Page 54: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/54.jpg)
Demo
54
Firstly, the deployment
of infrastructure.
![Page 55: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/55.jpg)
Demo
55
Secondly, the
installation
of the software.
![Page 56: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/56.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/57.jpg)
Demo
57
Press it to get information
of your server.
![Page 58: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/58.jpg)
Demo
58
![Page 59: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/59.jpg)
Reference Information
59
![Page 60: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/60.jpg)
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](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/61.jpg)
![Page 62: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/62.jpg)
If you have any question or problem contact to
You can go to stackoverflow and ask question with the tag fiware and/or filab.
62
![Page 63: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/63.jpg)
![Page 64: Fiware cloud developers week brussels](https://reader030.vdocuments.net/reader030/viewer/2022032421/55a6a43d1a28ab86148b4628/html5/thumbnails/64.jpg)
Thanks!Thanks!