SlideShare a Scribd company logo
1 of 60
Download to read offline
eXperimental Infrastructures for the Future Internet
1st Training Session
Berlin, May 15th, 2014
www.fi-xifi.eu
XIFI FOR DEVELOPERS
A very brief survey of how to use XIFI and FI-OPS
Agenda
• Introduction
• How to use the FI-LAB portal
• Command Line Interfaces
– Install the OpenStack command-line clients
– Managing virtual machine images
– Working with virtual machines
– Working with infrastructure monitoring
15/05/2014 1st Training Session – Berlin, 15.05.2014 3
Introduction
First of all: the XIFI federated infrastructure is online
for users only since a few days – so please be careful
and watch your steps ;-)
15/05/2014 1st Training Session – Berlin, 15.05.2014 4
XIFI FOR DEVELOPERS
How to use the FI-LAB portal
The FI-LAB portal
The portal URL is “account.lab.fi-ware.org”
15/05/2014 1st Training Session – Berlin, 15.05.2014 6
The FI-LAB portal
User’s roles organizations are associated with tenants.
15/05/2014 1st Training Session – Berlin, 15.05.2014 7
The FI-LAB portal
The first view is on the user’s virtual machine instances.
15/05/2014 1st Training Session – Berlin, 15.05.2014 8
The FI-LAB portal
Available images are associated with a tenant.
15/05/2014 1st Training Session – Berlin, 15.05.2014 9
The FI-LAB portal
Tenants can be selected through a “Project Name”, nodes
through the “Region” name – tenants are valid across all
regions.
15/05/2014 1st Training Session – Berlin, 15.05.2014 10
The FI-LAB portal
Virtual machines connect to tenant networks.
15/05/2014 1st Training Session – Berlin, 15.05.2014 11
The FI-LAB portal
Tenant networks are private, public or federation-exposed.
15/05/2014 1st Training Session – Berlin, 15.05.2014 12
The FI-LAB portal
Networks can be created through the portal.
15/05/2014 1st Training Session – Berlin, 15.05.2014 13
The FI-LAB portal
Virtual routers determine how to expose a virtual machine.
15/05/2014 1st Training Session – Berlin, 15.05.2014 14
The FI-LAB portal
Credentials can be generated/deployed through the portal.
15/05/2014 1st Training Session – Berlin, 15.05.2014 15
The FI-LAB portal
Security rules are the tenant’s firewall per node.
15/05/2014 1st Training Session – Berlin, 15.05.2014 16
The FI-LAB portal
Security rules can be created through the portal.
15/05/2014 1st Training Session – Berlin, 15.05.2014 17
The FI-LAB portal
Security rules can be managed through the portal.
15/05/2014 1st Training Session – Berlin, 15.05.2014 18
The FI-LAB portal
The offer depends on tenant and region settings.
15/05/2014 1st Training Session – Berlin, 15.05.2014 19
The FI-LAB portal
By clicking on an element the offer can be explored.
15/05/2014 1st Training Session – Berlin, 15.05.2014 20
The FI-LAB portal
A virtual machine instance can be monitored.
15/05/2014 1st Training Session – Berlin, 15.05.2014 21
Using the FI-LAB portal
• But look first if there is already a solution offered.
15/05/2014 1st Training Session – Berlin, 15.05.2014 22
XIFI FOR DEVELOPERS
Install the OpenStack command-line clients
Available command-line clients
Use the following clients to access the XIFI infrastructures
• cinder - Block Storage API and extensions
• glance - Image Service API
• keystone - Identity service API and extensions
• neutron - Networking API
• nova - Compute API and extensions
• swift - Object Storage API
15/05/2014 1st Training Session – Berlin, 15.05.2014 24
Install CLI client packages
In order to access XIFI/OpenStack services by CLI Python
packages has to be installed.
• Install of Python Package Index
	
  #	
  sudo	
  apt-­‐get	
  install	
  python-­‐pip	
  
• Installation of supported client packages
#	
  pip	
  install	
  python-­‐novaclient	
  python-­‐keystoneclient	
  
	
  python-­‐glanceclient	
  python-­‐neutronclient	
  
	
  
http://docs.openstack.org/user-guide/content/install_clients.html
	
  
15/05/2014 1st Training Session – Berlin, 15.05.2014 25
Setting environment variables
Before you can run client commands, you must create and
source environment variables.
Example:
	
  	
  export	
  OS_TENANT_NAME="00000000000000000000000000003015"	
  
	
  	
  export	
  OS_USERNAME=xifi-­‐user@mailprovider.com	
  
	
  	
  export	
  OS_PASSWORD=sf4365kljrt	
  
	
  	
  export	
  OS_AUTH_URL=http://cloud.lab.fi-­‐ware.org:4730/v2.0	
  
	
  	
  export	
  OS_REGION_NAME=Berlin	
  	
  	
  //optional	
  
15/05/2014 1st Training Session – Berlin, 15.05.2014 26
XIFI FOR DEVELOPERS
Managing virtual machine images
Accessing image repositories
OpenStack glance is needed to manage virtual machine
images by command line whenever the portal does not
provide a specific command or option.
#	
  glance	
  image-­‐list	
  
+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
|	
  ID	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  Name	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  Disk	
  Format	
  |	
  Container	
  Format	
  |	
  Size	
  	
  	
  	
  	
  	
  	
  |	
  Status	
  |	
  
+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
|	
  b383bea1-­‐7844-­‐45de-­‐adad-­‐f292b798da85	
  |	
  CentOS_6.5	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  qcow2	
  	
  	
  	
  	
  	
  	
  |	
  ovf	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  344457216	
  	
  |	
  active	
  |	
  
|	
  cc4fc2a8-­‐7006-­‐4fe4-­‐b89e-­‐ed3e3892507d	
  |	
  Cirros	
  3.2	
  amd64	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  qcow2	
  	
  	
  	
  	
  	
  	
  |	
  bare	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  13167616	
  	
  	
  |	
  active	
  |	
  
|	
  074766de-­‐1fee-­‐4361-­‐bdcf-­‐60efbaef8665	
  |	
  Ubuntu	
  12.04	
  Server	
  CloudImg	
  amd64	
  |	
  qcow2	
  	
  	
  	
  	
  	
  	
  |	
  bare	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  260309504	
  	
  |	
  active	
  |	
  
|	
  0973cdbc-­‐1585-­‐45e2-­‐bf76-­‐e8dfd0fd658f	
  |	
  xifi-­‐mon-­‐dem-­‐snapshot	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  qcow2	
  	
  	
  	
  	
  	
  	
  |	
  bare	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  1090715648	
  |	
  active	
  |	
  
|	
  96c93d65-­‐a955-­‐443b-­‐866c-­‐f6a1dfb07bd1	
  |	
  xifi-­‐orion-­‐0.6-­‐DT-­‐showcase	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  qcow2	
  	
  	
  	
  	
  	
  	
  |	
  bare	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  2063204352	
  |	
  active	
  |	
  
+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
15/05/2014 1st Training Session – Berlin, 15.05.2014 28
Creating virtual machine images
Importing a virtual machine image is currently not
supported by the portal.
#	
  glance	
  image-­‐create	
  -­‐-­‐name	
  DEM-­‐Client	
  -­‐-­‐disk-­‐format=qcow2	
  -­‐-­‐
container-­‐format=bare	
  -­‐-­‐file	
  /tmp/DEM-­‐Client.img
+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
|	
  Property	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  Value	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
|	
  checksum	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  67f3761fad4246d90af4177cbf832528	
  	
  	
  	
  	
  |	
  
|	
  container_format	
  |	
  bare	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  created_at	
  	
  	
  	
  	
  	
  	
  |	
  2014-­‐05-­‐16T07:04:02	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  deleted	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  False	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  deleted_at	
  	
  	
  	
  	
  	
  	
  |	
  None	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  disk_format	
  	
  	
  	
  	
  	
  |	
  qcow2	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  id	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  ffe3a570-­‐3f96-­‐45ca-­‐b871-­‐f0e06372f60d	
  |	
  
|	
  is_public	
  	
  	
  	
  	
  	
  	
  	
  |	
  False	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  min_disk	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  0	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  min_ram	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  0	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  name	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  DEM-­‐Client	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  owner	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  00000000000000000000000000003015	
  	
  	
  	
  	
  |	
  
|	
  protected	
  	
  	
  	
  	
  	
  	
  	
  |	
  False	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  size	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  2029780992	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  status	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  active	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  updated_at	
  	
  	
  	
  	
  	
  	
  |	
  2014-­‐05-­‐16T07:05:01	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
15/05/2014 1st Training Session – Berlin, 15.05.2014 29
Exploring image metadata
Exploring the properties of a virtual machine image
#	
  glance	
  image-­‐show	
  074766de-­‐1fee-­‐4361-­‐bdcf-­‐60efbaef8665	
  
+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
|	
  Property	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  Value	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
|	
  checksum	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  3616895820e33cda3ad8f99223e58ac9	
  	
  	
  	
  	
  |	
  
|	
  container_format	
  |	
  bare	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  created_at	
  	
  	
  	
  	
  	
  	
  |	
  2014-­‐05-­‐09T08:36:40	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  deleted	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  False	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  disk_format	
  	
  	
  	
  	
  	
  |	
  qcow2	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  id	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  074766de-­‐1fee-­‐4361-­‐bdcf-­‐60efbaef8665	
  |	
  
|	
  is_public	
  	
  	
  	
  	
  	
  	
  	
  |	
  True	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  min_disk	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  0	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  min_ram	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  0	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  name	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  Ubuntu	
  12.04	
  Server	
  CloudImg	
  amd64	
  	
  	
  |	
  
|	
  owner	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  00000000000000000000000000003015	
  	
  	
  	
  	
  |	
  
|	
  protected	
  	
  	
  	
  	
  	
  	
  	
  |	
  False	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  size	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  260309504	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  status	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  active	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
|	
  updated_at	
  	
  	
  	
  	
  	
  	
  |	
  2014-­‐05-­‐09T08:36:45	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  |	
  
+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+	
  
	
  
15/05/2014 1st Training Session – Berlin, 15.05.2014 30
Modifying virtual machine images
Delete a virtual machine image
#	
  glance	
  image-­‐delete	
  0973cdbc-­‐1585-­‐45e2-­‐bf76-­‐e8dfd0fd658f	
  
Update image metadata
#	
  glance	
  update	
  4319f871-­‐6d9b-­‐47ab-­‐b1b2-­‐86fcb702598b	
  is_public=Yes
	
  
protected=No	
  nid=344	
  
Export image
#	
  glance	
  image-­‐download	
  177d05a5-­‐3b9c-­‐447d-­‐bd49-­‐4dee946c907f	
  -­‐-­‐
file	
  /tmp/DEM-­‐Client.img	
  
15/05/2014 1st Training Session – Berlin, 15.05.2014 31
XIFI FOR DEVELOPERS
Working with virtual machines
Launching a virtual machine
15/05/2014 1st Training Session – Berlin, 15.05.2014 33
Launching a virtual machine
15/05/2014 1st Training Session – Berlin, 15.05.2014 34
Launching a virtual machine
15/05/2014 1st Training Session – Berlin, 15.05.2014 35
Launching a virtual machine
15/05/2014 1st Training Session – Berlin, 15.05.2014 36
Launching a virtual machine
15/05/2014 1st Training Session – Berlin, 15.05.2014 37
Launching a virtual machine
15/05/2014 1st Training Session – Berlin, 15.05.2014 38
Launching a virtual machine
15/05/2014 1st Training Session – Berlin, 15.05.2014 39
Allocate floating IPs
15/05/2014 1st Training Session – Berlin, 15.05.2014 40
Assigning floating IPs
15/05/2014 1st Training Session – Berlin, 15.05.2014 41
Assigning floating IPs
15/05/2014 1st Training Session – Berlin, 15.05.2014 42
Assigning floating IPs
15/05/2014 1st Training Session – Berlin, 15.05.2014 43
Assigning floating IPs
15/05/2014 1st Training Session – Berlin, 15.05.2014 44
Accessing virtual machines
Accessing a virtual machine through the portal (VNC).
15/05/2014 1st Training Session – Berlin, 15.05.2014 45
Accessing virtual machines
15/05/2014 1st Training Session – Berlin, 15.05.2014 46
Accessing virtual machines
Accessing a virtual machine by a remote terminal (SSH).
15/05/2014 1st Training Session – Berlin, 15.05.2014 47
XIFI FOR DEVELOPERS
Working with infrastructure monitoring
Monitoring infographics
Querying the infrastructure status summary.
15/05/2014 1st Training Session – Berlin, 15.05.2014 49
Capacity infographics
Querying the status of infrastructure resources.
15/05/2014 1st Training Session – Berlin, 15.05.2014 50
Monitoring with Nagios
Querying infrastructures via Nagios Host Status Details.
15/05/2014 1st Training Session – Berlin, 15.05.2014 51
Monitoring with Nagios
Querying infrastructures via Nagios Service Status Details.
15/05/2014 1st Training Session – Berlin, 15.05.2014 52
Monitoring with Nagios
Querying infrastructures via Nagios Service Status Details.
15/05/2014 1st Training Session – Berlin, 15.05.2014 53
Monitoring data model
The monitoring service delivers data according to this model.
15/05/2014 1st Training Session – Berlin, 15.05.2014 54
Monitoring architecture
The monitoring sub-system
fully integrates with the
FI-WARE GEs offered
by the infrastructures.
15/05/2014 1st Training Session – Berlin, 15.05.2014 55
Monitoring – XIMM architecture
The XIFI monitoring
sub-system utilizes
adaptors for active,
passive and
virtual appliance
monitoring.
15/05/2014 1st Training Session – Berlin, 15.05.2014 56
Monitoring – XIMM workflow
Adaptors report to a context broker.
Monitoring events are captured, converted and stored to
allow for both real-time and past event analysis.
15/05/2014 1st Training Session – Berlin, 15.05.2014 57
Monitoring – active monitoring
Active performance
monitoring is provided
through the NAM
adapter.
15/05/2014 1st Training Session – Berlin, 15.05.2014 58
Monitoring – status monitors
• Passive monitoring – NPM adapter.
– Provide the SNMP data collection from the GE network
resources and the adaptation layer between the monitoring
lowest-layer and the XIFI federation layer.
• Monitoring virtual machines – DEM adapter
– Monitoring of several resources from virtual machines collected
by heterogeneous cloud environments.
15/05/2014 1st Training Session – Berlin, 15.05.2014 59
Thank you for your attention!
Acknowledgments:
The research conducted by XIFI receives funding from the European Commission FP7 under grant agreement
N°: 604590. The European Commission has no responsibility for the content of this presentation.
Find us at www.fi-xifi.eu

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

fiware-lab-dev-2.pdf

  • 1. eXperimental Infrastructures for the Future Internet 1st Training Session Berlin, May 15th, 2014 www.fi-xifi.eu
  • 2. XIFI FOR DEVELOPERS A very brief survey of how to use XIFI and FI-OPS
  • 3. Agenda • Introduction • How to use the FI-LAB portal • Command Line Interfaces – Install the OpenStack command-line clients – Managing virtual machine images – Working with virtual machines – Working with infrastructure monitoring 15/05/2014 1st Training Session – Berlin, 15.05.2014 3
  • 4. Introduction First of all: the XIFI federated infrastructure is online for users only since a few days – so please be careful and watch your steps ;-) 15/05/2014 1st Training Session – Berlin, 15.05.2014 4
  • 5. XIFI FOR DEVELOPERS How to use the FI-LAB portal
  • 6. The FI-LAB portal The portal URL is “account.lab.fi-ware.org” 15/05/2014 1st Training Session – Berlin, 15.05.2014 6
  • 7. The FI-LAB portal User’s roles organizations are associated with tenants. 15/05/2014 1st Training Session – Berlin, 15.05.2014 7
  • 8. The FI-LAB portal The first view is on the user’s virtual machine instances. 15/05/2014 1st Training Session – Berlin, 15.05.2014 8
  • 9. The FI-LAB portal Available images are associated with a tenant. 15/05/2014 1st Training Session – Berlin, 15.05.2014 9
  • 10. The FI-LAB portal Tenants can be selected through a “Project Name”, nodes through the “Region” name – tenants are valid across all regions. 15/05/2014 1st Training Session – Berlin, 15.05.2014 10
  • 11. The FI-LAB portal Virtual machines connect to tenant networks. 15/05/2014 1st Training Session – Berlin, 15.05.2014 11
  • 12. The FI-LAB portal Tenant networks are private, public or federation-exposed. 15/05/2014 1st Training Session – Berlin, 15.05.2014 12
  • 13. The FI-LAB portal Networks can be created through the portal. 15/05/2014 1st Training Session – Berlin, 15.05.2014 13
  • 14. The FI-LAB portal Virtual routers determine how to expose a virtual machine. 15/05/2014 1st Training Session – Berlin, 15.05.2014 14
  • 15. The FI-LAB portal Credentials can be generated/deployed through the portal. 15/05/2014 1st Training Session – Berlin, 15.05.2014 15
  • 16. The FI-LAB portal Security rules are the tenant’s firewall per node. 15/05/2014 1st Training Session – Berlin, 15.05.2014 16
  • 17. The FI-LAB portal Security rules can be created through the portal. 15/05/2014 1st Training Session – Berlin, 15.05.2014 17
  • 18. The FI-LAB portal Security rules can be managed through the portal. 15/05/2014 1st Training Session – Berlin, 15.05.2014 18
  • 19. The FI-LAB portal The offer depends on tenant and region settings. 15/05/2014 1st Training Session – Berlin, 15.05.2014 19
  • 20. The FI-LAB portal By clicking on an element the offer can be explored. 15/05/2014 1st Training Session – Berlin, 15.05.2014 20
  • 21. The FI-LAB portal A virtual machine instance can be monitored. 15/05/2014 1st Training Session – Berlin, 15.05.2014 21
  • 22. Using the FI-LAB portal • But look first if there is already a solution offered. 15/05/2014 1st Training Session – Berlin, 15.05.2014 22
  • 23. XIFI FOR DEVELOPERS Install the OpenStack command-line clients
  • 24. Available command-line clients Use the following clients to access the XIFI infrastructures • cinder - Block Storage API and extensions • glance - Image Service API • keystone - Identity service API and extensions • neutron - Networking API • nova - Compute API and extensions • swift - Object Storage API 15/05/2014 1st Training Session – Berlin, 15.05.2014 24
  • 25. Install CLI client packages In order to access XIFI/OpenStack services by CLI Python packages has to be installed. • Install of Python Package Index  #  sudo  apt-­‐get  install  python-­‐pip   • Installation of supported client packages #  pip  install  python-­‐novaclient  python-­‐keystoneclient    python-­‐glanceclient  python-­‐neutronclient     http://docs.openstack.org/user-guide/content/install_clients.html   15/05/2014 1st Training Session – Berlin, 15.05.2014 25
  • 26. Setting environment variables Before you can run client commands, you must create and source environment variables. Example:    export  OS_TENANT_NAME="00000000000000000000000000003015"      export  OS_USERNAME=xifi-­‐user@mailprovider.com      export  OS_PASSWORD=sf4365kljrt      export  OS_AUTH_URL=http://cloud.lab.fi-­‐ware.org:4730/v2.0      export  OS_REGION_NAME=Berlin      //optional   15/05/2014 1st Training Session – Berlin, 15.05.2014 26
  • 27. XIFI FOR DEVELOPERS Managing virtual machine images
  • 28. Accessing image repositories OpenStack glance is needed to manage virtual machine images by command line whenever the portal does not provide a specific command or option. #  glance  image-­‐list   +-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  ID                                                                      |  Name                                                              |  Disk  Format  |  Container  Format  |  Size              |  Status  |   +-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  b383bea1-­‐7844-­‐45de-­‐adad-­‐f292b798da85  |  CentOS_6.5                                                  |  qcow2              |  ovf                            |  344457216    |  active  |   |  cc4fc2a8-­‐7006-­‐4fe4-­‐b89e-­‐ed3e3892507d  |  Cirros  3.2  amd64                                      |  qcow2              |  bare                          |  13167616      |  active  |   |  074766de-­‐1fee-­‐4361-­‐bdcf-­‐60efbaef8665  |  Ubuntu  12.04  Server  CloudImg  amd64  |  qcow2              |  bare                          |  260309504    |  active  |   |  0973cdbc-­‐1585-­‐45e2-­‐bf76-­‐e8dfd0fd658f  |  xifi-­‐mon-­‐dem-­‐snapshot                            |  qcow2              |  bare                          |  1090715648  |  active  |   |  96c93d65-­‐a955-­‐443b-­‐866c-­‐f6a1dfb07bd1  |  xifi-­‐orion-­‐0.6-­‐DT-­‐showcase                  |  qcow2              |  bare                          |  2063204352  |  active  |   +-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   15/05/2014 1st Training Session – Berlin, 15.05.2014 28
  • 29. Creating virtual machine images Importing a virtual machine image is currently not supported by the portal. #  glance  image-­‐create  -­‐-­‐name  DEM-­‐Client  -­‐-­‐disk-­‐format=qcow2  -­‐-­‐ container-­‐format=bare  -­‐-­‐file  /tmp/DEM-­‐Client.img +-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  Property                  |  Value                                                                |   +-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  checksum                  |  67f3761fad4246d90af4177cbf832528          |   |  container_format  |  bare                                                                  |   |  created_at              |  2014-­‐05-­‐16T07:04:02                                    |   |  deleted                    |  False                                                                |   |  deleted_at              |  None                                                                  |   |  disk_format            |  qcow2                                                                |   |  id                              |  ffe3a570-­‐3f96-­‐45ca-­‐b871-­‐f0e06372f60d  |   |  is_public                |  False                                                                |   |  min_disk                  |  0                                                                        |   |  min_ram                    |  0                                                                        |   |  name                          |  DEM-­‐Client                                                      |   |  owner                        |  00000000000000000000000000003015          |   |  protected                |  False                                                                |   |  size                          |  2029780992                                                      |   |  status                      |  active                                                              |   |  updated_at              |  2014-­‐05-­‐16T07:05:01                                    |   +-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   15/05/2014 1st Training Session – Berlin, 15.05.2014 29
  • 30. Exploring image metadata Exploring the properties of a virtual machine image #  glance  image-­‐show  074766de-­‐1fee-­‐4361-­‐bdcf-­‐60efbaef8665   +-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  Property                  |  Value                                                                |   +-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  checksum                  |  3616895820e33cda3ad8f99223e58ac9          |   |  container_format  |  bare                                                                  |   |  created_at              |  2014-­‐05-­‐09T08:36:40                                    |   |  deleted                    |  False                                                                |   |  disk_format            |  qcow2                                                                |   |  id                              |  074766de-­‐1fee-­‐4361-­‐bdcf-­‐60efbaef8665  |   |  is_public                |  True                                                                  |   |  min_disk                  |  0                                                                        |   |  min_ram                    |  0                                                                        |   |  name                          |  Ubuntu  12.04  Server  CloudImg  amd64      |   |  owner                        |  00000000000000000000000000003015          |   |  protected                |  False                                                                |   |  size                          |  260309504                                                        |   |  status                      |  active                                                              |   |  updated_at              |  2014-­‐05-­‐09T08:36:45                                    |   +-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+     15/05/2014 1st Training Session – Berlin, 15.05.2014 30
  • 31. Modifying virtual machine images Delete a virtual machine image #  glance  image-­‐delete  0973cdbc-­‐1585-­‐45e2-­‐bf76-­‐e8dfd0fd658f   Update image metadata #  glance  update  4319f871-­‐6d9b-­‐47ab-­‐b1b2-­‐86fcb702598b  is_public=Yes   protected=No  nid=344   Export image #  glance  image-­‐download  177d05a5-­‐3b9c-­‐447d-­‐bd49-­‐4dee946c907f  -­‐-­‐ file  /tmp/DEM-­‐Client.img   15/05/2014 1st Training Session – Berlin, 15.05.2014 31
  • 32. XIFI FOR DEVELOPERS Working with virtual machines
  • 33. Launching a virtual machine 15/05/2014 1st Training Session – Berlin, 15.05.2014 33
  • 34. Launching a virtual machine 15/05/2014 1st Training Session – Berlin, 15.05.2014 34
  • 35. Launching a virtual machine 15/05/2014 1st Training Session – Berlin, 15.05.2014 35
  • 36. Launching a virtual machine 15/05/2014 1st Training Session – Berlin, 15.05.2014 36
  • 37. Launching a virtual machine 15/05/2014 1st Training Session – Berlin, 15.05.2014 37
  • 38. Launching a virtual machine 15/05/2014 1st Training Session – Berlin, 15.05.2014 38
  • 39. Launching a virtual machine 15/05/2014 1st Training Session – Berlin, 15.05.2014 39
  • 40. Allocate floating IPs 15/05/2014 1st Training Session – Berlin, 15.05.2014 40
  • 41. Assigning floating IPs 15/05/2014 1st Training Session – Berlin, 15.05.2014 41
  • 42. Assigning floating IPs 15/05/2014 1st Training Session – Berlin, 15.05.2014 42
  • 43. Assigning floating IPs 15/05/2014 1st Training Session – Berlin, 15.05.2014 43
  • 44. Assigning floating IPs 15/05/2014 1st Training Session – Berlin, 15.05.2014 44
  • 45. Accessing virtual machines Accessing a virtual machine through the portal (VNC). 15/05/2014 1st Training Session – Berlin, 15.05.2014 45
  • 46. Accessing virtual machines 15/05/2014 1st Training Session – Berlin, 15.05.2014 46
  • 47. Accessing virtual machines Accessing a virtual machine by a remote terminal (SSH). 15/05/2014 1st Training Session – Berlin, 15.05.2014 47
  • 48. XIFI FOR DEVELOPERS Working with infrastructure monitoring
  • 49. Monitoring infographics Querying the infrastructure status summary. 15/05/2014 1st Training Session – Berlin, 15.05.2014 49
  • 50. Capacity infographics Querying the status of infrastructure resources. 15/05/2014 1st Training Session – Berlin, 15.05.2014 50
  • 51. Monitoring with Nagios Querying infrastructures via Nagios Host Status Details. 15/05/2014 1st Training Session – Berlin, 15.05.2014 51
  • 52. Monitoring with Nagios Querying infrastructures via Nagios Service Status Details. 15/05/2014 1st Training Session – Berlin, 15.05.2014 52
  • 53. Monitoring with Nagios Querying infrastructures via Nagios Service Status Details. 15/05/2014 1st Training Session – Berlin, 15.05.2014 53
  • 54. Monitoring data model The monitoring service delivers data according to this model. 15/05/2014 1st Training Session – Berlin, 15.05.2014 54
  • 55. Monitoring architecture The monitoring sub-system fully integrates with the FI-WARE GEs offered by the infrastructures. 15/05/2014 1st Training Session – Berlin, 15.05.2014 55
  • 56. Monitoring – XIMM architecture The XIFI monitoring sub-system utilizes adaptors for active, passive and virtual appliance monitoring. 15/05/2014 1st Training Session – Berlin, 15.05.2014 56
  • 57. Monitoring – XIMM workflow Adaptors report to a context broker. Monitoring events are captured, converted and stored to allow for both real-time and past event analysis. 15/05/2014 1st Training Session – Berlin, 15.05.2014 57
  • 58. Monitoring – active monitoring Active performance monitoring is provided through the NAM adapter. 15/05/2014 1st Training Session – Berlin, 15.05.2014 58
  • 59. Monitoring – status monitors • Passive monitoring – NPM adapter. – Provide the SNMP data collection from the GE network resources and the adaptation layer between the monitoring lowest-layer and the XIFI federation layer. • Monitoring virtual machines – DEM adapter – Monitoring of several resources from virtual machines collected by heterogeneous cloud environments. 15/05/2014 1st Training Session – Berlin, 15.05.2014 59
  • 60. Thank you for your attention! Acknowledgments: The research conducted by XIFI receives funding from the European Commission FP7 under grant agreement N°: 604590. The European Commission has no responsibility for the content of this presentation. Find us at www.fi-xifi.eu