setting up your virtual infrastructure using fi-lab cloud
DESCRIPTION
Campus Party Brasil 2014, FI-WARE Cloud presentation where you can find how to deploy servers and blueprint in the FI-Lab Cloud. Besides, the upload of contents into the Object Storage service.TRANSCRIPT
![Page 1: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/1.jpg)
Open APIs for Open Minds
Setting up your virtual infrastructure using FI-LAB Cloud
#CPBr7 Fernando López Aguilar ([email protected]) (Slides: http://tinyurl.com/fiware-cloud)
![Page 2: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/2.jpg)
Content
§ Introduction to FI-LAB Cloud Hosting
§ Deploying your first VM
§ Create Container and add objects
§ Deploying components for your application
§ Reference Information
1
![Page 3: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/3.jpg)
2
FI-LAB Cloud Hosting
![Page 4: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/4.jpg)
FI-LAB Cloud Hosting
§ 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
3
![Page 5: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/5.jpg)
Add new user
4
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.
![Page 6: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/6.jpg)
5
You must create a keypair to access to the servers.
![Page 7: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/7.jpg)
How to connect from Windows (I)
§ 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. my_cert.pem). You’ll need to display All Files (*.*) to see your Keypair.
• Click Open. And select the destination path and name of your PPK file.
6
![Page 8: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/8.jpg)
How to connect from Windows (II)
§ Connect to your instance
• Start PuTTY.
• Put the public IP of your instance (default SSH port is 22).
§ Configure it to use your Keypair
• Open the Auth submenu (Connection > SSH > Auth)
• Select the recently generated Private key file (PPK file).
7
![Page 9: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/9.jpg)
Security groups
8
Open ports in your VM.
![Page 10: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/10.jpg)
Allocate IP to project
9
Allocate new IP
![Page 11: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/11.jpg)
Launch Instances
10
Launch new instance
![Page 12: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/12.jpg)
Launch instances
11
![Page 13: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/13.jpg)
Launch Instances
12
![Page 14: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/14.jpg)
Launch Instances
13
![Page 15: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/15.jpg)
Allocate Floating IP
14
![Page 16: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/16.jpg)
15
![Page 17: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/17.jpg)
Access to the instance
16
![Page 18: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/18.jpg)
FI-LAB Cloud Hosting
§ Create volumes
§ Attach volume to servers
§ Create containers in the object storage
§ Upload objects into your containers
§ Object Storage API
17
![Page 19: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/19.jpg)
Create a volume
18
![Page 20: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/20.jpg)
Attach volume to instance
19
![Page 21: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/21.jpg)
Volume attached
20
![Page 22: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/22.jpg)
Create container
21
![Page 23: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/23.jpg)
Upload object
22
![Page 24: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/24.jpg)
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 protected]' 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
23
![Page 25: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/25.jpg)
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.
24
![Page 26: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/26.jpg)
Deploying components for your application
25
• 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.
![Page 27: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/27.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
26
![Page 28: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/28.jpg)
Demo
27
Press the option “Blueprint Templates”
from menu
You can open the Catalog of Blueprint Template or create one
from the scratch.
![Page 29: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/29.jpg)
Demo
28
You should introduce the “Name” and the “Description”.
![Page 30: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/30.jpg)
Demo
29
To add new Tier, press “CPBR7” name.
![Page 31: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/31.jpg)
Demo
30
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.
Install software pressing the mouse right click.
![Page 32: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/32.jpg)
Demo
31
You should specify the maximum, minimum and current
number of servers
![Page 33: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/33.jpg)
Demo
32
Press “Action” and select “Lauch Template” to launch
the Instance.
![Page 34: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/34.jpg)
Demo
33
You should specify the “Name” and “Description” for
your blueprint.
![Page 35: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/35.jpg)
Demo
34
Firstly, the deployment of infrastructure.
![Page 36: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/36.jpg)
Demo
35
Secondly, the installation of the software.
![Page 37: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/37.jpg)
Demo
36
Finally, if all was ok. Pressing the name you can
see the tiers of this blueprint.
![Page 38: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/38.jpg)
Demo
37
Press it to get information of your server.
![Page 39: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/39.jpg)
Demo
38
![Page 40: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/40.jpg)
Demo
39
![Page 41: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/41.jpg)
Demo
40
![Page 42: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/42.jpg)
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)
41
(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
![Page 44: Setting up your virtual infrastructure using fi-lab cloud](https://reader033.vdocuments.net/reader033/viewer/2022052618/554a2817b4c9051b578b4ae8/html5/thumbnails/44.jpg)
Muito obrigado!!!
43