openstack consuming module 2onecloudclass.com/.../2015/09/cisco2-consuming-openstack-overvi… ·...
TRANSCRIPT
V2.1 August 2015
ConsumingOpenStack
Module 2
MODULE 2OpenStack Project Overview
2
Module 3 Objectives• Understand the basic underlying pieces of OpenStack• Understand their function relative to IaaS uses• Learn the basic access tools for each function
• UI interface• CLI overview
3
OpenStack ArchitectureHorizon
Cinder Swift Neutron Ceilometer Trove Sahara
Keystone
GlanceNova
Heat
• OpenStack is made up of individual projects• Largely written in Python and is heavily dependent on Linux
Compute ImageStorage
BlockStorage
ObjectStorage
Network Monitoring Database as a Service
Analytics as a Service
Authorizationand
Authentication
Orchestration
Dashboard
4
OpenStack Identity Service (Keystone)Horizon
Cinder Swift Neutron Monasca Trove Sahara
Keystone
GlanceNova
Heat
What is it?• Authentication/Authorization for all
OpenStack services• Endpoint access catalog• Tenant and User management• Central policy repository
What can it do?• Provide token based validation to all
projects• CRUD for tenants/users• Provide Endpoint catalog list (e.g. where do
I go to get access to nova API)
5
Keystone - Horizon
6
Keystone- Things you can do with the CLI
• keystone endpoint-create, -delete, -get, -list• keystone role-create, -delete, -get, -list• keystone service-create, -delete, -get, -list• keystone tenant-create, -delete, -get, -list, update• keystone token-get• keystone user-create, -delete, -get, -list, -password-update, -update• keystone user-role-add, -list, remove• keystone password-update
Explanation of commands and additional optional arguments are available at: http://docs.openstack.org/cli-reference/content/keystoneclient_commands.html
7
OpenStack Compute (Nova)Horizon
Cinder Swift Neutron Monasca Trove Sahara
Keystone
GlanceNova
Heat
What is it?• Manages VM deployment workflow on
associated hypervisor(s)• Manages integration with:
• Image Management (glance)• Networks (neutron)• Storage (cinder)
What can it do?• CRUD on VMs• Start/Re-start/Pause/Snapshot• Sometimes Migrate• (de)Attach storage
8
Nova - Horizon
9
Nova- Things you can do with the CLI
• nova aggregate-add-host, -create, -delete, -details, -list, -remove-host, -set-metadata, -update• nova availability-zone-list• nova backup• nova baremetal-interface-add, -interface-list, -interface-remove, -node-create, -node-delete, -node-list• nova boot• nova delete• nova flavor-access-add, -list, -remove• nova flavor-create,-delete, -key, -list, -show• nova hypervisor-list, -servers, -show, -stats, -uptime• nova image-create, -delete, -list, -meta, -show• nova instance-action, -action-list, -attach, -detach• nova resize, -confirm, -revert• nova volume-attach, -create, -delete, -detach, -list, -show• nova volume-snapshot-create, -delete, -list, -show• nova volume-type-create, -delete, -list
Explanation of commands along with additional commands and optional arguments are available at: http://docs.openstack.org/cli-reference/content/novaclient_commands.html
10
OpenStack Image Service (Glance)Horizon
Cinder Swift Neutron Monasca Trove Sahara
Keystone
GlanceNova
Heat
What is it?• Manager of virtual machine images• Handles root disk snapshots• Hypervisor based image cache
manager
What can it do?• Manage and share Images• Convert snapshots to images• Integrates with Cinder to migrate
images to Volumes
11
Glance - Horizon
12
Glance- Things you can do with the CLI
• glance image-create, -delete, -download, -list, -show, -update, -upload
• glance image-tag-delete, -update
• glance member-create, -delete, -list, -update
• glance location-add , -delete, -update
• glance md-[there are a long list of metadata tag modifications possible]NOTE: If you create an image you must pass --is-public false
Explanation of commands and additional optional arguments are available at: http://docs.openstack.org/cli-reference/content/glanceclient_commands.html
13
OpenStack Volume Service (Cinder)Horizon
Cinder Swift Neutron Monasca Trove Sahara
Keystone
GlanceNova
Heat
What is it?• Manages block storage access and
creation• Supports storage transport
configuration• Integrates with Nova to support boot
from volume or associate volume to VM
What can it do?• CRUD a block device• Establish connectivity endpoint (e.g.,
iSCSI storage termination)• Access “local” as well as 3rd party
storage
14
Cinder - Horizon
15
Cinder- Things you can do with the CLIExplanation of commands along with additional commands and optional arguments are available at: http://docs.openstack.org/cli-reference/content/cinderclient_commands.html
• cinder snapshot-create, -delete, -list, -metadata, -metadata-show, -metadata-update-all, -rename, -reset-state, -show
• cinder backup-create, -delete, -export, -import, -list, -restore
• cinder upload-to-image
• cinder transfer-list, -accept, -create, -delete, -show
16
OpenStack Object Store (Swift)Horizon
Cinder Swift Neutron Monasca Trove Sahara
Keystone
GlanceNova
Heat
What is it?• Object Storage System• VM free access to files• “unlimited” per file uploads• HTTP/S based interface
What can it do?• Store any files (blobs of data)• Provide both authenticated and non-
authenticated “containers” for files• Replicate content across
geographic regions17
Swift - Horizon
18
Swift- Things you can do with the CLIExplanation of commands along with additional commands and optional arguments are available at: http://docs.openstack.org/cli-reference/content/swiftclient_commands.html
• swift delete• swift download• swift list• swift post• swift stat• swift upload• swift capabilities• swift tempurl
19
OpenStack Networking (Neutron)Horizon
Swift Cinder Neutron Monasca Trove Sahara
Keystone
GlanceNova
Heat
What is it?• Network Services manager• Supports L2, L3, and L4 services• Interacts with Nova to support
network functions for VMs
What can it do?• CRUD L2, L3 (subnet), IPAM• Extensions provide:
• L3 service (router, fw, slb)• NAT/Floating IP• Access to Physical/Virtual services
(e.g. VLAN/VXLAN on a switch)20
Neutron - Horizon
21
Neutron- Things you can do with the CLI
• neutron floatingip-associate, -create, -delete, -disassociate, -list
• neutron l3-agent-list-hosting-router, t-router-add, -router-remove
• neutron net-create, -delete, -external-list, -list, -list-on-dhcp-agent
• neutron net-gateway-connect, -create, -delete, -disconnect, -list, -update
• neutron port-create, -delete, -list, -update
Explanation of commands along with additional commands and optional arguments are available at: http://docs.openstack.org/cli-reference/content/neutronclient_commands.html
22
OpenStack Telemetry (Ceilometer)Horizon
Swift Cinder Neutron Ceilometer Trove Sahara
Keystone
GlanceNova
Heat
What is it?• Metering and statistics collection• A datastore of metered statistics
What can it do?• Capture statistics and metered data
from all OpenStack services• Create a callback in conjunction
with Heat to support automatic scale up/down of applications
23
Ceilometer- Things you can do with the CLI
• ceilometer usage• ceilometer alarm-combination-create, -update• ceilometer alarm-delete, -history, -list, -show, -state-get, -state-set, -threshold-create -threshold-
update, -update• ceilometer event-list, -show, -type-list• ceilometer meter-list• ceilometer query-alarm-history, -alarms, -samples• ceilometer resource-list, -show• ceilometer sample-create, -list• ceilometer statistics
Explanation of commands along with additional commands and optional arguments are available at: http://docs.openstack.org/cli-reference/content/ceilometerclient_commands.html
24
OpenStack Database (Trove)Horizon
Swift Cinder Neutron Monasca Trove Sahara
Keystone
GlanceNova
Heat
What is it?• Database as a Service interface for
OpenStack• API interface into managing SQL
and NO-SQL based databases
What can it do?• Provide CRUD operations for
databases via an HTTP/S API• Abstract the management of
databases for simplified application consumption
25
Trove- Things you can do with the CLIExplanation of commands along with additional commands and optional arguments are available at: http://docs.openstack.org/cli-reference/content/troveclient_commands.html andhttp://docs.openstack.org/cli-reference/content/trove-manageclient_commands.html
• trove backup-copy, -create, -delete, -list, -list-instance, -show• trove cluster-create, -delete, -list, -show, -instances• trove configuration-create, -attach, -delete, -list, -default, -detach, -instances• trove database-create, -delete, -list• trove datastore-list, -show• trove-datastore-version-list, -show• trove delete• trove resize-instance, -volume• trove restart• trove user-create, -delete, -grant-access, -list, -revoke-access, -show, -show-access, -update-
attributes
26
OpenStack Analytics (Sahara)Horizon
Swift Cinder Neutron Monasca Trove Sahara
Keystone
GlanceNova
Heat
What is it?• Analytics-as-a-Service interface for
OpenStack• API interface into managing Hadoop
clusters
What can it do?• Provision Hadoop clusters• Scale already provisioned cluster• Allows use of templates with the
ability to modify parameters
27
Sahara- Things you can do with the CLIExplanation of commands along with additional commands and optional arguments are available at: http://docs.openstack.org/cli-reference/content/saharaclient_commands.html
• sahara cluster-create, -delete, -list, -show• sahara cluster-template-create, -delete, -list, -show• sahara data-source-create, -delete, -list, -show• sahara image-add-tag, -list, register, -remove-tag, -show, -unregister• sahara job-binary-create, -delete, -list, -show• sahara job-binary-data-create, -delete, -list, -show• sahara job-create, -delete, -list, -show• sahara job-template-create, -delete, -list, -show• sahara node-group-template-create, -delete, -list, -show
28
OpenStack Orchestration (Heat)Horizon
Swift Cinder Neutron Monasca Trove Sahara
Keystone
GlanceNova
Heat
What is it?• Template-based Automation for
OpenStack Services• The “next” level of automation
What can it do?• Deploy Compute, Network, Storage,
Images, etc.• Pass application deployment logic to
instances• Monitor deployed VMs and Add
capacity to a Load balancer29
Heat - Horizon
30
Heat- Things you can do with the CLIExplanation of commands along with optional arguments are available at: http://docs.openstack.org/cli-reference/content/heatclient_commands.html
• heat stack-create, -delete, -list, -show, -preview, -abandon, -adopt, -update, -cancel-update• heat template-show, -validate• heat action-check, -resume, -suspend• heat build-info• heat event-list, -show• heat output-list, -show• heat resource-list, -metadata, -show, -signal, -template, -type-list, -type-show, -type-template
31
OpenStack Dashboard (Horizon)Horizon
Swift Cinder Neutron Monasca Trove Sahara
Keystone
GlanceNova
Heat
What is it?• GUI for OpenStack services
What can it do?• Deploy Compute, Network, Storage,
Images, etc.• Provide overview of resource utilization• Pass application deployment logic to
instances
32
Horizon GUI
33