Setting up your virtual infrastructure using fi lab cloud webminar
1. Open APIs for Open Minds
Setting up your virtual infrastructure
using FI-LAB Cloud
(http://tinyurl.com/FIWARECloudWebminar)
Henar Muñoz Frutos
(henar@tid.es)
Webminar
2. Content
1. Introduction to FI-LAB Cloud Hosting
2. Deploying your first server
3. Containers and volumes
4. Deploying components for your application in your FI-LAB Cloud Hosting
5. Reference Information
1
3. 2
“We truly believe
that OpenStack is
the Linux of cloud
computing”
Mariano Cunietti
CTO Enter &
Cloudup
6. 2. Deploying your first Server
Create your account in lab.fi-ware.eu
Enter in the Cloud Portal
Create your keypair (private key)
Deploy your instance
Add a public IP
Open ports to the VM
5
13. 12
Create a new keypair
Please download it.
The portal does not store
your Public Key
14. How to connect from Windows
Install PuTTY and PuTTYgen from http://www.putty.org/
Convert your Keypair to PPK
• Start PuTTYgen (e.g. From the Start menu, click All Programs > PuTTY >
PuTTYgen)
• Click Load and select the Keypair file (e.g. sevilla.pem). You’ll need to display
All Files (*.*) to see your Keypair.
• Click Open.
13
16. How to connect from Windows
Connect to your instance
• Start PuTTY.
• Put the public IP of your instance (default SSH port: 22).
Configure it to use your Keypair
• Open the Auth submenu (Connection > SSH > Auth)
• Select the recently generated Private key file (PPK file).
15
38. 3. Containers and volumes
Create volumes
Attach volume to servers
Create containers in the object storage
Upload objects into your containers
Object Storage API
37
49. Object Storage API
http://forge.fi-ware.eu/plugins/mediawiki/wiki/fiware/index.php/Object_Storage_-
_User_and_Programmers_Guide
Authentication to get initial token
username='email@company.com' password='mypassword' curl -d '{"auth": {"passwordCredentials":
{"username":"'$username'", "password":"'$password'"}}}' -H 'Content-type: aplication/json' http://cloud.lab.fi-
ware.eu:4730/v2.0/tokens -vvv
Use initial token to get tenant
curl -H 'x-auth-token: '$token http://cloud.lab.fi-ware.eu: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.eu:4730/v2.0/tokens
Object Storage URL
http://130.206.82.9:8080/v1/AUTH_tenantId
48
50. 4. Deploying components for your application
in FI-LAB Cloud Hosting
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.
49
51. Deploying components for your application
50
• Deploying applications and not only Servers (Ad hoc installation not template
usage).
• Managing applications in Servers (install, uninstall, configure, snapshot…).
• Deploying different environments for those applications.
52. Deploying components for your application
Blueprint template: fiware1
• Blueprint Template: platform specification
to be deployed.
Context Broker
51
53. Deploying components for your application
Blueprint template: fiware1
• Blueprint Template: platform specification
to be deployed.
• Tier: Each kind of software and server to
be deployed.
Tier 1: Tomcat
Tier 2: Context Broker Tier 3: MongoDB
Context Broker
52
54. Deploying components for your application
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).
Tier 1: Tomcat
Tier 2: Context Broker Tier 3: MongoDB
Server: 1 Server: 1
Servers: 2-5
Context Broker
53
55. Deploying components for your application
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 FI-Lab.Tier 1: Tomcat
Tier 2: Context Broker Tier 3: MongoDB
Server: 1 Server: 1
Servers: 2-5
Context Broker
Context Broker
54
56. Create Blueprint templates
55
Press the option
“Blueprint Templates”
from menu
You can open the Catalog of
Blueprint Template or create one
from the scratch.
58. Create Tiers on a Blueprint template
57
To add new Tier,
press “SevillaTemplate”
name.
59. Create Tiers on a Blueprint template
58
Press “Add Tier” to create
new tier inside the template
60. Create Tiers on a Blueprint template
59
You must select a Keypair
to access to those servers.
Do not forget to check
It if you want to have public
access
61. Create Tiers on a Blueprint template
60
Drag&Drop the software that
you want to install on this
group of servers.
72. Reference Information
More information and manuals on the Pegasus PaaS Manager
page at FI-WARE Catalogue, “Documentation” tab
•http://tinyurl.com/paas-manager (1)
More information and manuals on the Object Storage GE page at
FI-WARE Catalogue.
•http://tinyurl.com/object-storage (2)
More FI-LAB Cloud Hosting components.
•http://tinyurl.com/cloud-hosting-ges (3)
71
(1) http://catalogue.fi-ware.eu/enablers/paas-manager-pegasus/documentation
(2) http://catalogue.fi-ware.eu/enablers/object-storage-ge-fi-ware-implementation
(3) http://catalogue.fi-ware.eu/enablers?chapter_tid=2
1. En la primera slide poned una lista de puntos de lo que se puede hacer con ese GE/set de GEs. Me refiero en plan titulares, sin muchas explicaciones.2. Mostrad un ejemplo representativo de uno o varios de los puntos anteriores. Recordad: si lo hacéis como demo, poned slides con capturas y explicaciones también (así sirve también por si la demo os falla en ese momento ;-) ).3. Mostrad un enlace donde pondremos esta semana las slides de la Campus que tienen los detalles de todos los puntos mencionados en 1. (Poned la lista de ficheros pero dejad el enlace en blanco que ya lo pondremos a última hora).