Project

General

Profile

Actions

Bug #75365

closed
DS KG

Grafana container fails to start: grafana-apiserver rejects "localhost" as invalid IP address

Bug #75365: Grafana container fails to start: grafana-apiserver rejects "localhost" as invalid IP address

Added by Deepshikha Singh 9 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-42-gace8eb0aaf
Released In:
Upkeep Timestamp:
2026-06-12T10:36:22+00:00

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

Ref from trial machines - https://qa-proxy.ceph.com/teuthology/yaarit-2026-03-05_03:07:52-rados-wip-rocky10-branch-of-the-day-2026-03-04-1772624857-tentacle-distro-default-trial/86634/teuthology.log

KG Updated by kobi ginon 6 months ago Actions #1

  • Assignee set to kobi ginon

KG Updated by kobi ginon 6 months ago Actions #2

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 Actions #3

  • Pull request ID set to 69080

UB Updated by Upkeep Bot 6 months ago Actions #5

  • 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
Actions

Also available in: PDF Atom