canonical / canonical/observability-stack

grafana admin login with default password not working with COS stack deployed with Terraform

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
9
Forks
12
Avg merge
2d 40m
Merged PRs (30d)
3

Description

CPC has encountered an issue with the grafana application in the COS HA stack deployed in PS6 where grafana returns 401 errors when attempting to log in with the `admin` username and the default secret created during the course of deployment of the stack.

Steps to reproduce: deploy the COS stack using terraform with the following as a `main.tf`:

```
terraform {
required_version = ">= 1.5"
required_providers {
juju = {
source = "juju/juju"
version = "~> 1.0"
}
}
}

data "juju_model" "my-model" {
name = ""
owner = "admin"
}

variable "s3_secret_key" {
default = "NO_VALUE_SET"
}

variable "s3_access_key" {
default = "NO_VALUE_SET"
}

module "cos" {
source = "git::https://github.com/canonical/observability-stack//terraform/cos"
model_uuid = data.juju_model.my-model.uuid
channel = "2/stable"
anti_affinity = false
internal_tls = false
external_certificates_offer_url = null
s3_endpoint = "https://radosgw.ps6.canonical.com"
s3_secret_key = var.s3_secret_key
s3_access_key = var.s3_access_key
ssc = { channel = "1/stable" }
traefik = { channel = "latest/stable" }
loki_bucket = ""
mimir_bucket = ""
tempo_bucket = ""
}
```

I've confirmed that the juju secret, grafana secret (from inside the container), and the output of the get-admin-password all match. I've also tried resetting the password by sshing to the container and running the grafana tool to reset the password.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.