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

Provide mcis dynamic interal progress using requestlog #1599

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

seokho-son
Copy link
Member

  • MCIS Dynamic 실행시, request ID를 부여하고, reqID로 statusLog를 조회하면,

    • 중간 과정 (리소스 준비) 에 대한 정보를 title, time, info 형태의 array로 제공
    • 정상 종료 또는 오류시 최종 상태 정보를 리턴 (향후에는 중간 프로그레스 자체를 별도의 필드로 제공하여, 중간 상태 기록도 확인할 수 있게 개선 가능)
  • 기록 내용 자체는 향후 개선 가능하며, 유사 기록이 필요한 API에도 적용 가능.

    • 단, reqID를 내부 함수에도 전달 필요
responseData:Array[9]
0:Object
title:"Setting vNet:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:28.633814457+09:00"
1:Object
title:"Loading default vNet:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:28.633843641+09:00"
2:Object
title:"Setting SSHKey:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:31.233499204+09:00"
3:Object
title:"Loading default SSHKey:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:31.233537895+09:00"
4:Object
title:"Setting securityGroup:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:31.372117911+09:00"
5:Object
title:"Loading default securityGroup:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:31.372163205+09:00"
6:Object
title:"Prepared resources for VM:g1"
info:Object
name:"g1"
subGroupSize:"1"
label:"DynamicVM"
description:"mapui"
connectionName:"aws-ap-northeast-2"
specId:"aws+ap-northeast-2+t3a.nano"
imageId:"aws+ap-northeast-2+ubuntu22.04"
vNetId:"ns01-systemdefault-aws-ap-northeast-2"
subnetId:"ns01-systemdefault-aws-ap-northeast-2"
securityGroupIds:Array[1]
0:"ns01-systemdefault-aws-ap-northeast-2"
sshKeyId:"ns01-systemdefault-aws-ap-northeast-2"
rootDiskType:"default"
rootDiskSize:"default"
dataDiskIds:null
time:"2024-06-03T21:09:32.352800274+09:00"
7:Object
title:"Prepared all resources for provisioning MCIS:mc-80l1m"
info:Object
Object
startTime:"2024-06-03T21:09:28.632988309+09:00"
endTime:"0001-01-01T00:00:00Z"
status:"Handling"
requestInfo:Object
method:"POST"
url:"/tumblebug/ns/ns01/mcisDynamic"
header:Object
Accept:"application/json, text/plain, */*"
Accept-Encoding:"gzip, deflate, br, zstd"
Accept-Language:"ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7"
Authorization:"Basic ZGVmYXVsdDpkZWZhdWx0"
Connection:"keep-alive"
Content-Length:"464"
Content-Type:"application/json"
Origin:["http://localhost:1324"](http://localhost:1324/)
Referer:["http://localhost:1324/"](http://localhost:1324/)
Sec-Ch-Ua:"\"Google Chrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\""
Sec-Ch-Ua-Mobile:"?0"
Sec-Ch-Ua-Platform:"\"Windows\""
Sec-Fetch-Dest:"empty"
Sec-Fetch-Mode:"cors"
Sec-Fetch-Site:"same-site"
User-Agent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
X-Request-Id:"mcis-mc-80l1m-0"
body:Object
description:"Made via cb-mapui"
installMonAgent:"no"
label:"cb-mapui"
name:"mc-80l1m"
vm:Array[1]
0:Object
commonImage:"Ubuntu22.04"
commonSpec:"aws+ap-northeast-2+t3a.nano"
description:"mapui"
label:"DynamicVM"
name:"g1"
rootDiskSize:"default"
rootDiskType:"default"
subGroupSize:"1"
responseData:Array[9]
0:Object
title:"Setting vNet:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:28.633814457+09:00"
1:Object
title:"Loading default vNet:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:28.633843641+09:00"
2:Object
title:"Setting SSHKey:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:31.233499204+09:00"
3:Object
title:"Loading default SSHKey:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:31.233537895+09:00"
4:Object
title:"Setting securityGroup:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:31.372117911+09:00"
5:Object
title:"Loading default securityGroup:ns01-systemdefault-aws-ap-northeast-2"
info:null
time:"2024-06-03T21:09:31.372163205+09:00"
6:Object
title:"Prepared resources for VM:g1"
info:Object
name:"g1"
subGroupSize:"1"
label:"DynamicVM"
description:"mapui"
connectionName:"aws-ap-northeast-2"
specId:"aws+ap-northeast-2+t3a.nano"
imageId:"aws+ap-northeast-2+ubuntu22.04"
vNetId:"ns01-systemdefault-aws-ap-northeast-2"
subnetId:"ns01-systemdefault-aws-ap-northeast-2"
securityGroupIds:Array[1]
0:"ns01-systemdefault-aws-ap-northeast-2"
sshKeyId:"ns01-systemdefault-aws-ap-northeast-2"
rootDiskType:"default"
rootDiskSize:"default"
dataDiskIds:null
time:"2024-06-03T21:09:32.352800274+09:00"
7:Object
title:"Prepared all resources for provisioning MCIS:mc-80l1m"
info:Object
name:"mc-80l1m"
installMonAgent:"no"
label:"cb-mapui"
systemLabel:""
description:"Made via cb-mapui"
vm:Array[1]
0:Object
name:"g1"
subGroupSize:"1"
label:"DynamicVM"
description:"mapui"
connectionName:"aws-ap-northeast-2"
specId:"aws+ap-northeast-2+t3a.nano"
imageId:"aws+ap-northeast-2+ubuntu22.04"
vNetId:"ns01-systemdefault-aws-ap-northeast-2"
subnetId:"ns01-systemdefault-aws-ap-northeast-2"
securityGroupIds:Array[1]
0:"ns01-systemdefault-aws-ap-northeast-2"
sshKeyId:"ns01-systemdefault-aws-ap-northeast-2"
rootDiskType:"default"
rootDiskSize:"default"
dataDiskIds:null
time:"2024-06-03T21:09:32.353489636+09:00"
8:Object
title:"Start provisioning"
info:null
time:"2024-06-03T21:09:32.353501559+09:00"
errorResponse:""

@seokho-son
Copy link
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Jun 3, 2024
@cb-github-robot cb-github-robot merged commit 674f013 into cloud-barista:main Jun 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This PR is approved and will be merged soon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants