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

[tf] Difference in expected bucket names for Loki, Mimir, Tempo #217

Open
MichaelThamm opened this issue Oct 18, 2024 · 0 comments
Open

Comments

@MichaelThamm
Copy link
Contributor

After deploying cos with TF, with the manual steps of:

juju config loki-s3-bucket endpoint="http://minio-0.minio-endpoints.cos.svc.cluster.local:9000/" bucket="loki"
juju config mimir-s3-bucket endpoint="http://minio-0.minio-endpoints.cos.svc.cluster.local:9000/" bucket="mimir"
juju config tempo-s3-bucket endpoint="http://minio-0.minio-endpoints.cos.svc.cluster.local:9000/" bucket="tempo"

The relation data still shows the previously configured bucket name in the data field. I think this is causing Tempo worker applications to remain in a restart (tenacity) loop with the pebble logs providing:

"error running Tempo" err="failed to init module services: error initialising module: store: failed to create store: unexpected error from ListObjects on tempo: The specified bucket does not exist"

As you can see, the 3 applications do not behave the same (Mimir vs. Loki & Tempo). We need to ensure that the same functionality exists for all 3.

Tempo

│ application data  │ ╭───────────────────────────────────────────────────────────────────────────────╮ │ ╭───────────────────────────────────────────────────────────────────────────────╮ │
│                   │ │                                                                               │ │ │                                                                               │ │
│                   │ │  access-key  user                                                             │ │ │  bucket  relation-26                                                          │ │
│                   │ │  bucket      tempo                                                            │ │ ╰───────────────────────────────────────────────────────────────────────────────╯ │
│                   │ │  data        {"bucket": "relation-26"}                                        │ │                                                                                   │
│                   │ │  endpoint    http://minio-0.minio-endpoints.cos.svc.cluster.local:9000        │ │                                                                                   │
│                   │ │  secret-key  password                                                         │ │                                                                                   │
│                   │ ╰───────────────────────────────────────────────────────────────────────────────╯ │                                                                                   │

Loki

│ application data  │ ╭───────────────────────────────────────────────────────────────────────────────╮ │ ╭───────────────────────────────────────────────────────────────────────────────╮ │
│                   │ │                                                                               │ │ │                                                                               │ │
│                   │ │  access-key  user                                                             │ │ │  bucket  relation-20                                                          │ │
│                   │ │  bucket      loki                                                             │ │ ╰───────────────────────────────────────────────────────────────────────────────╯ │
│                   │ │  data        {"bucket": "relation-20"}                                        │ │                                                                                   │
│                   │ │  endpoint    http://minio-0.minio-endpoints.cos.svc.cluster.local:9000        │ │                                                                                   │
│                   │ │  secret-key  password                                                         │ │                                                                                   │
│                   │ ╰───────────────────────────────────────────────────────────────────────────────╯ │                                                                                   │

Mimir

│ application data  │ ╭───────────────────────────────────────────────────────────────────────────────╮ │ ╭───────────────────────────────────────────────────────────────────────────────╮ │
│                   │ │                                                                               │ │ │                                                                               │ │
│                   │ │  access-key  user                                                             │ │ │  bucket  mimir                                                                │ │
│                   │ │  bucket      mimir                                                            │ │ ╰───────────────────────────────────────────────────────────────────────────────╯ │
│                   │ │  data        {"bucket": "mimir"}                                              │ │                                                                                   │
│                   │ │  endpoint    http://minio-0.minio-endpoints.cos.svc.cluster.local:9000        │ │                                                                                   │
│                   │ │  secret-key  password                                                         │ │                                                                                   │
│                   │ ╰───────────────────────────────────────────────────────────────────────────────╯ │                                                                                   │
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant