Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE 685,686,687 ALIBABA, GCP, TENCENT resume reboot 로직 보완 #689

Merged
merged 10 commits into from
Jul 1, 2022

Conversation

dogfootman
Copy link
Contributor

상태 체크 추가[ALIBABA, TENCENT]
Reboot 로직

  • vm status == running 이면 reboot 호춯
  • vm status == suspended 이면 ResumeVM 호출
  • 그외에는 ing 이므로 fail return

Resume 로직

  • vm status == suspended 일 때 호출 가능

[GCP]
GCPInstanceStop 추가 : Vm Stop하는 부분 별도로 분리
. 비동기 방식이므로 operation return.
. 동기 방식으로 처리하려면 operation 의 status를 체크하는 WaitOperationComplete 를 이용. 완료까지 대기

WaitForRun 위치 변경 : source의 가장 아래로

dogfootman and others added 10 commits June 30, 2022 14:38
 global, region, zone operation별 진행상태 체크용
GCPInstanceStop 추가 : Vm Stop하는 부분 별도로 분리
 . 비동기 방식이므로 operation return.
 . 동기 방식으로 처리하려면 operation 의 status를 체크하는 WaitOperationComplete 를 이용. 완료까지 대기

WaitForRun 위치 변경 : source의 가장 아래로
 - vm status == running 이면 reset 호춯
 - vm status == suspended 이면 ResumeVM 호출
 - 그외에는  ing 이므로 fail return
AS-IS : Starting -> Unknown status
TO-BE : Starting -> Resuming
issue 686 : alibaba resume, reboot 시 상태값(Starting)을 Resuming과 매핑시킴.
 resume 일 때, running 상태일때만 호출가능
 reboot 일 때, suspended 상태일 때 resume 호출 running일 때 rebootInstance 호출
 resume 일 때, running 상태일때만 호출가능
[ALIBABA, TENCENT] Issue 686,687 resume reboot 로직 보완
@powerkimhub powerkimhub self-requested a review July 1, 2022 00:07
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.

2 participants