Bug #75365
closedGrafana container fails to start: grafana-apiserver rejects "localhost" as invalid IP address
0%
Description
The Grafana container deployed by cephadm fails to start with Grafana 12.3.1 (and likely other Grafana 11.1.0+ versions). The grafana-apiserver module rejects `localhost` as an invalid IP address, causing the container to exit immediately. This breaks the `test_cephadm.sh` workunit and any deployment that includes Grafana.
Grafana 11.1.0+ added stricter IP validation. This triggers:
failure: invalid IP address: localhost
Upstream Grafana issue: https://github.com/grafana/grafana/issues/89661
Environment
| Component | Version |
| Ceph | 20.2.0-792.g114540db (cephadm distro RPM) |
| Grafana image | quay.io/ceph/grafana:12.3.1 |
| OS | Rocky Linux 10.1 |
| Platform | OpenStack VM |
| Container runtime | Podman 5.6.0 |
- Run: rocky-test-2026-03-05_10:29:06-orch:cephadm-wip-rocky10-branch-of-the-day-2026-03-04-1772624857-tentacle-distro-default-openstack
- Jobs 1009, 1035, 1064 (all test_cephadm.sh workunit failures)
- Ceph ref: 114540db64b147fec6ed1e393a546ba7896f3dbb
KG Updated by kobi ginon 6 months ago
- Assignee set to kobi ginon
KG Updated by kobi ginon 6 months ago
Root cause: Grafana ≥ 11.1 requires literal IPs in http_addr for grafana-apiserver; cephadm leaves http_addr blank and/or image defaults introduce localhost.
suggesting ot fix by
set http_addr to 0.0.0.0 if a target ip is not set
instead of leaving it empty which will cause the issue
KG Updated by kobi ginon 6 months ago
- Pull request ID set to 69080
RK Updated by Redouane Kachach Elhicou 6 months ago
UB Updated by Upkeep Bot 6 months ago
- Status changed from New to Resolved
- Merge Commit set to ace8eb0aafc99ee198087dcd8b7b3c85a8290df5
- Fixed In set to v21.3.0-42-gace8eb0aaf
- Upkeep Timestamp set to 2026-06-12T10:36:22+00:00