Skip to content

fix: quote mc-observability DB name in InfluxDB init to handle hyphen#178

Merged
MZC-CSC merged 11 commits into
m-cmp:mainfrom
MZC-CSC:develop
Jun 30, 2026
Merged

fix: quote mc-observability DB name in InfluxDB init to handle hyphen#178
MZC-CSC merged 11 commits into
m-cmp:mainfrom
MZC-CSC:develop

Conversation

@MZC-CSC

@MZC-CSC MZC-CSC commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary

  • INFLUXDB_DB=mc-observability 환경변수로 인해 InfluxDB 이미지 entrypoint가 시작 시 CREATE DATABASE mc-observability(따옴표 없음)를 실행
  • InfluxQL은 하이픈이 포함된 식별자를 따옴표 없이 파싱하지 못해 DB 생성 실패 → 컨테이너 unhealthy → 의존 서비스 연쇄 실패
  • mc-observability-influx, mc-observability-influx-2 두 서비스에서 INFLUXDB_DB 환경변수 제거
  • init-database.shCREATE DATABASE "mc-observability" (큰따옴표 포함) 추가하여 init 스크립트에서 올바르게 생성

Changed Files

  • conf/docker/docker-compose.yamlINFLUXDB_DB 제거 (2곳)
  • conf/docker/conf/mc-observability/influxdb/influxdb_init/init-database.sh — quoted DB 생성 추가

MZC-CSC and others added 11 commits June 19, 2026 10:47
fix(docker): 서비스 restart 정책 보강 및 MC_COST_OPTIMIZER_ 환경변수 통일
fix(docker): cb-spider/tumblebug 이미지 업데이트 및 observability healthcheck 조정
fix(iam): FE iframe URL scheme 분기 및 data-manager nginx timeout 보강
InfluxQL rejects unquoted identifiers containing hyphens.
The image entrypoint ran `CREATE DATABASE mc-observability` without quotes,
causing DB creation to fail and the container to become unhealthy.

- Remove INFLUXDB_DB env var from mc-observability-influx and mc-observability-influx-2
  to prevent the entrypoint from issuing an unquoted CREATE DATABASE.
- Add `CREATE DATABASE "mc-observability"` (double-quoted) to init-database.sh
  so the DB is created correctly via the init script instead.
fix: quote mc-observability DB name in InfluxDB init to handle hyphen
@MZC-CSC MZC-CSC merged commit ab934b0 into m-cmp:main Jun 30, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants