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
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
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
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
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