Cinder Volume Snap
This snap is designed to be used with a deployed OpenStack Control plane such as delivered by Sunbeam.
Getting Started
To get started with Cinder Volume, install the snap using snapd:
$ sudo snap install cinder-volume
The snap needs to be configured with credentials and URLs for the Identity service of the OpenStack cloud that it will form part of. For example:
$ sudo snap set cinder-volume \
cinder.project-id=project-uuid \
cinder.user-id=user-uuid
You must also configure access to RabbitMQ:
$ sudo snap set cinder-volume \
rabbitmq.url=rabbit://cinder:supersecure@10.152.183.212:5672/openstack
And provide the database connection URL:
$ sudo snap set cinder-volume \
database.url=mysql+pymysql://cinder:password@10.152.183.210/cinder
The snap supports multiple storage backends, such as Ceph. For example, to configure a Ceph backend:
$ sudo snap set cinder-volume \
ceph.mybackend.rbd-pool=volumes \
ceph.mybackend.rbd-user=cinder \
ceph.mybackend.rbd-secret-uuid=uuid \
ceph.mybackend.rbd-key=<base64key> \
ceph.mybackend.volume-backend-name=mybackend
See "Configuration Reference" for full details.
Configuration Reference
cinder
cinder.project-id
Project ID for Cinder servicecinder.user-id
User ID for Cinder servicecinder.image-volume-cache-enabled
(false) Enable image volume cachecinder.image-volume-cache-max-size-gb
(0) Max size of image volume cache in GBcinder.image-volume-cache-max-count
(0) Max number of images in cachecinder.default-volume-type
(optional) Default volume typecinder.cluster
(optional) Cinder cluster namedatabase
database.url
Full connection URL to the databaserabbitmq
rabbitmq.url
Full connection URL to RabbitMQsettings
settings.debug
(false) Enable debug log levelsettings.enable-telemetry-notifications
(false) Enable telemetry notificationsceph (backend)
Configure one or more Ceph backends using the ceph.<backend-name>.*
namespace:
ceph.<backend-name>.volume-backend-name
Name for this backend (must be unique)ceph.<backend-name>.rbd-pool
Name of the Ceph pool to useceph.<backend-name>.rbd-user
Ceph user for accessceph.<backend-name>.rbd-secret-uuid
Secret UUID for authenticationceph.<backend-name>.rbd-key
Key for the Ceph user (base64 encoded)ceph.<backend-name>.mon-hosts
Comma-separated list of Ceph monitor hostsceph.<backend-name>.auth
Authentication type (default: cephx)ceph.<backend-name>.rbd-exclusive-cinder-pool
(true) Whether the pool is exclusive to Cinderceph.<backend-name>.report-discard-supported
(true) Report discard supportceph.<backend-name>.rbd-flatten-volume-from-snapshot
(false) Flatten volumes from snapshotceph.<backend-name>.image-volume-cache-enabled
(optional) Enable image volume cache for this backendceph.<backend-name>.image-volume-cache-max-size-gb
(optional) Max cache size in GB for this backendceph.<backend-name>.image-volume-cache-max-count
(optional) Max cache count for this backendceph.<backend-name>.volume-dd-blocksize
(4096) Block size for volume copy operationsYou may define multiple backends by using different backend names, e.g. ceph.ceph1.*
, ceph.ssdpool.*
, etc. Each backend name must be unique and each pool must only be used by one backend.
You are about to open
Do you wish to proceed?
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Snap can be installed on elementary OS from the command line. Open Terminal from the Applications launcher and type the following:
sudo apt update
sudo apt install snapd
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
To install cinder-volume, simply use the following command:
sudo snap install cinder-volume
Browse and find snaps from the convenience of your desktop using the snap store snap.
Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.