SlideShare a Scribd company logo
Setting up your virtual infrastructure
using FI-LAB Cloud

0
Content
 Introduction to FI-LAB Cloud Hosting
 Deploying your first VM
 Deploying components for your application
 Object Storage API
 Reference Information

1
FI-LAB Cloud Hosting

2
FI-LAB Cloud Hosting
 Create your account in lab.fi-ware.eu
 Enter in the Cloud Portal
 Create your keypair (private/private key)
 Deploy your instance
 Add a public IP
 Open ports to the VM

3
Enter your email and password
to access to the FI-LAB.

If you do not have it or forgot it,
sign up or request for a new one.

4
You must create a keypair
to access to the servers.

5
Choose the VM and click
Lanch.

6
Allocate new IP

7
Open ports in your VM.

8
9
Deploying components for your application
• Deploying applications and not only Servers.
•

Ad hoc installation (not template usage).

• Managing applications in Servers (install, uninstall, configure, snapshot…).
• Deploying different environments for that applications.

10
Deploy example
Blueprint template: fiware1
Servers: 2-5

• 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

Server: 1

Server: 1

Context Broker

Tier 2: Context Broker

Tier 3: MongoDB
Context Broker

11
Demo

You can open the Catalog of
Blueprint Template or create one
from the scratch.
Press the option
“Blueprint Templates”
from menu

12
Demo

You should introduce the
“Name” and the “Description”.

13
Demo

To add new Tier, press
“DemoSantander” name.

14
Demo

After press “Add Tier” you see
this windows to define
the servers of this tier.

You must define a Keypair
to access to those servers.

Install software pressing
the mouse right click.

15
Demo
You should specify the
maximum, minimum and current
number of servers

16
Demo

Press “Action” and select
“Lauch Template” to launch
the Instance.

17
Demo

You should specify the “Name”
and “Description” for
your blueprint.

18
Demo

Firstly, we need to instantiate
The servers.

19
Demo

Secondly, the installation
of the software.

20
Demo

Pressing the name you can
see the tiers of this blueprint.

Finally, if all was ok.

21
Demo

Press it to get information
of your server.

22
Demo

23
Demo

24
Demo

25
Object Storage Authentication
 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.fiware.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
26
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)
(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
27
If you have any question or problem
contact to
fiware-lab-help@lists.fi-ware.eu

28

More Related Content

Setting up your virtual infrastructure using fi lab cloud

  • 1. Setting up your virtual infrastructure using FI-LAB Cloud 0
  • 2. Content  Introduction to FI-LAB Cloud Hosting  Deploying your first VM  Deploying components for your application  Object Storage API  Reference Information 1
  • 4. FI-LAB Cloud Hosting  Create your account in lab.fi-ware.eu  Enter in the Cloud Portal  Create your keypair (private/private key)  Deploy your instance  Add a public IP  Open ports to the VM 3
  • 5. Enter your email and password to access to the FI-LAB. If you do not have it or forgot it, sign up or request for a new one. 4
  • 6. You must create a keypair to access to the servers. 5
  • 7. Choose the VM and click Lanch. 6
  • 9. Open ports in your VM. 8
  • 10. 9
  • 11. Deploying components for your application • Deploying applications and not only Servers. • Ad hoc installation (not template usage). • Managing applications in Servers (install, uninstall, configure, snapshot…). • Deploying different environments for that applications. 10
  • 12. Deploy example Blueprint template: fiware1 Servers: 2-5 • 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 Server: 1 Server: 1 Context Broker Tier 2: Context Broker Tier 3: MongoDB Context Broker 11
  • 13. Demo You can open the Catalog of Blueprint Template or create one from the scratch. Press the option “Blueprint Templates” from menu 12
  • 14. Demo You should introduce the “Name” and the “Description”. 13
  • 15. Demo To add new Tier, press “DemoSantander” name. 14
  • 16. Demo After press “Add Tier” you see this windows to define the servers of this tier. You must define a Keypair to access to those servers. Install software pressing the mouse right click. 15
  • 17. Demo You should specify the maximum, minimum and current number of servers 16
  • 18. Demo Press “Action” and select “Lauch Template” to launch the Instance. 17
  • 19. Demo You should specify the “Name” and “Description” for your blueprint. 18
  • 20. Demo Firstly, we need to instantiate The servers. 19
  • 22. Demo Pressing the name you can see the tiers of this blueprint. Finally, if all was ok. 21
  • 23. Demo Press it to get information of your server. 22
  • 27. Object Storage Authentication  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.fiware.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 26
  • 28. 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) (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 27
  • 29. If you have any question or problem contact to fiware-lab-help@lists.fi-ware.eu 28

Editor's Notes

  1. 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).
  2. ssh -i ~/Downloads/keypairfla.pem root@130.206.83.38mysql -u admin