From aa439fba5129e01b148e04ec7d92c00548db4c9c Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Tue, 13 Feb 2024 19:46:43 +0900 Subject: [PATCH 1/4] Support CSPs in Korea --- assets/cloudconnection.csv | 19 ++-- assets/cloudimage.csv | 21 ++--- assets/cloudlocation.csv | 52 +++++------ assets/cloudspec.csv | 11 +-- scripts/initMultiCloudEnv.sh | 36 +++++++- scripts/runSpider.sh | 2 +- src/core/common/utility.go | 4 +- src/core/mcir/common.go | 18 ++-- src/testclient/scripts/3.vNet/create-vNet.sh | 6 +- src/testclient/scripts/conf.env | 92 +++++++++++++------- src/testclient/scripts/testSet.env | 16 +++- 11 files changed, 182 insertions(+), 95 deletions(-) diff --git a/assets/cloudconnection.csv b/assets/cloudconnection.csv index 18f3254a8..5e1991111 100644 --- a/assets/cloudconnection.csv +++ b/assets/cloudconnection.csv @@ -139,13 +139,12 @@ TENCENT,tencent-ap-beijing,tencent-ap-beijing,ap-beijing,Beijing,tencent-driver- TENCENT,tencent-ap-chengdu,tencent-ap-chengdu,ap-chengdu,Chengdu,tencent-driver-v1.0.so,tencent-driver01 TENCENT,tencent-ap-chongqing,tencent-ap-chongqing,ap-chongqing,Chongqing,tencent-driver-v1.0.so,tencent-driver01 TENCENT,tencent-ap-hongkong,tencent-ap-hongkong,ap-hongkong,HongKong,tencent-driver-v1.0.so,tencent-driver01 -KTCLOUD,kt-kr-central-a,kt-kr-central-a,KOR-Cheonan,Cheon-an - South Korea,ktcloud-driver-v1.0.so,ktcloud-driver01 -KTCLOUD,kt-kr-central-b,kt-kr-central-b,KOR-Cheonan,Cheon-an - South Korea,ktcloud-driver-v1.0.so,ktcloud-driver01 -KTCLOUD,kt-kr-seoul-m,kt-kr-seoul-m,KOR-Seoul,Seoul - South Korea,ktcloud-driver-v1.0.so,ktcloud-driver01 -KTCLOUD,kt-kr-seoul-m2,kt-kr-seoul-m2,KOR-Seoul,Seoul - South Korea,ktcloud-driver-v1.0.so,ktcloud-driver01 -KTCLOUD,kt-us-west,kt-us-west,US,LA - US,ktcloud-driver-v1.0.so,ktcloud-driver01 -KTCLOUD,kt-kr-kimhae,kt-kr-kimhae,KOR-Kimhae,Kimhae - South Korea,ktcloud-driver-v1.0.so,ktcloud-driver01 -IBM,ibm-us-south,ibm-us-south,us-south,Dallas (US South),ibm-driver-v1.0.so,ibmvpc-driver01 +KTCLOUD,kt-kr-central-a,kt-kr-central-a,kr-central-a,Cheon-an - South Korea,ktcloud-driver-v1.0.so,ktcloud-driver01 +KTCLOUD,kt-kr-central-b,kt-kr-central-b,kr-central-b,Cheon-an - South Korea,ktcloud-driver-v1.0.so,ktcloud-driver01 +KTCLOUD,kt-kr-seoul-m,kt-kr-seoul-m,kr-seoul-m,Seoul - South Korea,ktcloud-driver-v1.0.so,ktcloud-driver01 +KTCLOUD,kt-kr-seoul-m2,kt-kr-seoul-m2,kr-seoul-m2,Seoul - South Korea,ktcloud-driver-v1.0.so,ktcloud-driver01 +KTCLOUD,kt-kr-kimhae,kt-kr-kimhae,kr-kimhae,Kimhae - South Korea,ktcloud-driver-v1.0.so,ktcloud-driver01 +KTCLOUDVPC,ktvpc-kr-dx-m1,ktvpc-kr-dx-m1,kr-dx-m1,Seoul - South Korea,ktcloudvpc-driver-v1.0.so,ktcloudvpc-driver01 IBM,ibm-br-sao,ibm-br-sao,br-sao,Sao Paulo (Brazil),ibm-driver-v1.0.so,ibmvpc-driver01 IBM,ibm-ca-tor,ibm-ca-tor,ca-tor,Toronto (Canada),ibm-driver-v1.0.so,ibmvpc-driver01 IBM,ibm-us-east,ibm-us-east,us-east,Washington DC (US East),ibm-driver-v1.0.so,ibmvpc-driver01 @@ -154,8 +153,8 @@ IBM,ibm-eu-gb,ibm-eu-gb,eu-gb,London (United Kingdom),ibm-driver-v1.0.so,ibmvpc- IBM,ibm-jp-osa,ibm-jp-osa,jp-osa,Osaka (Japan),ibm-driver-v1.0.so,ibmvpc-driver01 IBM,ibm-au-syd,ibm-au-syd,au-syd,Sydney (Australia),ibm-driver-v1.0.so,ibmvpc-driver01 IBM,ibm-jp-tok,ibm-jp-tok,jp-tok,Tokyo (Japan),ibm-driver-v1.0.so,ibmvpc-driver01 -NHNCLOUD,nhncloud-kr-pangyo,nhncloud-kr-pangyo,KR1,South Korea (Pangyo),nhncloud-driver-v1.0.so,nhncloud-driver01 -NHNCLOUD,nhncloud-kr-pyeongchon,nhncloud-kr-pyeongchon,KR2,South Korea (Pyeongchon),nhncloud-driver-v1.0.so,nhncloud-driver01 -NHNCLOUD,nhncloud-jp-tokyo,nhncloud-jp-tokyo,JP1,Japan (Tokyo),nhncloud-driver-v1.0.so,nhncloud-driver01 +NHNCLOUD,nhncloud-kr-pangyo1,nhncloud-kr-pangyo,KR1,South Korea (Pangyo),nhncloud-driver-v1.0.so,nhncloud-driver01 +NHNCLOUD,nhncloud-kr-pyeongchon1,nhncloud-kr-pyeongchon,KR2,South Korea (Pyeongchon),nhncloud-driver-v1.0.so,nhncloud-driver01 +NHNCLOUD,nhncloud-jp-tokyo1,nhncloud-jp-tokyo,JP1,Japan (Tokyo),nhncloud-driver-v1.0.so,nhncloud-driver01 CLOUDTWIN,cloudtwin-region01,cloudtwin-region01,default,Korea Daejeon (Internal),cloudtwin-driver-v1.0.so,cloudtwin-driver01 MOCK,mock-seoul,mock-seoul,default,Korea Seoul (Virtual),mock-driver-v1.0.so,mock-driver01 diff --git a/assets/cloudimage.csv b/assets/cloudimage.csv index 4a5f90463..8cad93984 100644 --- a/assets/cloudimage.csv +++ b/assets/cloudimage.csv @@ -437,6 +437,7 @@ NCP,ncp-singapore,SPSW0LINUX000130,Ubuntu 18.04 NCP,ncp-japan,SPSW0LINUX000130,Ubuntu 18.04 NCPVPC,ncpvpc-kr-1,SW.VSVR.OS.LNX64.UBNTU.SVR1804.B050,Ubuntu 18.04 NCPVPC,ncpvpc-sgn-4,SW.VSVR.OS.LNX64.UBNTU.SVR1804.B050,Ubuntu 18.04 +NCPVPC,ncpvpc-jpn-4,SW.VSVR.OS.LNX64.UBNTU.SVR1804.B050,Ubuntu 18.04 CLOUDIT,cloudit-region01,ee441331-0872-49c3-886c-1873a6e32e09,Ubuntu 18.04 CLOUDIT,cloudit-region01,b765d58f-507a-4b2d-8ff7-115714fdbf2d,Debian 10 CLOUDIT,cloudit-region01,14e7d45f-8ff7-4ba9-84e9-924552b4e202,Windows Server 2012 R2 @@ -460,12 +461,12 @@ TENCENT,tencent-ap-chengdu,img-pi0ii46r,Ubuntu 18.04 TENCENT,tencent-ap-chongqing,img-pi0ii46r,Ubuntu 18.04 TENCENT,tencent-ap-hongkong,img-pi0ii46r,Ubuntu 18.04 TENCENT,tencent-ap-hongkong,img-2tddq003,Windows Server 2012 R2 -KTCLOUD,kt-kr-central-a,45e20478-6c24-4c32-a5e5-2ba2d464a8d1,Ubuntu 18.04 -KTCLOUD,kt-kr-central-b,45e20478-6c24-4c32-a5e5-2ba2d464a8d1,Ubuntu 18.04 -KTCLOUD,kt-kr-seoul-m,45e20478-6c24-4c32-a5e5-2ba2d464a8d1,Ubuntu 18.04 -KTCLOUD,kt-kr-seoul-m2,63de6d04-7f1b-4924-8e95-1acd6581ca0c,Ubuntu 18.04 -KTCLOUD,kt-us-west,45e20478-6c24-4c32-a5e5-2ba2d464a8d1,Ubuntu 18.04 -KTCLOUD,kt-kr-kimhae,45e20478-6c24-4c32-a5e5-2ba2d464a8d1,Ubuntu 18.04 +KTCLOUD,kt-kr-central-a,87838094-af4f-449f-a2f4-f5b4b581eb29,Ubuntu 22.04 +KTCLOUD,kt-kr-central-b,45e20478-6c24-4c32-a5e5-2ba2d464a8d1,Ubuntu 22.04 +KTCLOUD,kt-kr-seoul-m,45e20478-6c24-4c32-a5e5-2ba2d464a8d1,Ubuntu 22.04 +KTCLOUD,kt-kr-seoul-m2,63de6d04-7f1b-4924-8e95-1acd6581ca0c,Ubuntu 22.04 +KTCLOUD,kt-kr-kimhae,45e20478-6c24-4c32-a5e5-2ba2d464a8d1,Ubuntu 22.04 +KTCLOUDVPC,ktvpc-kr-dx-m1,be9a35ed-5988-49d2-b86d-2ca9b375564b,Ubuntu 22.04 IBM,ibm-us-south,r006-9de77234-3189-42f8-982d-f2266477cfe0,Ubuntu 18.04 IBM,ibm-us-south,r006-b4d8d8d4-7768-4a1b-9434-9483ca821a0d,Windows Server 2012 R2 IBM,ibm-br-sao,r042-92d1cd12-f014-4b9a-abf8-c5ca6494a9e5,Ubuntu 18.04 @@ -477,8 +478,8 @@ IBM,ibm-jp-osa,r034-522c639c-52e1-4cab-8dfb-bc0fb9f6f577,Ubuntu 18.04 IBM,ibm-au-syd,r026-a8c25ce6-0ca1-43e9-9b41-411c6217b8b8,Ubuntu 18.04 IBM,ibm-au-syd,r026-3d2be426-8032-4215-a82b-d61075a49a1c,Debian 10 IBM,ibm-jp-tok,r022-61fdadec-6b03-4bd2-bfca-62cd16f5673f,Ubuntu 18.04 -NHNCLOUD,nhncloud-kr-pangyo,5396655e-166a-4875-80d2-ed8613aa054f,Ubuntu 18.04 -NHNCLOUD,nhncloud-kr-pyeongchon,71893505-923c-4982-b0eb-844eb520661c,Ubuntu 18.04 -NHNCLOUD,nhncloud-jp-tokyo,ca69fad9-92f3-4c9b-a6e4-7e8b0e4d3a58,Ubuntu 18.04 +NHNCLOUD,nhncloud-kr-pangyo1,68fb7e1a-191c-45bf-8328-b7864f9fbaf4,Ubuntu 22.04 +NHNCLOUD,nhncloud-kr-pyeongchon1,71893505-923c-4982-b0eb-844eb520661c,Ubuntu 22.04 +NHNCLOUD,nhncloud-jp-tokyo1,ca69fad9-92f3-4c9b-a6e4-7e8b0e4d3a58,Ubuntu 22.04 CLOUDTWIN,cloudtwin-region01,ubuntu18.04-sshd-systemd,Ubuntu 18.04 -MOCK,mock-seoul,mock-vmimage-01,Ubuntu 18.04 +MOCK,mock-seoul,mock-vmimage-01,Ubuntu 18.04 \ No newline at end of file diff --git a/assets/cloudlocation.csv b/assets/cloudlocation.csv index 254bce000..8e21eeb10 100644 --- a/assets/cloudlocation.csv +++ b/assets/cloudlocation.csv @@ -28,7 +28,7 @@ azure,koreasouth,Korea South,35.1796,129.0756 azure,francecentral,France Central,46.3772,2.3730 azure,francesouth,France South,43.8345,2.1972 azure,australiacentral,Australia Central,-35.3075,149.1244 -azure,australiacentral2,Australia Central 2,-35.3075,149.1244 +azure,australiacentral2,Australia Central 2,-35.3085,149.1254 azure,uaecentral,UAE Central,24.4667,54.3667 azure,uaenorth,UAE North,25.2667,55.3167 azure,southafricanorth,South Africa North,-25.7313,28.2184 @@ -40,7 +40,7 @@ azure,germanywestcentral,Germany West Central,50.1109,8.6821 azure,norwaywest,Norway West,58.9700,5.7331 azure,norwayeast,Norway East,59.9139,10.7522 aws,af-south-1,Africa (Cape Town),-33.9000,18.5000 -aws,ap-east-1,Asia Pacific (Hong Kong),22.2600,114.1800 +aws,ap-east-1,Asia Pacific (Hong Kong),22.2603,114.1803 aws,ap-northeast-1,Tokyo,35.4100,139.4200 aws,ap-northeast-2,Seoul,37.3600,126.7800 aws,ap-northeast-3,Asia Pacific (Osaka-Local),34.3800,131.7000 @@ -66,17 +66,17 @@ aws,us-gov-east-1,AWS GovCloud (US-East),37.0000,-81.0000 aws,us-gov-west-1,AWS GovCloud (US),40.0000,-120.0000 gcp,asia-east1,Changhua County Taiwan,24.0756,120.5451 gcp,asia-east2,Hong Kong,22.3964,114.1095 -gcp,asia-northeast1,Tokyo Japan,35.6895,139.6917 +gcp,asia-northeast1,Tokyo Japan,35.6896,139.6917 gcp,asia-northeast2,Osaka Japan,34.6937,135.5022 gcp,asia-northeast3,Seoul South Korea,37.2000,127.0000 gcp,asia-south1,Mumbai India,19.0761,72.8774 -gcp,asia-southeast1,Jurong West Singapore,1.3400,103.7041 -gcp,asia-southeast2,Jakarta Indonesia,-6.2000,106.8160 +gcp,asia-southeast1,Jurong West Singapore,1.3409,103.7041 +gcp,asia-southeast2,Jakarta Indonesia,-6.2010,106.8160 gcp,australia-southeast1,Sydney Australia,-33.8651,151.2099 gcp,europe-north1,Hamina Finland,60.5700,27.2000 gcp,europe-west1,St. Ghislain Belgium,50.4482,3.8189 gcp,europe-west2,London England UK,51.5099,-0.1181 -gcp,europe-west3,Frankfurt Germany,50.1109,8.6821 +gcp,europe-west3,Frankfurt Germany,50.1109,8.6831 gcp,europe-west4,Eemshaven Netherlands,53.4423,6.8253 gcp,europe-west6,Zurich Switzerland,47.3667,8.5500 gcp,europe-central2,Warsaw Poland,52.237049,21.017532 @@ -104,7 +104,7 @@ alibaba,cn-guangzhou,China (Guangzhou),23.1292,113.3288 alibaba,ap-southeast-1,Singapore,1.3500,103.2000 alibaba,ap-southeast-2,Australia (Sydney),-33.1651,151.8099 alibaba,ap-southeast-3,Malaysia (Kuala Lumpur),3.1408,101.6932 -alibaba,ap-southeast-5,Indonesia (Jakarta),-6.2000,106.8160 +alibaba,ap-southeast-5,Indonesia (Jakarta),-6.2050,106.8160 alibaba,ap-south-1,India (Mumbai),19.1761,72.1774 alibaba,ap-northeast-1,Japan (Tokyo),34.6895,139.9917 alibaba,us-west-1,US (Silicon Valley),37.3700,-122.0400 @@ -112,16 +112,16 @@ alibaba,us-east-1,US (Virginia),39.1300,-78.0000 alibaba,eu-central-1,Germany (Frankfurt),50.4000,8.7000 alibaba,eu-west-1,UK (London),51.8000,-0.2000 alibaba,me-east-1,UAE (Dubai),25.2770,55.2962 -alibaba,ap-northeast-2,South Korea (Seoul),37.3600,126.7800 +alibaba,ap-northeast-2,South Korea (Seoul),37.3640,126.7800 cloudit,default,South Korea (Seoul),37.2665,126.7780 -ncp,kr,South Korea (Seoul),37.4767,126.8841 -ncp,hk,Hong Kong,22.3964,114.1095 -ncp,sgn,Singapore,1.3400,103.7041 -ncp,jpn,Japan,35.6895,139.6917 -ncp,uswn,US Western,37.3500,-121.9600 -ncp,den,Germany,50.1109,8.6821 +ncp,kr,South Korea (Seoul),37.4754,126.8831 +ncp,hk,Hong Kong,22.3954,114.1295 +ncp,sgn,Singapore,1.3402,103.7041 +ncp,jpn,Japan,35.6893,139.6917 +ncp,uswn,US Western,37.3510,-121.9630 +ncp,den,Germany,50.1108,8.6821 ncpvpc,kr,South Korea (Seoul),37.4667,126.8741 -ncpvpc,sgn,Singapore,1.3410,103.7141 +ncpvpc,sgn,Singapore,1.3410,103.7151 openstack,regionone,South Korea (Daejeon),36.3804,127.3650 tencent,ap-singapore,Southeast Asia (Singapore),1.352083,103.819839 tencent,ap-jakarta,Southeast Asia (Jakarta),-6.175110,106.865036 @@ -140,23 +140,25 @@ tencent,ap-nanjing,East China (Nanjing),32.060255,118.796877 tencent,ap-beijing,North China (Beijing),39.9042,116.407396 tencent,ap-chengdu,Southwest China (Chengdu),30.572815,104.066801 tencent,ap-chongqing,Southwest China (Chongqing),29.431586,106.912251 -tencent,ap-hongkong,Hong Kong,22.396428,114.109497 -ktcloud,kor-cheonan,Cheon-an - South Korea,36.812583,127.107005 -ktcloud,kor-seoul,Seoul - South Korea,37.566535,126.977969 -ktcloud,kor-kimhae,Kimhae - South Korea,35.228545,128.889352 -ktcloud,us,LA - US,34.052234,-118.243685 +tencent,ap-hongkong,Hong Kong,22.396228,114.108497 +ktcloud,kr-central-a,Cheon-an A - South Korea,36.812483,127.107005 +ktcloud,kr-central-b,Cheon-an B - South Korea,36.832583,127.157205 +ktcloud,kr-seoul-m,Seoul M- South Korea,37.566535,126.977969 +ktcloud,kr-seoul-m2,Seoul M2 - South Korea,37.466535,126.877969 +ktcloud,kr-kimhae,Kimhae - South Korea,35.228545,128.889352 +ktcloudvpc,us,LA - US,34.054234,-118.243685 ibm,us-south,Dallas (US South),32.776664,-96.796988 ibm,br-sao,Sao Paulo (Brazil),-23.55052,-46.633309 -ibm,ca-tor,Toronto (Canada),43.653226,-79.383184 +ibm,ca-tor,Toronto (Canada),43.655226,-79.383184 ibm,us-east,Washington DC (US East),38.907192,-77.036871 -ibm,eu-de,Frankfurt (Germany),50.110922,8.682127 +ibm,eu-de,Frankfurt (Germany),50.110722,8.682127 ibm,eu-gb,London (United Kingdom),51.507351,-0.127758 ibm,jp-osa,Osaka (Japan),34.693738,135.502165 ibm,au-syd,Sydney (Australia),-33.86882,151.209296 -ibm,jp-tok,Tokyo (Japan),35.689488,139.691706 +ibm,jp-tok,Tokyo (Japan),35.689588,139.691706 nhncloud,kr1,South Korea (Pangyo),37.390889,127.096792 nhncloud,kr2,South Korea (Pyeongchon),37.392584,126.95145 -nhncloud,jp1,Japan (Tokyo),35.4100,139.4200 -cloudtwin,default,South Korea (Daejeon),36.3804,127.3650 +nhncloud,jp1,Japan (Tokyo),35.4120,139.4230 +cloudtwin,default,South Korea (Daejeon),36.3806,127.3650 mock,default,South Korea (Seoul),37.0000,126.0000 ufc,ufc,South Korea (Seoul),37.4767,126.8841 diff --git a/assets/cloudspec.csv b/assets/cloudspec.csv index d1802d6b9..04982381f 100644 --- a/assets/cloudspec.csv +++ b/assets/cloudspec.csv @@ -902,12 +902,13 @@ NCP,ncp-singapore,ncp-singapore,SPSVRSTAND000073,,,,,,,,,,,,default,default NCP,ncp-japan,ncp-japan,SPSVRSTAND000073,,,,,,,,,,,,default,default NCPVPC,ncpvpc-kr-1,ncpvpc-kr-1,SVR.VSVR.HICPU.C002.M004.NET.SSD.B050.G002,,,,,,,,,,,,default,default NCPVPC,ncpvpc-sgn-4,ncpvpc-sgn-4,SVR.VSVR.HICPU.C002.M004.NET.SSD.B050.G002,,,,,,,,,,,,default,default -NHNCLOUD,nhncloud-kr-pangyo,nhncloud-kr-pangyo,m2.c4m8,,,,,,,,,,,,default,default -NHNCLOUD,nhncloud-kr-pyeongchon,nhncloud-kr-pyeongchon,m2.c4m8,,,,,,,,,,,,default,default -NHNCLOUD,nhncloud-jp-tokyo,nhncloud-jp-tokyo,m2.c4m8,,,,,,,,,,,,default,default -KTCLOUD,kt-kr-central-a,kt-kr-central-a,385df834-6cf7-485b-bca8-de4d4f59b0b0,,,,,,,,,,,,default,default +NCPVPC,ncpvpc-jpn-4,ncpvpc-jpn-4,SVR.VSVR.HICPU.C002.M004.NET.SSD.B050.G002,,,,,,,,,,,,default,default +NHNCLOUD,nhncloud-kr-pangyo1,nhncloud-kr-pangyo1,m2.c4m8,,,,,,,,,,,,default,default +NHNCLOUD,nhncloud-kr-pyeongchon1,nhncloud-kr-pyeongchon1,m2.c4m8,,,,,,,,,,,,default,default +NHNCLOUD,nhncloud-jp-tokyo1,nhncloud-jp-tokyo1,m2.c4m8,,,,,,,,,,,,default,default +KTCLOUD,kt-kr-central-a,kt-kr-central-a,d3530ad2-462b-43ad-97d5-e1087b952b7d!_disk20GB,,,,,,,,,,,,default,default KTCLOUD,kt-kr-central-b,kt-kr-central-b,385df834-6cf7-485b-bca8-de4d4f59b0b0,,,,,,,,,,,,default,default KTCLOUD,kt-kr-seoul-m,kt-kr-seoul-m,385df834-6cf7-485b-bca8-de4d4f59b0b0,,,,,,,,,,,,default,default KTCLOUD,kt-kr-seoul-m2,kt-kr-seoul-m2,753c80b0-b03f-4a91-98a7-6b11233f85a8,,,,,,,,,,,,default,default -KTCLOUD,kt-us-west,kt-us-west,385df834-6cf7-485b-bca8-de4d4f59b0b0,,,,,,,,,,,,default,default KTCLOUD,kt-kr-kimhae,kt-kr-kimhae,385df834-6cf7-485b-bca8-de4d4f59b0b0,,,,,,,,,,,,default,default +KTCLOUDVPC,ktvpc-kr-dx-m1,ktvpc-kr-dx-m1,4x16.itl,,,,,,,,,,,,default,default \ No newline at end of file diff --git a/scripts/initMultiCloudEnv.sh b/scripts/initMultiCloudEnv.sh index 8023fb169..9b072b3eb 100755 --- a/scripts/initMultiCloudEnv.sh +++ b/scripts/initMultiCloudEnv.sh @@ -30,4 +30,38 @@ while true; do esac done -$CBTUMBLEBUG_ROOT/src/testclient/scripts/2.configureTumblebug/load-common-resource.sh -n tb +# Execute the load-common-resource script and capture its output +output=$($CBTUMBLEBUG_ROOT/src/testclient/scripts/2.configureTumblebug/load-common-resource.sh -n tb) + +# Initialize counters +successImageCount=0 +failedImageCount=0 +successSpecCount=0 +failedSpecCount=0 + +# Count successes and failures for images and specs +while IFS= read -r line; do + if [[ $line == *"image:"* ]]; then + if [[ $line == *"[Failed]"* ]]; then + ((failedImageCount++)) + else + ((successImageCount++)) + fi + elif [[ $line == *"spec:"* ]]; then + if [[ $line == *"[Failed]"* ]]; then + ((failedSpecCount++)) + else + ((successSpecCount++)) + fi + fi +done <<< "$output" + +# Optionally, display failed items +echo "Failed items:" +echo "$output" | grep "\[Failed\]" | while read line; do + echo $line | awk -F" " '{printf "%-50s %-10s\n", $1, $2}' +done + +# Display the counts +echo "- Image Success count: $successImageCount (Failed count: $failedImageCount)" +echo "- Spec Success count: $successSpecCount (Failed count: $failedSpecCount)" \ No newline at end of file diff --git a/scripts/runSpider.sh b/scripts/runSpider.sh index b99e5d52b..b18c3cca9 100755 --- a/scripts/runSpider.sh +++ b/scripts/runSpider.sh @@ -1,7 +1,7 @@ #!/bin/bash CONTAINER_NAME_READ="CB-Spider" -CONTAINER_VERSION="0.8.2" +CONTAINER_VERSION="0.8.4" CONTAINER_PORT="-p 1024:1024 -p 2048:2048" CONTAINER_DATA_PATH="/root/go/src/github.com/cloud-barista/cb-spider/meta_db" diff --git a/src/core/common/utility.go b/src/core/common/utility.go index a2d83a976..8f1f3dbc3 100644 --- a/src/core/common/utility.go +++ b/src/core/common/utility.go @@ -332,6 +332,8 @@ type GeoLocation struct { // GetCloudLocation is to get location of clouds (need error handling) func GetCloudLocation(cloudType string, nativeRegion string) GeoLocation { + cloudType = strings.ToLower(cloudType) + nativeRegion = strings.ToLower(nativeRegion) location := GeoLocation{} @@ -577,7 +579,7 @@ func GetNativeRegion(connectionName string) (string, error) { } } - return nativeRegionName, nil + return strings.ToLower(nativeRegionName), nil } diff --git a/src/core/mcir/common.go b/src/core/mcir/common.go index 54e6b0db3..c67f016da 100644 --- a/src/core/mcir/common.go +++ b/src/core/mcir/common.go @@ -21,6 +21,7 @@ import ( "errors" "fmt" "os" + "regexp" "sort" "strconv" "strings" @@ -1841,14 +1842,19 @@ func DelAllDefaultResources(nsId string) (common.IdList, error) { return output, nil } -// ToNamingRuleCompatible func is a tool to replace string for name to make the name follow naming convention +// ToNamingRuleCompatible function transforms a given string to match the regex pattern [a-z]([-a-z0-9]*[a-z0-9])?. func ToNamingRuleCompatible(rawName string) string { - rawName = strings.ReplaceAll(rawName, " ", "-") - rawName = strings.ReplaceAll(rawName, ".", "-") - rawName = strings.ReplaceAll(rawName, "_", "-") - rawName = strings.ReplaceAll(rawName, ":", "-") - rawName = strings.ReplaceAll(rawName, "/", "-") + // Convert all uppercase letters to lowercase rawName = strings.ToLower(rawName) + + // Replace all non-alphanumeric characters with '-' + nonAlphanumericRegex := regexp.MustCompile(`[^a-z0-9]+`) + rawName = nonAlphanumericRegex.ReplaceAllString(rawName, "-") + + // Remove leading and trailing '-' from the result string + trimLeadingTrailingDashRegex := regexp.MustCompile(`^-+|-+$`) + rawName = trimLeadingTrailingDashRegex.ReplaceAllString(rawName, "") + return rawName } diff --git a/src/testclient/scripts/3.vNet/create-vNet.sh b/src/testclient/scripts/3.vNet/create-vNet.sh index 036705699..b1ec89869 100755 --- a/src/testclient/scripts/3.vNet/create-vNet.sh +++ b/src/testclient/scripts/3.vNet/create-vNet.sh @@ -11,9 +11,9 @@ function CallTB() { IPv4CIDR01="10.${CIDRDiff}.0.0/18" IPv4CIDR02="10.${CIDRDiff}.64.0/18" - CidrBlock="10.1.0.0/16" # test for ncp - IPv4CIDR01="10.1.0.0/18" - IPv4CIDR02="10.1.64.0/18" + # CidrBlock="10.1.0.0/16" # for a temporal test for a limited CSP. + # IPv4CIDR01="10.1.0.0/18" + # IPv4CIDR02="10.1.64.0/18" resp=$( curl -H "${AUTH}" -sX POST http://$TumblebugServer/tumblebug/ns/$NSID/resources/vNet -H 'Content-Type: application/json' -d @- < Date: Wed, 14 Feb 2024 11:06:47 +0900 Subject: [PATCH 2/4] Double quote to prevent globbing and word splitting --- scripts/initMultiCloudEnv.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/initMultiCloudEnv.sh b/scripts/initMultiCloudEnv.sh index 9b072b3eb..77d5cfec7 100755 --- a/scripts/initMultiCloudEnv.sh +++ b/scripts/initMultiCloudEnv.sh @@ -31,7 +31,7 @@ while true; do done # Execute the load-common-resource script and capture its output -output=$($CBTUMBLEBUG_ROOT/src/testclient/scripts/2.configureTumblebug/load-common-resource.sh -n tb) +output="$($CBTUMBLEBUG_ROOT/src/testclient/scripts/2.configureTumblebug/load-common-resource.sh -n tb)" # Initialize counters successImageCount=0 @@ -59,9 +59,10 @@ done <<< "$output" # Optionally, display failed items echo "Failed items:" echo "$output" | grep "\[Failed\]" | while read line; do - echo $line | awk -F" " '{printf "%-50s %-10s\n", $1, $2}' + echo "$line" | awk -F" " '{printf "%-50s %-10s\n", $1, $2}' done # Display the counts +echo "" echo "- Image Success count: $successImageCount (Failed count: $failedImageCount)" echo "- Spec Success count: $successSpecCount (Failed count: $failedSpecCount)" \ No newline at end of file From 81cea54c0560803e2d5566b69f3c5f431ce762af Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Wed, 14 Feb 2024 11:14:06 +0900 Subject: [PATCH 3/4] Double quote in additional --- scripts/initMultiCloudEnv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/initMultiCloudEnv.sh b/scripts/initMultiCloudEnv.sh index 77d5cfec7..cd263e7ee 100755 --- a/scripts/initMultiCloudEnv.sh +++ b/scripts/initMultiCloudEnv.sh @@ -31,7 +31,7 @@ while true; do done # Execute the load-common-resource script and capture its output -output="$($CBTUMBLEBUG_ROOT/src/testclient/scripts/2.configureTumblebug/load-common-resource.sh -n tb)" +output="$("$CBTUMBLEBUG_ROOT"/src/testclient/scripts/2.configureTumblebug/load-common-resource.sh -n tb)" # Initialize counters successImageCount=0 From fd8ec07a6015124481ecb2b414ba33cbf56dd035 Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Wed, 14 Feb 2024 11:33:21 +0900 Subject: [PATCH 4/4] Update credentials template --- conf/template.credentials.conf | 282 +++++++++++++++++---------------- 1 file changed, 143 insertions(+), 139 deletions(-) diff --git a/conf/template.credentials.conf b/conf/template.credentials.conf index 8e0db74ad..ea899f5a4 100644 --- a/conf/template.credentials.conf +++ b/conf/template.credentials.conf @@ -1,137 +1,165 @@ ### Cloud API Credentials - - ## AWS CredentialName[$IndexAWS]=aws-credential01 - CredentialKey01[$IndexAWS]=ClientId -#Fill in {{YOUR-AWS-Credentidal-ID}} Ex:SFLEKJEFLJIEIVJOLJSEOIV -CredentialVal01[$IndexAWS]= #{{YOURS}} - +CredentialVal01[$IndexAWS]= +#xxxxxxxxxxxxxxxxxxxxx CredentialKey02[$IndexAWS]=ClientSecret -#Fill in {{YOUR-AWS-Credentidal-Secret}} Ex:fsfdlkfjselSDfjlejklsj/LFJSDLKfjleJKLDJ0 -CredentialVal02[$IndexAWS]= #{{YOURS}} +CredentialVal02[$IndexAWS]= +#fsfdlkfjselSDfjlejklsj/LFJSDLKfjleJKLDJ0 -## Alibaba -CredentialName[$IndexAlibaba]=alibaba-credential01 +## Azure +CredentialName[$IndexAzure]=azure-credential01 +CredentialKey01[$IndexAzure]=ClientId +CredentialVal01[$IndexAzure]= +#2157868b-4c35-4bak-a23c-ckf05a54a824 -CredentialKey01[$IndexAlibaba]=ClientId -#Fill in {{YOUR-ALIBABA-Credentidal-ClientId}} Ex: LTAxxxxxxxxxxxxxxxx -CredentialVal01[$IndexAlibaba]= #{{YOURS}} +CredentialKey02[$IndexAzure]=ClientSecret +CredentialVal02[$IndexAzure]= +#2157868b-4c35-4bak-a23c-ckf05a54a824 -CredentialKey02[$IndexAlibaba]=ClientSecret -#Fill in {{YOUR-ALIBABA-Credentidal-ClientSecret}} Ex: ez2xxxxxxxxxxxxxxxxxxxxxxxxxx -CredentialVal02[$IndexAlibaba]= #{{YOURS}} +CredentialKey03[$IndexAzure]=TenantId +CredentialVal03[$IndexAzure]= +#2157868b-4c35-4bak-a23c-ckf05a54a824 +CredentialKey04[$IndexAzure]=SubscriptionId +CredentialVal04[$IndexAzure]= +#2157868b-4c35-4bak-a23c-ckf05a54a824 ## GCP CredentialName[$IndexGCP]=gcp-credential01 - CredentialKey01[$IndexGCP]=ClientEmail -#Fill in {{YOUR-GCP-Credentidal-ClientEmail}} Ex: 1234567890-compute@developer.gserviceaccount.com -CredentialVal01[$IndexGCP]= #{{YOURS}} +CredentialVal01[$IndexGCP]= +#1234567890-compute@developer.gserviceaccount.com CredentialKey02[$IndexGCP]=ProjectID -#Fill in {{YOUR-GCP-Credentidal-ProjectID}} Ex: etri-jhseo-test-266608 -CredentialVal02[$IndexGCP]= #{{YOURS}} +CredentialVal02[$IndexGCP]= +#etri-test-266608 CredentialKey03[$IndexGCP]=PrivateKey -#Fill in {{YOUR-GCP-Credentidal-PrivateKey}} Ex: '-----BEGIN PRIVATE KEY-----\n................\n-----END PRIVATE KEY-----\n' -CredentialVal03[$IndexGCP]= #{{YOURS}} +CredentialVal03[$IndexGCP]= +#'-----BEGIN PRIVATE KEY-----\n................\n-----END PRIVATE KEY-----\n' +## IBM-VPC +CredentialName[$IndexIBMVPC]=ibmvpc-credential01 +CredentialKey01[$IndexIBMVPC]=ApiKey +CredentialVal01[$IndexIBMVPC]= +#xcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -## Azure -CredentialName[$IndexAzure]=azure-credential01 -CredentialKey01[$IndexAzure]=ClientId -#Fill in {{YOUR-AZURE-Credentidal-ClientId}} Ex:2157868b-4c35-4bak-a23c-ckf05a54a824 -CredentialVal01[$IndexAzure]= #{{YOURS}} +## Alibaba +CredentialName[$IndexAlibaba]=alibaba-credential01 +CredentialKey01[$IndexAlibaba]=ClientId +CredentialVal01[$IndexAlibaba]= +#xxxxxxxxxxxxxxxxxxxxx +CredentialKey02[$IndexAlibaba]=ClientSecret +CredentialVal02[$IndexAlibaba]= +#ez2xxxxxxxxxxxxxxxxxxxxxxxxxx -CredentialKey02[$IndexAzure]=ClientSecret -#Fill in {{YOUR-AZURE-Credentidal-ClientSecret}} Ex:2157868b-4c35-4bak-a23c-ckf05a54a824 -CredentialVal02[$IndexAzure]= #{{YOURS}} -CredentialKey03[$IndexAzure]=TenantId -#Fill in {{YOUR-AZURE-Credentidal-TenantId}} Ex:2157868b-4c35-4bak-a23c-ckf05a54a824 -CredentialVal03[$IndexAzure]= #{{YOURS}} +## Tencent +CredentialName[$IndexTencent]=tencent-credential01 +CredentialKey01[$IndexTencent]=ClientId +CredentialVal01[$IndexTencent]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxxxx -CredentialKey04[$IndexAzure]=SubscriptionId -#Fill in {{YOUR-AZURE-Credentidal-SubscriptionId}} Ex:2157868b-4c35-4bak-a23c-ckf05a54a824 -CredentialVal04[$IndexAzure]= #{{YOURS}} +CredentialKey02[$IndexTencent]=ClientSecret +CredentialVal02[$IndexTencent]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -## OpenStack -CredentialName[$IndexOpenstack]=openstack-credential01 +## NCP +CredentialName[$IndexNCP]=ncp-credential01 +CredentialKey01[$IndexNCP]=ClientId +CredentialVal01[$IndexNCP]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxx -CredentialKey01[$IndexOpenstack]=IdentityEndpoint -#Fill in {{YOUR-OpenStack-Credentidal-IdentityEndpoint}} Ex:http://129.xxx.xxx.xxx:5000/v3 -CredentialVal01[$IndexOpenstack]= #{{YOURS}} +CredentialKey02[$IndexNCP]=ClientSecret +CredentialVal02[$IndexNCP]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -CredentialKey02[$IndexOpenstack]=Username -#Fill in {{YOUR-OpenStack-Credentidal-Username}} Ex:cbuser -CredentialVal02[$IndexOpenstack]= #{{YOURS}} +## NCP VPC +CredentialName[$IndexNCPVPC]=ncpvpc-credential01 +CredentialKey01[$IndexNCPVPC]=ClientId +CredentialVal01[$IndexNCPVPC]= +#xxxxxxxxxxxxxxxxxxxxxxx -CredentialKey03[$IndexOpenstack]=Password -#Fill in {{YOUR-OpenStack-Credentidal-TenantId}} Ex:cbuserpassword -CredentialVal03[$IndexOpenstack]= #{{YOURS}} +CredentialKey02[$IndexNCPVPC]=ClientSecret +CredentialVal02[$IndexNCPVPC]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -CredentialKey04[$IndexOpenstack]=DomainName -#Fill in {{YOUR-OpenStack-Credentidal-DomainName}} Ex:default -CredentialVal04[$IndexOpenstack]= #{{YOURS}} -CredentialKey05[$IndexOpenstack]=ProjectID -#Fill in {{YOUR-OpenStack-Credentidal-ProjectID}} Ex:def 91cc0b1f8caa40198b581608cdb385c1ault -CredentialVal05[$IndexOpenstack]= #{{YOURS}} +## KT Cloud Classic (G1/G2 Platform) +CredentialName[$IndexKTcloud]=ktcloud-credential01 +CredentialKey01[$IndexKTcloud]=ClientId +CredentialVal01[$IndexKTcloud]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +CredentialKey02[$IndexKTcloud]=ClientSecret +CredentialVal02[$IndexKTcloud]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -## NCP -CredentialName[$IndexNCP]=ncp-credential01 -CredentialKey01[$IndexNCP]=ClientId -#Fill in {{YOUR-NCP-Credentidal-ID}} Ex:SFLEKJEFLJIEIVJOLJSEOIV -CredentialVal01[$IndexNCP]= #{{YOURS}} +## KT Cloud VPC (D Platform) +CredentialName[$IndexKTcloudVPC]=ktcloudvpc-credential01 +CredentialKey01[$IndexKTcloudVPC]=IdentityEndpoint +CredentialVal01[$IndexKTcloudVPC]=https://api.ucloudbiz.olleh.com/d1/identity/v3/ +#https://api.ucloudbiz.olleh.com/d1/identity/v3/ -CredentialKey02[$IndexNCP]=ClientSecret -#Fill in {{YOUR-NCP-Credentidal-Secret}} Ex:fsfdlkfjselSDfjlejklsj/LFJSDLKfjleJKLDJ0 -CredentialVal02[$IndexNCP]= #{{YOURS}} +CredentialKey02[$IndexKTcloudVPC]=Username +CredentialVal02[$IndexKTcloudVPC]= +#xxxx00@xxx.com +CredentialKey03[$IndexKTcloudVPC]=Password +CredentialVal03[$IndexKTcloudVPC]= +#xxxxxxxxxxxxxx -## NCP VPC -CredentialName[$IndexNCPVPC]=ncpvpc-credential01 +CredentialKey04[$IndexKTcloudVPC]=DomainName +CredentialVal04[$IndexKTcloudVPC]= +#default -CredentialKey01[$IndexNCPVPC]=ClientId -#Fill in {{YOUR-NCPVPC-Credentidal-ID}} Ex:SFLEKJEFLJIEIVJOLJSEOIV -CredentialVal01[$IndexNCPVPC]= #{{YOURS}} +CredentialKey05[$IndexKTcloudVPC]=ProjectID +CredentialVal05[$IndexKTcloudVPC]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -CredentialKey02[$IndexNCPVPC]=ClientSecret -#Fill in {{YOUR-NCPVPC-Credentidal-Secret}} Ex:fsfdlkfjselSDfjlejklsj/LFJSDLKfjleJKLDJ0 -CredentialVal02[$IndexNCPVPC]= #{{YOURS}} +CredentialKey06[$IndexKTcloudVPC]=ClientId +CredentialVal06[$IndexKTcloudVPC]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +CredentialKey07[$IndexKTcloudVPC]=ClientSecret +CredentialVal07[$IndexKTcloudVPC]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -## Cloud-Twin -CredentialName[$IndexCloudTwin]=cloudtwin-credential01 -CredentialKey01[$IndexCloudTwin]=IdentityEndpoint -#Fill in {{YOUR-CloudTwin-Credentidal-IdentityEndpoint}} Ex:http://52.xxx.xxx.xxx:8192 -CredentialVal01[$IndexCloudTwin]=#{{YOURS}} +## NHN Cloud +CredentialName[$IndexNHNcloud]=nhncloud-credential01 +CredentialKey01[$IndexNHNcloud]=IdentityEndpoint +CredentialVal01[$IndexNHNcloud]=https://api-identity.infrastructure.cloud.toast.com +#https://api-identity.infrastructure.cloud.toast.com -CredentialKey02[$IndexCloudTwin]=DomainName -#Fill in {{YOUR-CloudTwin-Credentidal-DomainName}} Ex:cloud-1 -CredentialVal02[$IndexCloudTwin]=#{{YOURS}} +CredentialKey02[$IndexNHNcloud]=Username +CredentialVal02[$IndexNHNcloud]= +#xxxxxxxx@xxx.xxx -CredentialKey03[$IndexCloudTwin]=MockName -#Fill in {{YOUR-CloudTwin-Credentidal-MockName}} Ex:mock_name-1 -CredentialVal03[$IndexCloudTwin]=#{{YOURS}} +CredentialKey03[$IndexNHNcloud]=Password +CredentialVal03[$IndexNHNcloud]= +#xxxxxxxxxxxxxxxxxxxxxxxx +CredentialKey04[$IndexNHNcloud]=DomainName +CredentialVal04[$IndexNHNcloud]=default +#default + +CredentialKey05[$IndexNHNcloud]=TenantId +CredentialVal05[$IndexNHNcloud]= +#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ## Cloudit CredentialName[$IndexCloudit]=cloudit-credential01 - CredentialKey01[$IndexCloudit]=IdentityEndpoint #Fill in {{YOUR-Cloudit-Credentidal-IdentityEndpoint}} Ex:http://182.xxx.xxx.xxx:9090 CredentialVal01[$IndexCloudit]=#{{YOUR-Cloudit-Credentidal-IdentityEndpoint}} @@ -157,17 +185,42 @@ CredentialKey06[$IndexCloudit]=ClusterId CredentialVal06[$IndexCloudit]=#{{YOUR-Cloudit-Credentidal-ClusterId}} -## Tencent -CredentialName[$IndexTencent]=tencent-credential01 +## OpenStack +CredentialName[$IndexOpenstack]=openstack-credential01 +CredentialKey01[$IndexOpenstack]=IdentityEndpoint +CredentialVal01[$IndexOpenstack]= +#http://129.xxx.xxx.xxx:5000/v3 -CredentialKey01[$IndexTencent]=ClientId -#Fill in {{YOUR-Tencent-Credentidal-ID}} Ex:SFLEKJEFLJIEIVJOLJSEOIV -CredentialVal01[$IndexTencent]= #{{YOURS}} +CredentialKey02[$IndexOpenstack]=Username +CredentialVal02[$IndexOpenstack]= +#cbuser -CredentialKey02[$IndexTencent]=ClientSecret -#Fill in {{YOUR-Tencent-Credentidal-Secret}} Ex:fsfdlkfjselSDfjlejklsj/LFJSDLKfjleJKLDJ0 -CredentialVal02[$IndexTencent]= #{{YOURS}} +CredentialKey03[$IndexOpenstack]=Password +CredentialVal03[$IndexOpenstack]= +#cbuserpassword +CredentialKey04[$IndexOpenstack]=DomainName +CredentialVal04[$IndexOpenstack]= +#default + +CredentialKey05[$IndexOpenstack]=ProjectID +CredentialVal05[$IndexOpenstack]= +#91cc0b1f8caa40198b581608cdb385c1ault + + +## Cloud-Twin +CredentialName[$IndexCloudTwin]=cloudtwin-credential01 +CredentialKey01[$IndexCloudTwin]=IdentityEndpoint +#Fill in {{YOUR-CloudTwin-Credentidal-IdentityEndpoint}} Ex:http://52.xxx.xxx.xxx:8192 +CredentialVal01[$IndexCloudTwin]=#{{YOURS}} + +CredentialKey02[$IndexCloudTwin]=DomainName +#Fill in {{YOUR-CloudTwin-Credentidal-DomainName}} Ex:cloud-1 +CredentialVal02[$IndexCloudTwin]=#{{YOURS}} + +CredentialKey03[$IndexCloudTwin]=MockName +#Fill in {{YOUR-CloudTwin-Credentidal-MockName}} Ex:mock_name-1 +CredentialVal03[$IndexCloudTwin]=#{{YOURS}} ## Mock driver @@ -189,52 +242,3 @@ CredentialVal01[$IndexTestCloud02]=mock_name00 CredentialName[$IndexTestCloud03]=mock-credential01 CredentialKey01[$IndexTestCloud03]=MockName CredentialVal01[$IndexTestCloud03]=mock_name00 - - - -## KTcloud -CredentialName[$IndexKTcloud]=ktcloud-credential01 - -CredentialKey01[$IndexKTcloud]=ClientId -#Fill in {{YOUR-KTcloud-Credentidal-ID}} Ex:SFLEKJEFLJIEIVJOLJSEOIV -CredentialVal01[$IndexKTcloud]= #{{YOURS}} - -CredentialKey02[$IndexKTcloud]=ClientSecret -#Fill in {{YOUR-KTcloud-Credentidal-Secret}} Ex:fsfdlkfjselSDfjlejklsj/LFJSDLKfjleJKLDJ0 -CredentialVal02[$IndexKTcloud]= #{{YOURS}} - - - - -## IBM-VPC -CredentialName[$IndexIBMVPC]=ibmvpc-credential01 - -CredentialKey01[$IndexIBMVPC]=ApiKey -#Fill in {{YOUR-IBMcloud-ApiKey}} Ex:SFLEKJEFLJIEIVJOLJSEOIV -CredentialVal01[$IndexIBMVPC]= #{{YOURS}} - - - - -## NHN Cloud -CredentialName[$IndexNHNcloud]=nhncloud-credential01 - -CredentialKey01[$IndexNHNcloud]=IdentityEndpoint -#Fill in {{YOUR-NHNcloud-Credentidal-IdentityEndpoint}} Ex: https://api-identity.infrastructure.cloud.toast.com -CredentialVal01[$IndexNHNcloud]=https://api-identity.infrastructure.cloud.toast.com - -CredentialKey02[$IndexNHNcloud]=Username -#Fill in {{YOUR-NHNcloud-Credentidal-Username}} Ex: XXXXX@XXXXXXXXXXXXXXXX -CredentialVal02[$IndexNHNcloud]= #{{YOURS}} - -CredentialKey03[$IndexNHNcloud]=Password -#Fill in {{YOUR-NHNcloud-Credentidal-Password}} Ex: cbuserpassword -CredentialVal03[$IndexNHNcloud]= #{{YOURS}} - -CredentialKey04[$IndexNHNcloud]=DomainName -#Fill in {{YOUR-NHNcloud-Credentidal-DomainName}} Ex: default -CredentialVal04[$IndexNHNcloud]=default - -CredentialKey05[$IndexNHNcloud]=TenantId -#Fill in {{YOUR-NHNcloud-Credentidal-TenantId}} Ex: tnt1234 -CredentialVal05[$IndexNHNcloud]=#{{YOUR-NHNcloud-Credentidal-TenantId}}