-
Notifications
You must be signed in to change notification settings - Fork 51
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
Update image and spec managed by tb (fix #958) #1111
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
의견을 남겨 보았습니다. 😊
ALIBABA,alibaba-cn-wulanchabu,ubuntu_18_04_x64_20G_alibase_20211027.vhd,Ubuntu 18.04 | ||
ALIBABA,alibaba-cn-guangzhou,ubuntu_18_04_x64_20G_alibase_20211027.vhd,Ubuntu 18.04 | ||
OPENSTACK,openstack-region01,ubuntu-18.04,Ubuntu 18.04 | ||
GCP,gcp-asia-east1,https://www.googleapis.com/compute/v1/projects/gce-uefi-images/global/images/ubuntu-1804-bionic-v20200317,Ubuntu 18.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jihoon-seo 혹시 어떤 차이가 있는지 아시나요~? 변경하면 일단 몇 개 테스트해봐야할 것 같습니다. (spider에서도 특정 이미지로만 ssh 키 사용자 생성, 접속 여부 확인 등을 진행하고 계셔서)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/src/testclient/scripts/misc$ gcloud compute images list | grep ubuntu
ubuntu-1804-bionic-v20220505 ubuntu-os-cloud ubuntu-1804-lts READY
ubuntu-pro-1604-xenial-v20211213 ubuntu-os-pro-cloud ubuntu-pro-1604-lts READY
ubuntu-pro-1804-bionic-v20220510 ubuntu-os-pro-cloud ubuntu-pro-1804-lts READY
ubuntu-pro-2004-focal-v20220426 ubuntu-os-pro-cloud ubuntu-pro-2004-lts READY
ubuntu-pro-2204-jammy-v20220506 ubuntu-os-pro-cloud ubuntu-pro-2204-lts READY
ubuntu-pro-fips-1804-bionic-v20220411a ubuntu-os-pro-cloud ubuntu-pro-fips-1804-lts READY
ubuntu-pro-fips-2004-focal-v20220411b ubuntu-os-pro-cloud ubuntu-pro-fips-2004-lts READY
ubuntu-2004-focal-v20220419 ubuntu-os-cloud ubuntu-2004-lts READY
ubuntu-2110-impish-v20220505 ubuntu-os-cloud ubuntu-2110 READY
ubuntu-2204-jammy-v20220506 ubuntu-os-cloud ubuntu-2204-lts READY
ubuntu-minimal-1804-bionic-v20220511 ubuntu-os-cloud ubuntu-minimal-1804-lts READY
ubuntu-minimal-2004-focal-v20220419a ubuntu-os-cloud ubuntu-minimal-2004-lts READY
ubuntu-minimal-2110-impish-v20220505 ubuntu-os-cloud ubuntu-minimal-2110 READY
ubuntu-minimal-2204-jammy-v20220506a ubuntu-os-cloud ubuntu-minimal-2204-lts READY
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
훔.. 알리바바와 같이 예전 버전의 image가 deprecate 되어 사용 불가하게 되는 경우도 방지하고
가급적 최신 버전의 이미지를 사용하는 취지였는데
말씀하신 대로 이미지 버전별로 ssh 키 사용자 생성, 접속 가능 여부 등의 이슈도 있네요.. 🤔
UEFI 여부 관련해서는.. non-UEFI 가 좀 더 compatible 할 것 같기는 한데
어차피 Google이 이미지도 관리하고 GCP services도 관리하니까
UEFI 이미지도 별 문제 없을 것 같기는 합니다 😊
→ 가끔 이런 에러가 발생하기도 하나 보네요 (시간 지나서 다시 확인해 보니 문제가 없어졌다고 함)
https://serverfault.com/questions/911926/gcp-invalid-resource-usage-uefi-feature-is-not-available-for-this-project
→ 인스턴스의 UEFI 여부와 boot disk의 UEFI 여부가 안 맞으면 에러가 발생한다고 합니다.
https://stackoverflow.com/questions/62036923/error-uefi-setting-must-be-the-same-for-the-instance-and-the-boot-disk-while-e
이런 측면을 보면 non-UEFI 가 좀 더 나을 것 같기도 하구요..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- projects/ubuntu-os-cloud/global/images/ubuntu-minimal-1804-bionic-v20220511
- projects/ubuntu-os-cloud/global/images/ubuntu-1804-bionic-v20220505
golang 코드를 통해 ssh 를 하면 [ERROR: ssh: must specify HostKeyCallback] 오류 발생
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그렇다면 원래 제안하신 대로 하는 것이 좋겠네용.. ㅎㅎㅎ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GCP,gcp-asia-south1,https://www.googleapis.com/compute/v1/projects/gce-uefi-images/global/images/ubuntu-1804-bionic-v20200317,Ubuntu 18.04 | ||
GCP,gcp-asia-southeast2,https://www.googleapis.com/compute/v1/projects/gce-uefi-images/global/images/ubuntu-1804-bionic-v20200317,Ubuntu 18.04 | ||
GCP,gcp-europe-central2,https://www.googleapis.com/compute/v1/projects/gce-uefi-images/global/images/ubuntu-1804-bionic-v20200317,Ubuntu 18.04 | ||
ALIBABA,alibaba-ap-northeast-1,ubuntu_18_04_x64_20G_alibase_20220322.vhd,Ubuntu 18.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/testclient/scripts/conf.env
와 동일하게
ubuntu_18_04_x64_20G_alibase_20220428.vhd
로 하는 것이 좋을까요? 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jihoon-seo 알리바바는 리전에 따라서 제공하는 Image가 다르네요. (최신 버전에 대한 적용 시점과 예전 버전 삭제 시점이 다른 듯합니다.)
그래서 최신으로 알려진 20220428.vhd 로 변경하면, 오류가 발생해서 몇몇 리전은 다소 구버전인(20220322.vhd)로 돌렸던 것 같습니당.
src/testclient/scripts/conf.env
Outdated
@@ -586,12 +586,12 @@ SPEC_NAME[$IX,$IY]=${CommonSpec[$IX]} | |||
# region18 | |||
IY=$AlibabaCnHangzhou | |||
# Location: China (Hangzhou) [zone:h] - NEED TO CHECK NETWORK OUTBOUND | |||
RegionLocation[$IX,$IY]="China (HohHangzhouhot) [zone:h]" | |||
RegionLocation[$IX,$IY]="China (HohHangzhouhot) [zone:g]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RegionLocation[$IX,$IY]="China (HohHangzhouhot) [zone:g]" | |
RegionLocation[$IX,$IY]="China (Hangzhou) [zone:g]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감사합니다! 업데이트 하였습니다.
참고로,
assets/cloudconnection.csv 정보의 소스는 src/testclient/scripts/conf.env 이며,
src/testclient/scripts/misc/gen-csv-conn-config.sh 를 실행하면,
src/testclient/scripts/conf.env 의 내용을 assets/cloudconnection.csv CSV 형태로 변환하여 파일을 생성해줍니다.
@@ -678,7 +678,7 @@ IY=0 | |||
ProviderName[$IX]=GCP | |||
DriverLibFileName[$IX]=gcp-driver-v1.0.so | |||
DriverName[$IX]=gcp-driver01 | |||
CommonImageUbuntu1804[$IX]="https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-minimal-1804-bionic-v20191024" | |||
CommonImageUbuntu1804[$IX]="https://www.googleapis.com/compute/v1/projects/gce-uefi-images/global/images/ubuntu-1804-bionic-v20200317" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assets/cloudimage.csv
의 GCP 이미지를 업데이트 한다면
여기도 업데이트 할 수도 있겠습니다. 😊
fix #958
result