openstack consuming module 2onecloudclass.com/.../2015/09/cisco2-consuming-openstack-overvi… ·...

33
V2.1 August 2015 Consuming OpenStack Module 2

Upload: others

Post on 26-Sep-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

V2.1 August 2015

ConsumingOpenStack

Module 2

Page 2: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

MODULE 2OpenStack Project Overview

2

Page 3: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 4: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 5: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 6: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

Keystone - Horizon

6

Page 7: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 8: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 9: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

Nova - Horizon

9

Page 10: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 11: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 12: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

Glance - Horizon

12

Page 13: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 14: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 15: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

Cinder - Horizon

15

Page 16: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 17: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 18: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

Swift - Horizon

18

Page 19: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 20: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 21: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

Neutron - Horizon

21

Page 22: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 23: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 24: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 25: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 26: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 27: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 28: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 29: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 30: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

Heat - Horizon

30

Page 31: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 32: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

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

Page 33: OpenStack Consuming Module 2onecloudclass.com/.../2015/09/Cisco2-Consuming-OpenStack-Overvi… · OpenStack Architecture Horizon Cinder Swift Neutron Ceilometer Trove Sahara Keystone

Horizon GUI

33