Download - OpenStack - Glance and Cinder Modules

Transcript
Page 1: OpenStack - Glance and Cinder Modules

Cinder and Glance Modules

Cleverson LedurRodrigo BremmProf. Dr. Tiago Ferreto

PPGCC - PUCRS

Page 2: OpenStack - Glance and Cinder Modules

Roteiro● Introduction

○ OpenStack● Modules

○ Cinder■ Functions■ Architecture■ Commands

○ Glance■ Functions■ Architecture■ Commands

● Demo● Conclusion

Page 3: OpenStack - Glance and Cinder Modules

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

Page 4: OpenStack - Glance and Cinder Modules

OpenStack

Font: openstack.org

Page 5: OpenStack - Glance and Cinder Modules

OpenStack

Font: openstack.org

Page 6: OpenStack - Glance and Cinder Modules

Font: openstack.org

Page 7: OpenStack - Glance and Cinder Modules

Font: openstack.org

Page 8: OpenStack - Glance and Cinder Modules

OpenStack - Releases

Font: openstack.org

Page 9: OpenStack - Glance and Cinder Modules

OpenStack Project Size

Font: openstack.org

Page 10: OpenStack - Glance and Cinder Modules

Cinder - Block Storage

Page 11: OpenStack - Glance and Cinder Modules

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

Page 12: OpenStack - Glance and Cinder Modules

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

Page 13: OpenStack - Glance and Cinder Modules

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

Page 14: OpenStack - Glance and Cinder Modules

Cinder Architecture

Font: openstack.com | mirantis.com

Page 15: OpenStack - Glance and Cinder Modules

Block Storage Componentes● Back-end Storage Devices● Users and Tenants (Projects)● Volumes, Snapshots, and Backups

Page 16: OpenStack - Glance and Cinder Modules

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

Page 17: OpenStack - Glance and Cinder Modules

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 number of volumes that can be created.● The number of snapshots that can be created.● The total number of GBs allowed per tenant (shared between snapshots

and volumes).Font: openstack.org

Page 18: OpenStack - Glance and Cinder Modules

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

Page 19: OpenStack - Glance and Cinder Modules

Cinder - Data and Control

Font: IBM

Page 20: OpenStack - Glance and Cinder Modules

Cinder - Commands

Page 21: OpenStack - Glance and Cinder Modules

Cinder - Commands

Page 22: OpenStack - Glance and Cinder Modules

Glance - Image Store

Page 23: OpenStack - Glance and Cinder Modules

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

Page 24: OpenStack - Glance and Cinder Modules

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

Page 25: OpenStack - Glance and Cinder Modules

Glance Architecture

Font: http://ilearnstack.com/2013/04/23/introduction-to-openstack-2/

Page 26: OpenStack - Glance and Cinder Modules

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

Page 29: OpenStack - Glance and Cinder Modules

Glance Configuration Filesglance-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

Page 30: OpenStack - Glance and Cinder Modules

Glance - Commands# glance image-list

# glance image-show

# glance image-create imageName

# glance image-update imageName

# glance image-delete imageName

Page 31: OpenStack - Glance and Cinder Modules

Demo

Page 32: OpenStack - Glance and Cinder Modules

Conclusion● Openstack● Cinder● Glance

● Architecture● Commands● Demonstration

Page 33: OpenStack - Glance and Cinder Modules