Escolar Documentos
Profissional Documentos
Cultura Documentos
Rodrigo Bremm
Prof. Dr. Tiago Ferreto
Roteiro
Introduction
OpenStack
Modules
Cinder
Functions
Architecture
Commands
Glance
Functions
Architecture
Commands
Demo
Conclusion
OpenStack
OpenStack is an open source cloud computing
platform for public and private clouds. A series
of interrelated projects deliver a cloud
infrastructure solution. This guide shows
OpenStack admin users how to create and
manage resources in an OpenStack cloud with
OpenStack client commands.
Font: http://docs.openstack.org/user-guide-admin/content/
OpenStack
Font: openstack.org
OpenStack
Font: openstack.org
Font: openstack.org
Font: openstack.org
OpenStack - Releases
Font: openstack.org
OpenStack
Project Size
Font: openstack.org
What is Cinder?
Cinder provides an infrastructure for managing
volumes in OpenStack. It was originally a Nova
component called nova-volume, but has
become an independent project since the
Folsom release.
Font: openstack.org
What is Cinder?
Cinder is an OpenStack project to provide
block storage as a service.
It's designed to allow the use of either a
reference implementation (LVM) to present
storage resources to end users that can be
consumed by the OpenStack Compute Project
(Nova).
Font: openstack.org
What is Cinder?
It virtualizes pools of block storage devices and
provides end users with a self service API to
request and consume those resources without
requiring any knowledge of where their storage
is actually deployed or on what type of device.
Font: openstack.org
Cinder Architecture
Block Storage
Componentes
Back-end Storage Devices
Users and Tenants (Projects)
Volumes, Snapshots, and Backups
Block Storage
Componentes
Back-end Storage Devices
Users and Tenants (Projects)
Volumes, Snapshots, and Backups
The Block Storage service requires some form of back-end storage that the
service is built on. The default implementation is to use LVM on a local volume
group named "cinder-volumes." In addition to the base driver implementation,
the Block Storage service also provides the means to add support for other
storage devices to be utilized such as external Raid Arrays or other storage
appliances. These back-end storage devices may have custom block sizes
when using KVM or QEMU as the hypervisor.
Font: openstack.org
Block Storage
Componentes
Back-end Storage Devices
Users and Tenants (Projects)
Volumes, Snapshots, and Backups
The Block Storage service can be used by many different cloud computing
consumers or customers (tenants on a shared system), using role-based
access assignments. Roles control the actions that a user is allowed to
perform.
For tenants, quota controls are available to limit:
The total number of GBs allowed per tenant (shared between snapshots
and volumes).
Font: openstack.org
Block Storage
Componentes
Back-end Storage Devices
Users and Tenants (Projects)
Volumes, Snapshots, and Backups
The basic resources offered by the Block Storage service are volumes and
snapshots which are derived from volumes and volume backups:
Volumes. Allocated block storage resources that can be attached to
instances as secondary storage or they can be used as the root store to
boot instances.
Snapshots. A read-only point in time copy of a volume. The snapshot can
be created from a volume that is currently in use
Backups. An archived copy of a volume currently stored in OpenStack
Object Storage (swift).
Font: openstack.org
Cinder - Data
and Control
Font: IBM
Cinder - Commands
Cinder - Commands
What is Glance?
The Glance project provides a service where users can
upload and discover data assets that are meant to be
used with other services. This currently includes images
and metadata definitions.
Glance image services include discovering, registering,
and retrieving virtual machine images. Glance has a
RESTful API that allows querying of VM image
metadata as well as retrieval of the actual image.
Font: openstack.org
What is Glance?
VM images made available through Glance can be
stored in a variety of locations from simple filesystems
to object-storage systems like the OpenStack Swift
project.
Font: openstack.org
Glance Architecture
Font: http://ilearnstack.com/2013/04/23/introduction-to-openstack-2/
Glance Architecture
glance-api : It accepts Image API calls for
image discovery, image retrieval and image
storage.
glance-registry : it stores, processes and
retrieves metadata about images (size, type,
etc.).
glance database : A database to store the
image metadata.
Font: openstack.org
Glance Configuration
Files
glance-api.conf The configuration file for the
Image Service API is found in the glance-api.
conf file.
glance-registry.conf Configuration for the Image
Service's registry, which stores the metadata
about images, is found in the glance-registry.
conf file.
Font: openstack.org
Glance Configuration
Files
glance-api-paste.ini Configuration for the Image
Service's API middleware pipeline is found in
the glance-api-paste.ini file.
glance-registry-paste.ini The Image Service's
middleware pipeline for its registry is found in
the glance-registry-paste.ini file.
Font: openstack.org
Glance Configuration
Files
glance-scrubber.conf glance-scrubber is a
utility for the Image Service that cleans up
images that have been deleted; its
configuration is stored in the glance-scrubber.
conf file.
policy.json The /etc/glance/policy.json file
defines additional access controls that apply to
the Image Service.
Font: openstack.org
Glance - Commands
# glance image-list
# glance image-show
# glance image-create imageName
# glance image-update imageName
# glance image-delete imageName
Demo
Conclusion
Openstack
Cinder
Glance
Architecture
Commands
Demonstration
References
https://wiki.openstack.org/w/images/3/3b/Cinder-grizzly-deep-dive-pub.pdf
http://ilearnstack.com/2013/04/23/introduction-to-openstack-2/