You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Ceilometer the resource ID for an object storage container is created by appending the container name to the project ID with / as a separator. Since in Swift container names can be up to 256 characters long, this results in a maximum resource ID of length 289 characters.
This results in Ceilometer being unable to push object storage metrics to Gnocchi when container names are at least 223 characters long.
Given that Ceilometer has used this format for a long time I'm assuming that Gnocchi not accommodating the maximum possible length is unintentional, so I'm creating a bug report here.
Which version of Gnocchi are you using
Latest master.
How to reproduce your problem
Create a Swift container name at least 223 characters long, and create an object of non-zero size so that it gets sampled.
Allow Ceilometer to sample it using one of the object storage usage pollsters (e.g. storage.containers.objects.size).
Sample polled correctly, with the corresponding resource created in Gnocchi.
The text was updated successfully, but these errors were encountered:
Callum027
changed the title
Resource ID max length not long enough for max length Swift containers
Original resource ID not long enough for max length Swift containers
Jan 14, 2025
Callum027
changed the title
Original resource ID not long enough for max length Swift containers
Original resource ID not long enough for Swift container names
Jan 14, 2025
Related: Gnocchi resource types only allow string metadata fields to be up to 255 characters long, meaning that resource metadata also cannot store Swift container names that are 256 characters long.
Gnocchi only allows original resource IDs up to 255 characters long.
In Ceilometer the resource ID for an object storage container is created by appending the container name to the project ID with
/
as a separator. Since in Swift container names can be up to 256 characters long, this results in a maximum resource ID of length 289 characters.This results in Ceilometer being unable to push object storage metrics to Gnocchi when container names are at least 223 characters long.
Given that Ceilometer has used this format for a long time I'm assuming that Gnocchi not accommodating the maximum possible length is unintentional, so I'm creating a bug report here.
Which version of Gnocchi are you using
Latest
master
.How to reproduce your problem
storage.containers.objects.size
).What is the result that you get
In
ceilometer-agent-notification.log
:What is result that you expected
Sample polled correctly, with the corresponding resource created in Gnocchi.
The text was updated successfully, but these errors were encountered: