From 8036d21513f3133dec8e72829b685d8e80046747 Mon Sep 17 00:00:00 2001 From: Roger Luethi Date: Sun, 18 Oct 2026 12:22:35 +0200 Subject: [PATCH] kolla: Use OSISM's Gnocchi pool name When OSISM deploys Ceph, it creates the Gnocchi pool as "metrics" (openstack_gnocchi_pool in 099-ceph.yml) and grants client.gnocchi access to that pool only. Kolla renders gnocchi.conf's ceph_pool from ceph_gnocchi_pool_name, whose upstream default (mirrored in 001-ceph.yml) is "gnocchi". Gnocchi on Ceph therefore points at a pool OSISM does not create and its key cannot access, unless the configuration repository overrides the name. It is the only one of the five OpenStack pools whose names differ. cfg-cookiecutter has carried ceph_gnocchi_pool_name: "metrics" since 2020 to cover this, and configuration repositories copy it. Derive ceph_gnocchi_pool_name from openstack_gnocchi_pool.name when OSISM deploys Ceph, using the same signal as the Ceph mgr exporter (a non-empty ceph-mgr group). With an external Ceph cluster OSISM creates no pools, so the name stays at upstream's "gnocchi". Resolved with ansible against this tree: "metrics" with a ceph-mgr host, "gnocchi" with an empty ceph-mgr group, and a site's own ceph_gnocchi_pool_name or renamed openstack_gnocchi_pool wins in both cases. The kolla drift detector reports nothing to act on. Checked on a 2026.1 cluster that deploys Ceph with cephadm, with the configuration repository's ceph_gnocchi_pool_name removed: osism apply -a config gnocchi renders ceph_pool = gnocchi with the previous defaults and ceph_pool = metrics with this change. Repositories generated from cfg-cookiecutter already set "metrics", so the effective value does not change for them. Once a release carries this, the template line is a restatement and can go. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Roger Luethi --- all/099-kolla.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/all/099-kolla.yml b/all/099-kolla.yml index 6bf2880..8a5b35d 100644 --- a/all/099-kolla.yml +++ b/all/099-kolla.yml @@ -140,6 +140,10 @@ enable_octavia_jobboard: "no" # ceph ceph_nova_user: nova +# When OSISM deploys Ceph, point Gnocchi at the pool it creates +# (openstack_gnocchi_pool in 099-ceph.yml). An external cluster keeps +# upstream's pool name. +ceph_gnocchi_pool_name: "{{ openstack_gnocchi_pool.name if groups['ceph-mgr'] | default([]) | length > 0 else 'gnocchi' }}" # cinder # Run cinder-volume active/active when it has more than one host and RBD is its