Cinder¶
This page is the starting point for Cinder, the cinder role: the containers cinder_api, cinder_scheduler,
cinder_volume and cinder_backup (roles/cinder/defaults/main.yml:2-60), on the control and storage nodes of the
example inventory (cinder-api and cinder-scheduler on cinder, i.e. control; cinder-volume and
cinder-backup on storage: inventory/multinode:110-111, inventory/multinode:286-297), selected by the tag
cinder (site.yml:574-589). iscsid and tgtd are in the iscsi play, not under -t cinder (Tags
§3.1).
Changed in 2025.1 CODE:
- Two new prechecks can stop an upgrade with several
cinder-volumehosts.kolla-ansible prechecksnow fails whencinder-volumehas more than one host andcinder_cluster_nameis empty, and when it has exactly one host andcinder_cluster_nameis set (roles/cinder/tasks/precheck.yml:92-115);cinder_cluster_skip_precheckskips both (roles/cinder/defaults/main.yml:381-382). It also fails whencinder_backend_cephis on,cinder-volumehas more than one host and no coordination backend is enabled (valkey, redis or etcd,roles/cinder/tasks/precheck.yml:60-68,group_vars/all.yml:1178), unlessskip_cinder_backend_check. clusterincinder.conf: a non-emptycinder_cluster_namewritescluster = <name>, forcinder-volumeonly (roles/cinder/templates/cinder.conf.j2:23-25). What Cinder does with the existing volumes and services when the cluster is set on a running cloud is service-side: NOT AVAILABLE, to be confirmed by the community.cinder.confdiffers per service:enabled_backendsand the Ceph backend sections are now written only forcinder-volume(roles/cinder/templates/cinder.conf.j2:27-31,roles/cinder/templates/cinder.conf.j2:150-170), so the first 2025.1 run changes thecinder.confofcinder-api,cinder-schedulerandcinder-backup.- Ceph: user, pool and backend name per entry: each entry of
cinder_ceph_backendscarriesbackend_name,cluster(defaultceph_cluster),userandpool(roles/cinder/defaults/main.yml:278-285); the section writesvolume_backend_name,rbd_pool,rbd_userandrbd_keyring_conffrom it (roles/cinder/templates/cinder.conf.j2:155-161). With the defaultsvolume_backend_namestaysrbd-1(cinder_backend_ceph_name,roles/cinder/defaults/main.yml:266).cinder_backup_ceph_backendadds the backup pool and user to the named entry (roles/cinder/defaults/main.yml:286-287), andbackup_ceph_userandbackup_ceph_poolcome from it (roles/cinder/templates/cinder.conf.j2:34-42). The keyring files are<cluster>.client.<user>.keyring(roles/cinder/tasks/external_ceph.yml:39-67);ceph_cinder_keyringandceph_cinder_backup_keyringare removed, so an override of them is no longer read. - uWSGI for
cinder-api:cinder_wsgi_providerdefaults touwsgi(roles/cinder/defaults/main.yml:387); the command becomesuwsgi /etc/cinder/cinder-api-uwsgi.ini(roles/cinder/templates/cinder-api.json.j2:3-5) and the Apache virtual host is rendered only withapache(roles/cinder/tasks/config.yml:55-88). uWSGI logs to/var/log/kolla/cinder/cinder-api-uwsgi.log(roles/service-uwsgi-config/defaults/main.yml:4-5). - New
block-storageservice in Keystone:cinder_ks_servicesregisters acinderservice of typeblock-storagewith/v3endpoints and keepscinderv3(volumev3) as "deprecated" (roles/cinder/defaults/main.yml:346-359).upgrade.ymlhas no registration step (roles/cinder/tasks/upgrade.yml:1-36; the 2024.1 user-role registration is removed), so the new service and its endpoints appear at the nextdeployorreconfigure, not atupgrade. - Restarts: the config tasks notify nothing except the Huawei XML copy (
roles/cinder/tasks/external_huawei.yml:10-11);check-containers.ymlimportsservice-check-containers, which restarts only the containers whose configuration or definition changed (Tags §2.4). The handlers have nokolla_action != "config"guard any more (roles/cinder/handlers/main.yml:2-81). Newcheck.yml(roles/cinder/tasks/check.yml:2-4). - First-run recreates:
cinder_backupnow runs withipc_mode: hostlikecinder_volume(roles/cinder/defaults/main.yml:46,roles/cinder/defaults/main.yml:57), andcinder_apiandcinder_scheduleralways mount/dev/shm(roles/cinder/defaults/main.yml:173,roles/cinder/defaults/main.yml:191). The queue settings are always rendered (roles/cinder/templates/cinder.conf.j2:74,83,88; F17),www_authenticate_uriiskeystone_public_urlandmemcache_security_strategyis a variable (roles/cinder/templates/cinder.conf.j2:122,133). So every cinder container restarts or is recreated on the first 2025.1 run. - Backends: Hitachi HNAS NFS is removed; Pure NVMe/TCP, Lightbits and Huawei XML files are new
(
roles/cinder/defaults/main.yml:261-264,roles/cinder/tasks/config.yml:12-16); the Swift backup driver is gone with the Swift role; coordination can use valkey (roles/cinder/templates/cinder.conf.j2:269-273). - No rolling reconfigure or upgrade through the CLI (F19); a batched reconfigure is
kolla-ansible deploy -t cinder -e kolla_serial=N. - Still holds from 2024.1: the per-cluster
ceph/sub-directories and the copy over/etc/ceph(roles/cinder/templates/cinder-volume.json.j2:16-22,roles/cinder/templates/cinder-backup.json.j2:15-21); thehostnqnfile (roles/cinder/tasks/config.yml:105-114), which now notifies nothing; the S3 backup driver and its precheck; the five handlers in the same order; the HAProxy backends now addoption httpchk(roles/cinder/defaults/main.yml:20-21,roles/cinder/defaults/main.yml:30-31).
The lists below say where the study covers how to operate it, its impact, its dependencies and the evidence, what to check around a run and what stays open; the service card follows them.
Where to look¶
Operate¶
No operation page gives a command line for the cinder tag. The scenario above describes
kolla-ansible -t <svc> reconfigure for an API service such as keystone, glance, cinder, heat or placement; its command
example is keystone (Reconfigure a single service
§1.1).
Impact and risk¶
- What the tag executes (
cinder): Tags §3, row<svc>; Tags §3.1, row<svc>API service - Sequence CODE:
reconfigureimportsdeploy.yml(roles/cinder/tasks/reconfigure.yml:2), which runs registration, config, check-containers, the clone in dev mode, bootstrap, then a flush of the handlers (roles/cinder/tasks/deploy.yml:1-14). - Risks: R8, R24
Dependencies¶
- Dependencies: Component dependencies §3
Evidence¶
- Fact sheet: fact sheet C §3
- Image side: Kolla images
§4 (row
cinder-api), Kolla images §5 - Bootstrap one-shots CODE: on deploy and reconfigure, the database and its user are created from the first
cinder-apihost, unlessuse_preconfigured_databases(roles/cinder/tasks/bootstrap.yml:2-36), then onebootstrap_cindercontainer runs,run_once, on that host withKOLLA_BOOTSTRAP(roles/cinder/tasks/bootstrap_service.yml:2-20), which runscinder-manage db sync(kolladocker/cinder/cinder-api/extend_start.sh:6-9).KOLLA_OSM(cinder-manage db online_data_migrations, kolladocker/cinder/cinder-api/extend_start.sh:11-14) is set only byupgrade.yml(roles/cinder/tasks/upgrade.yml:18-36). - Handlers: Tags §5; changed in 2025.1, a change restarts only
the container whose files or definition changed (Tags §2.4).
The Ceph
.conftask no longer notifies (roles/cinder/tasks/external_ceph.yml:17-37), so a change forcinder-volumeno longer restartscinder_backupon a host in both groups CODE.
Before and after a run¶
- Pre-execution checklist, step 6 (workload gates): no live migrations,
resizes, image uploads or volume migrations in flight on the targeted hosts; one of its two checks is
openstack volume list --status *ing. - Tags §3.1, row
<svc>API service: safe on its own "yes, it is the intended unit; it still runs Keystone registration and DB sync"; batch withdeploy -e kolla_serial=N(reconfigureforceskolla_serial=0, F19). Prerequisites: MariaDB, RabbitMQ, memcached, Keystone (registration), HAProxy VIP. Glance and cinder transfers in progress are SIGKILLed after 60 s (docker_graceful_timeout,group_vars/all.yml:148; R24). - Before the upgrade from 2024.1 CODE: with more than one
cinder-volumehost, decide oncinder_cluster_name(or setcinder_cluster_skip_precheck), and with Ceph enable a coordination backend, orkolla-ansible prechecksfails (Changed in 2025.1 above). Setting a cluster name on a running cloud is a Cinder service change whose effect is NOT AVAILABLE; plan it as its own change, to be confirmed by the community. - First run after the upgrade from 2024.1 CODE: expect every cinder container to restart or be recreated (queue
settings,
www_authenticate_uri, the per-servicecinder.conf,/dev/shmoncinder_apiandcinder_scheduler,ipc_mode: hostoncinder_backup, uWSGI oncinder_api; F17). A container that no 2025.1 run has recreated or restarted yet is also flagged by the changed systemd unit text (F16). Run adeployorreconfigureafter the upgrade to register theblock-storageendpoints. - fact sheet C §3.8, item 7:
the cinder role itself does not target computes; enabling
enable_cinder_backend_iscsi/LVM also flips glance-api to privileged with/dev, so glance-api is recreated. In 2025.1cinder_backend_ceph(with Cinder enabled) still makes glance-api privileged, without/dev(roles/glance/defaults/main.yml:10,roles/glance/defaults/main.yml:206-207) CODE. - R8, precautions for a HAProxy config change:
--skip-tags haproxywhen you don't intend to change frontends; a-t cinderrun renders the frontends without restarting HAProxy (F18). - R24, container stop timeout: the stop goes through the container's systemd unit,
whose
ExecStopis/usr/bin/<engine> stop <name> -t <graceful_timeout>(module_utils/kolla_systemd_worker.py:33), withdocker_graceful_timeout60 s (group_vars/all.yml:148,group_vars/all.yml:160) (F3). Precautions: drain long operations before restarts; raisedocker_graceful_timeoutif needed. - Reconfigure a single service
§3,
verification of
-t <svc> reconfigure: before,kolla-ansible genconfig -t <svc>, thenkolla_set_configs --checkin each<svc>container and a diff of/etc/kolla/haproxy/services.d/<svc>*.cfgagainst the previous version; after,openstack endpoint list --service <name>is unchanged for each Keystone service the role registers; for cinder in 2025.1 that isblock-storageand the deprecatedcinderv3, each with aninternaland apublicendpoint (roles/cinder/defaults/main.yml:346-359), and the first 2025.1 deploy or reconfigure adds theblock-storageones. The API answers through the VIP and the container start times show which hosts restarted; HAProxy no longer restarts on a service tag (F18).
Known limits and open points¶
- Known bugs and limitations, row
cinder: nohost/backend_host/cluster; etcd coordination uses only the first etcd host; Ceph backup driver default without a Ceph config. Checked against 2025.1 CODE:cinder.conf.j2still sets nohostorbackend_host, but it now setsclusterforcinder-volumewhencinder_cluster_nameis set, and a precheck asks for it with severalcinder-volumehosts (Changed in 2025.1 above); the etcd item still does not hold as written: withcinder_coordination_backend: etcd(the default only when valkey and Redis are disabled and etcd enabled,group_vars/all.yml:1178) thebackend_urlisetcd3+<proto>://kolla_internal_fqdn:etcd_client_port?api_version=v3, i.e. the internal VIP, where the etcd role has a HAProxy frontend (roles/cinder/templates/cinder.conf.j2:269-281,roles/etcd/defaults/main.yml:11-17); the backup driver still defaults toceph(group_vars/all.yml:1181,roles/cinder/templates/cinder.conf.j2:33-42) while the Ceph files are written only withcinder_backend_ceph(roles/cinder/tasks/config.yml:18-22,roles/cinder/templates/cinder-backup.json.j2:15-21). - F3, "
docker_graceful_timeoutanddocker_client_timeoutare ignored": an Ussuri finding that still does not hold in 2025.1. The role handlers passdocker_common_options(roles/cinder/handlers/main.yml:7-9), which carriesgraceful_timeout: "{{ docker_graceful_timeout }}"(60 s) andclient_timeout(120 s) (group_vars/all.yml:114,group_vars/all.yml:148,group_vars/all.yml:151-162), and the container's systemd unit stops it with<engine> stop <name> -t <graceful_timeout>(module_utils/kolla_systemd_worker.py:33). On every restart, a service still running 60 s after SIGTERM is killed with its in-flight work (heat-engine, cinder copies, glance uploads); the 10 s value is only the fallback when nograceful_timeoutis passed (library/kolla_container.py:366,module_utils/kolla_docker_worker.py:450-454) CODE (R24). - F5, "
reconfigure=deploy": a reconfigure re-runs Keystone registration, DB creation/grants and the DB-sync bootstrap containers of most services CODE. - fact sheet C §3.8,
"Operational notes", nine items: no
host/backend_host/clusterset in cinder.conf; cinder-volume restart impact; cinder-backup restart; upgrade restarts every cinder-volume and cinder-backup at once; oddity: backup driver vs. ceph files; multipath is never configured; compute-host touchpoints; external Ceph needs cinder-volume and cinder-backup hosts in thestoragegroup; the sanity check (if enabled) creates a 1 GB volume on every deploy/reconfigure. Checked against 2025.1 CODE:- the upgrade still restarts every cinder container of the play at once (handlers;
upgradealways runs withkolla_serial=0, F19), and then a second time.upgrade.ymlrenders the config on the firstcinder-apihost, runs thedb syncbootstrap, renders the config everywhere, checks the containers, then flushes the handlers (the 2024.1 Keystone user-role step is removed); the flush includes acinder_rpc_version_startup_delaypause (30 s) that only runs onupgrade;reload.ymlthen restarts every enabled cinder container "to remove RPC version pin", and the online data migration runs last (roles/cinder/tasks/upgrade.yml:1-36,roles/cinder/handlers/main.yml:71-81,roles/cinder/tasks/reload.yml:2-10,roles/cinder/defaults/main.yml:237); - the cinder role still sets no multipath option (no
multipathunderroles/cinder/); the separatemultipathdplay is still off by default (site.yml:469-481,group_vars/all.yml:927); external_ceph.ymlstill targets the hosts of each service's own group (cinder-volume,cinder-backup), with no reference to thestoragegroup (roles/cinder/tasks/external_ceph.yml:12,roles/cinder/tasks/external_ceph.yml:32-34,roles/cinder/tasks/external_ceph.yml:49-51,roles/cinder/tasks/external_ceph.yml:65-67; theservice_enabled_and_mapped_to_hostfilter maps a service by itsgroup,kolla_ansible/filters.py:58-82);- the volume sanity check still does not exist: the new
check.ymlonly runs theservice-checkrole on the containers (roles/cinder/tasks/check.yml:2-4) andtasks/deploy.ymlhas no check step (roles/cinder/tasks/deploy.yml:1-14).
- the volume sanity check still does not exist: the new
- the upgrade still restarts every cinder container of the play at once (handlers;
- fact sheet C §8,
"NOT AVAILABLE list", items 5 to 7: NOT AVAILABLE: whether cinder-backup works with default
cinder_backup_driver=cephandcinder_backend_ceph=no; whether the volumes owned by one of several RBD cinder-volume nodes can still be managed while that node is down, and what state an in-flight create-from-image is in after a cinder-volume restart; Cinder RPC pinning afterkolla-ansible upgrade. In 2025.1 the role still restarts all cinder services after an upgrade to remove the RPC version pin (roles/cinder/tasks/reload.yml:2); whether the pin is in fact lifted is service-side behaviour: NOT AVAILABLE. - Multi-cluster Ceph: what Cinder does with several RBD backends on different clusters, and whether Nova can attach a volume of a cluster other than its own, is service-side behaviour that the role does not establish: NOT AVAILABLE.
- fact sheet C §6: a reconfigure with a bumped image tag runs cinder's
db syncwithout its online data migration step (the bootstrap container setsKOLLA_BOOTSTRAP, which runscinder-manage db sync, notKOLLA_OSM;KOLLA_OSMis set only byupgrade.yml:roles/cinder/tasks/bootstrap_service.yml:10-12, kolladocker/cinder/cinder-api/extend_start.sh:6-14,roles/cinder/tasks/upgrade.yml:18-36); whether this leaves cinder in a partially upgraded state is NOT AVAILABLE. - Kolla images §6, item 10: recursive chown on data volumes at every
start:
kolla_set_configsmakes onechownper file of thecindervolume, twice for cinder-volume, on everyCOPY_ALWAYSstart (roles/cinder/templates/cinder-volume.json.j2:50-54, kolladocker/cinder/cinder-volume/extend_start.sh:3-5,group_vars/all.yml:49) CODE. - What is not known: fact sheet C has its own NOT AVAILABLE list, and its §3.8 is among the sections that contain NOT AVAILABLE marks.
- Open questions has no entry on Cinder.
Service card¶
The rows of the card are explained on the Components page.
| Item | Value |
|---|---|
| Play | site.yml:574 |
| Tags | cinder |
| Play host patterns | cinder-api, cinder-backup, cinder-scheduler, cinder-volume |
| Node types in play (example inventory) | control, storage |
| Node types running its containers | control, storage |
| Containers | cinder_api, cinder_scheduler, cinder_volume, cinder_backup |
deploy/reconfigure flow (tasks/) |
register → config → check-containers → clone (if) → bootstrap → flush handlers |
| Task files | bootstrap.yml, bootstrap_service.yml, check-containers.yml, check.yml, clone.yml, config.yml, config_validate.yml, copy-certs.yml, deploy-containers.yml, deploy.yml, external_ceph.yml, external_huawei.yml, loadbalancer.yml, main.yml, precheck.yml, pull.yml, reconfigure.yml, register.yml, reload.yml, stop.yml, upgrade.yml |
| Templates | cinder-api.json.j2, cinder-backup.json.j2, cinder-scheduler.json.j2, cinder-volume.json.j2, cinder-wsgi.conf.j2, cinder.conf.j2, hostnqn.j2 |
| Handlers (definition order) | Restart cinder-api container; Restart cinder-scheduler container; Restart cinder-volume container; Restart cinder-backup container; Wait for cinder services to update service versions |
| Key variables | enable_cinder, enable_cinder_backend_*, cinder_backend_ceph, cinder_backup_driver, cinder_coordination_backend |
| Role dependencies | none |
Related¶
- Reconfigure a single service — what
-t <svc> reconfigureruns for an API service such as cinder, with the risks and the verification - iscsid / tgtd — the
iscsirole, on which cinder-volume (LVM) depends - Glance — enabling the cinder iSCSI/LVM or Ceph backend recreates glance-api; Glance has the same per-cluster Ceph layout, with the user per backend in 2025.1
- Nova — Nova needs Cinder for volume-backed boots
- RabbitMQ — the queue settings, always on in 2025.1, that change
cinder.conf(F17) - R24 — cinder-volume copies are among the in-flight work killed 60 s
(
docker_graceful_timeout) after SIGTERM - Pre-execution checklist — the checks before every production run
- Components — the other component pages