Install 2024.1/stable of cinder-volume
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
Install using the command line
sudo snap install cinder-volume
Don't have snapd? Get set up for snaps.
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.
Generate an embeddable card to be shared on external websites.
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.