Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift: Add a config option for prefixing all containers #1442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Callum027
Copy link
Contributor

The swift_container_prefix option by itself only prefixes the containers created for metric storage.

This is not enough to allow multiple Gnocchi deployments to share the same OpenStack project, as additional containers are created for Gnocchi configuration as well as for incoming metric storage, if Swift is also used as the incoming storage driver.

This adds a new swift_container_prefix_all flag for enabling prepending swift_container_prefix to all Swift containers that can be made by Gnocchi.

This allows new deployments of Gnocchi to be configured in a way that multiple deployments can share the project (e.g. a service project in a multi-region cloud). Unfortunately, existing Gnocchi deployments cannot easily be reconfigured to enable prefixes, nor can the prefix easily be changed.

Fixes #1067.

@Callum027 Callum027 force-pushed the swift-container-prefix branch 3 times, most recently from 3c648cd to 75bef24 Compare February 11, 2025 19:33
The `swift_container_prefix` option by itself only prefixes
the containers created for metric storage.

This is not enough to allow multiple Gnocchi deployments to share
the same OpenStack project, as additional containers are created
for Gnocchi configuration as well as for incoming metric storage,
if Swift is also used as the incoming storage driver.

This adds a new `swift_container_prefix_all` flag for enabling
prepending `swift_container_prefix` to **all** Swift containers
that can be made by Gnocchi.

This allows new deployments of Gnocchi to be configured in a way
that multiple deployments can share the project (e.g. a service
project in a multi-region cloud). Unfortunately, existing
Gnocchi deployments cannot easily be reconfigured to enable
prefixes, nor can the prefix easily be changed.

Fixes gnocchixyz#1067.
@Callum027 Callum027 force-pushed the swift-container-prefix branch from 75bef24 to d54d501 Compare February 11, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Swift storage backend multi regions
2 participants