ES /docs

MigrationsController missing environment consistency validation

Service
cupixworks-api
Occurrences
95
Status
Dismissed
Confidence
85%
Actionability
24%
Cluster ID
5a936190-e5bc-4a95-97e4-a3c867c9a878
First Seen
2026-05-04 04:29 UTC
Last Seen
2026-07-29 01:24 UTC
Actions
현재 상태 dismissed 에서는 실행할 액션이 없습니다.

MigrationsController missing environment consistency validation

What Happened#

2026-06-17 11:16~11:27 KST 사이, cupixworks-api (us-west-2 production)의 backoffice 관리자 migration 엔드포인트(POST /api/v1/admin/migrations)에서 7회 연속 502 BadGateway가 발생했다. Tesla가 evergreen migration 서비스에 migration 등록 요청을 보냈으나, evergreen이 source facility와 destination facility의 environment가 다르다는 이유로 ARG10001을 반환하여 모든 요청이 실패했다.

Quick Facts#

Field Value
exception.class Cupix::Errors::BadGateway (재발생) / 원인은 evergreen이 반환한 Cupix::Errors::Parameter (ARG10001)
exception.message Source and destination facility environments are different
top_frame app/operations/migration_operation.rb:64 (MigrationOperation.create_migration_request)
http_status 502
endpoint POST /api/v1/admin/migrations (Api::V1::Admin::MigrationsController#create)
deploy production-us-west-2-20260613T0358Z0-9443a6d8-cupixworks (event at 11:27), production-us-west-2-20260616T1952Z0-9443a6d8-cupixworks (event at 11:25)
env production / us-west-2 / tenant=cupix

Affected Teams#

Team / Domain Error Count Impact
Backoffice / CSM (Admin Migrations) 7 운영자가 backoffice UI에서 시도한 facility/record migration 요청이 503/502로 실패 — migration 작업이 시작되지 않음

End-user 영향은 없으며, CSM(운영) 워크플로우에 한정된다.

Timeline#

  1. 2026-06-17 11:16 KST — 첫 번째 실패 (request_id=fca2f63f-…)
  2. 2026-06-17 11:16~11:17 KST — 4건 연속 실패 (6e7d70a5-…, d325a27a-…, 0d0b08b5-…)
  3. 2026-06-17 11:22 KST — 2건 추가 실패 (983e99db-…, c9d6d996-…)
  4. 2026-06-17 11:25 KST9106e2b1-… 실패 (cluster last_seen)
  5. 2026-06-17 11:27 KST7d1926ef-… 실패 (Datadog에서 cluster 외 동일 패턴 1건 추가 확인)
  6. 이후 동일 fingerprint 재발 없음 — operator가 시도를 중단한 것으로 보임 (시도 횟수만 7~8회)

Scoring#

Confidence 85% · Actionability 24%

Confidence#

Dimension Score Detail
Evidence completeness 5/5 11 code refs, 7 log queries
Code path explicitness 3/3 11 file:line refs
Log evidence 3/3 section, query, pattern
RCA structure 3/3 3/3 sections
Revision history 0/3 0 revision(s)
Agent execution 3/3 success

Actionability#

Dimension Score Detail
Fix complexity 1/5 critical
Affected files 1/5 7 file(s)
Single repo 1/3 3 service(s)
Immediate actions 0/3 absent
Testability 0/3 no test info
External dependency 3/3 no external deps
Data migration 0/3 migration needed