Repository navigation
fix: 클린 설치 시 installAll 로그 모드 중단·Jenkins 초기화 실패 수정 - #92
Merged
Merged
Conversation
- 로그 모드가 각 Wave를 attached(compose up)로 실행해 Wave 1에서 멈추고 이후 Wave(web-console 등)가 영영 기동되지 않던 문제 - 모든 Wave를 detached로 실행하는 run_startup_waves()로 통합, 로그 모드는 전체 기동 후 마지막에만 로그에 attach - Wave 진입점에서 닿지 않는 서비스(cost-optimizer collector/rightsizer, cb-mapui 등)를 위해 Wave 후 전체 run -d 단계 추가
- update site 다운로드 실패(Connection reset/timeout)는 예외 없이 설치 작업만 Failure로 남아, 누락된 의존 플러그인(joda-time-api 등) 때문에 재시작 후 로드 실패와 재시작 루프가 반복됨 - 플러그인별 마지막 InstallationJob이 Failure면 최대 5회 재시도, 끝내 실패하면 명시적으로 예외 발생 - 클린 설치 초기화가 약 9.5분 소요되어 기존 start_period(6m)+재시도 3회를 넘겨 unhealthy 판정 → mc-workflow-manager depends_on 실패. start_period 15m로 확대
- 루트 .env.setup의 MC_IAM_MANAGER_AWS_IDENTITY_ROLE_ARN이 계정 ID 자리에 MC_IAM_MANAGER_KEYCLOAK_DOMAIN을 참조하던 오류 수정 - mc-iam-manager/.env.setup과 동일하게 MC_IAM_MANAGER_AWS_ACCOUNT_ID 사용
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
stage VM 클린 설치 중 발견한 설치 스크립트·Jenkins 초기화·env 결함 3건을 수정합니다.
변경 사항
1. installAll 로그 모드에서 Wave 2 이후가 실행되지 않는 문제 (
bin/installAll.sh)./mcc infra run -s ...)로 실행해 Wave 1에서 멈추고, mc-web-console 등 Wave 2~4가 기동되지 않았습니다(웹콘솔 3001 → 502).run_startup_waves()로 통합했습니다. 로그 모드는 전체 기동 후 마지막에만 로그에 attach합니다../mcc infra run -d단계를 추가했습니다.2. Jenkins 플러그인 다운로드 실패 재시도 및 healthcheck 유예 확대 (
basic-security.groovy,docker-compose.yaml)Connection reset/Connect timed out)는 예외 없이 설치 작업만 Failure로 남아, 누락된 의존 플러그인(joda-time-api등) 때문에 재시작 후 로드 실패 → 재시작 루프가 반복됐습니다.start_period: 6m+ 재시도 3회를 넘겨 unhealthy 판정 →mc-workflow-managerdepends_on 실패로 Wave 4가 중단됐습니다.start_period를 15m으로 늘렸습니다(준비되면 즉시 healthy이므로 비용 없음).3. AWS_IDENTITY_ROLE_ARN 계정 자리 오류 (
conf/docker/.env.setup)MC_IAM_MANAGER_AWS_IDENTITY_ROLE_ARN이 계정 ID 자리에MC_IAM_MANAGER_KEYCLOAK_DOMAIN을 참조하던 오류를MC_IAM_MANAGER_AWS_ACCOUNT_ID로 수정했습니다(conf/mc-iam-manager/.env.setup과 동일).테스트
jenkins/jenkins:2.504.3-lts-jdk17+ 빈 볼륨으로 클린 부팅 →joda-time-api다운로드 실패 재현,Retrying failed plugin downloads (1/5)로 복구, 재시작 1회 후initialization is complete, API 200.cleanAll후 이 브랜치로installAll.sh -m prod로그 모드 실행./mcc infra stop→./mcc infra run -d후 약 3분 내 전 서비스 정상, 상태 재기동 전과 동일참고 (이 PR 범위 밖)
cleanAll.sh가conf/docker/.env를 지우지 않고 installAll은 빠진 키만 덧붙여, 재설치 시 이전 값(프록시 포트 등)이 남습니다..env의 프록시 포트를 바꿔도./mcc infra run은 iam nginx의nginx.conf를 재생성하지 않아 포트가 엇갈립니다(0_preset_prod.sh재실행 + nginx 컨테이너 재시작 필요).