본문 바로가기
빅데이터/kubernetes

[helm] helom chart 사용중 Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress 오류 처리

by hs_seo 2022. 7. 18.

helm chart 사용중 다음과 같은 오류가 발생하는 경우가 있습니다.

 

Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress

 

확인

이 경우 helm history 명령으로 이전에 작업한 내역을 확인하면 작업이 완료되지 않고, 진행중인 것을 확인할 수 있습니다.

$ helm history kbp-airflow  --namespace kbp-cbt
REVISION        UPDATED                         STATUS          CHART           APP VERSION     DESCRIPTION      
6               Tue Apr  5 18:29:05 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
7               Wed Apr  6 09:43:58 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
8               Thu Apr  7 13:53:09 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
9               Fri Apr  8 17:36:43 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
10              Mon Apr 25 13:55:16 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
11              Mon Apr 25 14:25:59 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
12              Mon Apr 25 23:22:25 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
13              Tue Apr 26 16:55:54 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
14              Wed May 11 11:46:36 2022        deployed        airflow-8.5.2   2.1.2           Upgrade complete 
15              Mon Jul 11 10:14:43 2022        pending-upgrade airflow-8.5.2   2.1.2           Preparing upgrade

 

 

해결 방법

하나는 오류가 발생한 작업 이전으로 rollback 하는 거시고, 다른 하나는 네임 스페이스를 삭제하고 새로 생성하는 방법입니다. 상황에 따라 편리한 방법을 사용하면 될 것 같습니다.

# 롤백 처리 
$ helm rollback kbp-airflow 14 --namespace kbp-cbt
Rollback was a success! Happy Helming!

$ helm history kbp-airflow  --namespace kbp-cbt   
REVISION        UPDATED                         STATUS          CHART           APP VERSION     DESCRIPTION      
7               Wed Apr  6 09:43:58 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
8               Thu Apr  7 13:53:09 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
9               Fri Apr  8 17:36:43 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
10              Mon Apr 25 13:55:16 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
11              Mon Apr 25 14:25:59 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
12              Mon Apr 25 23:22:25 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
13              Tue Apr 26 16:55:54 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
14              Wed May 11 11:46:36 2022        superseded      airflow-8.5.2   2.1.2           Upgrade complete 
15              Mon Jul 11 10:14:43 2022        pending-upgrade airflow-8.5.2   2.1.2           Preparing upgrade
16              Thu Jul 14 19:49:33 2022        deployed        airflow-8.5.2   2.1.2           Rollback to 14

 

반응형