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

KTCloud unrelated failure error from 3 concurrent VMs provisioning #1061

Open
seokho-son opened this issue Feb 13, 2024 · 7 comments
Open

KTCloud unrelated failure error from 3 concurrent VMs provisioning #1061

seokho-son opened this issue Feb 13, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@seokho-son
Copy link
Member

What happened
CB-TB MCIS를 통해, KTCloud VM 3개 생성 요청시,

  • 2개는 성공
  • 1개는 실패
    • "[Error from: http://localhost:1024/spider/vm] Status code: 500 Internal Server Error, Message: {"message":"Failed to Create PortForwarding Rules and Firewall Rules : [Received HTTP client/server error from KT Cloud: 500 - {\"createportforwardingruleresponse\":{\"uuidList\":[],\"errorcode\":431,\"cserrorcode\":9999,\"errortext\":\"Unable to execute API command createportforwardingrule due to invalid value. Invalid parameter ipaddressid value= due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class.\"}}]"}
      "

How to reproduce it (as minimally and precisely as possible)
CB-TB MCIS를 통해, KTCloud VM 3개 생성 요청

Anything else we need to know?

CB-SP 로그


2024/02/13 06:45:48 The job status : 1
New Public IP : 14.63.217.99, IP State : Allocated
[HISCALL].[129.254.175.187] 2024-02-13 06:45:49 (Tuesday) github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.LoggingInfo():94 - "CloudOS" : "KTCLOUD", "RegionZone" : "eceb5d65-6571-4696-875f-5a17949f3317", "ResourceType" : "VM", "ResourceName" : "ns01-mc-k-cn5gvgm7p30i6fc2cd00", "CloudOSAPI" : "StartVM()", "ElapsedTime" : "0.0590", "ErrorMSG" : ""
[CB-SPIDER].[INFO]: 2024-02-13 06:45:49 VMHandler.go:346, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudVMHandler).StartVM() - ==> The PublicIP ID : [] 
[CB-SPIDER].[INFO]: 2024-02-13 06:45:49 VMHandler.go:1681, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudVMHandler).createPortForwardingFirewallRules() - KT Cloud cloud driver: called createPortForwardingFirewallRules()! 
[CB-SPIDER].[INFO]: 2024-02-13 06:45:49 VMHandler.go:1689, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudVMHandler).createPortForwardingFirewallRules() - S/G System ID : [ns01-ns01-cn5gvbm7p30i6fc2ccug] 
[CB-SPIDER].[INFO]: 2024-02-13 06:45:49 SecurityHandler.go:136, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudSecurityHandler).GetSecurity() - KT Cloud cloud driver: called GetSecurity()!! 
[CB-SPIDER].[INFO]: 2024-02-13 06:45:49 SecurityHandler.go:141, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudSecurityHandler).GetSecurity() - # securityIID.NameId : ns01-ns01-cn5gvbm7p30i6fc2ccug 
[CB-SPIDER].[INFO]: 2024-02-13 06:45:49 SecurityHandler.go:142, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudSecurityHandler).GetSecurity() - # hashFileName : bnMwMS1uczAxLWNuNWd2Ym03cDMwaTZmYzJjY3Vn.json 
[CB-SPIDER].[INFO]: 2024-02-13 06:45:49 SecurityHandler.go:149, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudSecurityHandler).GetSecurity() - ZoneId : eceb5d65-6571-4696-875f-5a17949f3317 
[CB-SPIDER].[INFO]: 2024-02-13 06:45:49 SecurityHandler.go:173, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudSecurityHandler).GetSecurity() - Succeeded in Finding and Opening the S/G file: /root/go/src/github.com/cloud-barista/cb-spider/cloud-driver-libs/.securitygroup-kt/eceb5d65-6571-4696-875f-5a17949f3317/bnMwMS1uczAxLWNuNWd2Ym03cDMwaTZmYzJjY3Vn.json 
[CB-SPIDER].[INFO]: 2024-02-13 06:45:49 SecurityHandler.go:305, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudSecurityHandler).mappingSecurityInfo() - KT Cloud cloud driver: called mappingSecurityInfo()! 
[CB-SPIDER].[INFO]: 2024-02-13 06:45:49 VMHandler.go:1736, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudVMHandler).createPortForwardingFirewallRules() - ##### FromPort : 1 
[CB-SPIDER].[ERROR]: 2024-02-13 06:45:49 VMHandler.go:1753, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudVMHandler).createPortForwardingFirewallRules() - Failed to Create the PortForwarding Rule : [Received HTTP client/server error from KT Cloud: 500 - {"createportforwardingruleresponse":{"uuidList":[],"errorcode":431,"cserrorcode":9999,"errortext":"Unable to execute API command createportforwardingrule due to invalid value. Invalid parameter ipaddressid value= due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class."}}] 
[CB-SPIDER].[ERROR]: 2024-02-13 06:45:49 VMHandler.go:363, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.(*KtCloudVMHandler).StartVM() - Failed to Create PortForwarding Rules and Firewall Rules : [Received HTTP client/server error from KT Cloud: 500 - {"createportforwardingruleresponse":{"uuidList":[],"errorcode":431,"cserrorcode":9999,"errortext":"Unable to execute API command createportforwardingrule due to invalid value. Invalid parameter ipaddressid value= due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class."}}] 
[CB-SPIDER].[ERROR]: 2024-02-13 06:45:49 CommonKtCloudFunc.go:87, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.LoggingError() - Failed to Create PortForwarding Rules and Firewall Rules : [Received HTTP client/server error from KT Cloud: 500 - {"createportforwardingruleresponse":{"uuidList":[],"errorcode":431,"cserrorcode":9999,"errortext":"Unable to execute API command createportforwardingrule due to invalid value. Invalid parameter ipaddressid value= due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class."}}] 
[HISCALL].[129.254.175.187] 2024-02-13 06:45:49 (Tuesday) github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ktcloud/resources.LoggingError():89 - "CloudOS" : "KTCLOUD", "RegionZone" : "eceb5d65-6571-4696-875f-5a17949f3317", "ResourceType" : "VM", "ResourceName" : "ns01-mc-k-cn5gvgm7p30i6fc2cd00", "CloudOSAPI" : "StartVM()", "ElapsedTime" : "", "ErrorMSG" : "Failed to Create PortForwarding Rules and Firewall Rules : [Received HTTP client/server error from KT Cloud: 500 - {"createportforwardingruleresponse":{"uuidList":[],"errorcode":431,"cserrorcode":9999,"errortext":"Unable to execute API command createportforwardingrule due to invalid value. Invalid parameter ipaddressid value= due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class."}}]"
[CB-SPIDER].[ERROR]: 2024-02-13 06:45:49 VMManager.go:499, github.com/cloud-barista/cb-spider/api-runtime/common-runtime.StartVM() - Failed to Create PortForwarding Rules and Firewall Rules : [Received HTTP client/server error from KT Cloud: 500 - {"createportforwardingruleresponse":{"uuidList":[],"errorcode":431,"cserrorcode":9999,"errortext":"Unable to execute API command createportforwardingrule due to invalid value. Invalid parameter ipaddressid value= due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class."}}] 
[HISCALL].[129.254.175.187] 2024-02-13 06:45:49 (Tuesday) github.com/cloud-barista/cb-spider/api-runtime/common-runtime.StartVM():501 - "CloudOS" : "KTCLOUD", "RegionZone" : "kr-central-a/eceb5d65-6571-4696-875f-5a17949f3317", "ResourceType" : "VM", "ResourceName" : "ns01-mc-k-cn5gvgm7p30i6fc2cd00", "CloudOSAPI" : "CB-Spider:StartVM()", "ElapsedTime" : "", "ErrorMSG" : "Failed to Create PortForwarding Rules and Firewall Rules : [Received HTTP client/server error from KT Cloud: 500 - {"createportforwardingruleresponse":{"uuidList":[],"errorcode":431,"cserrorcode":9999,"errortext":"Unable to execute API command createportforwardingrule due to invalid value. Invalid parameter ipaddressid value= due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class."}}]"
2024/02/13 06:45:50 Checking the async job status... (attempt: 2)
2024/02/13 06:45:50 The job status : 0
2024/02/13 06:45:51 Checking the async job status... (attempt: 8)
2024/02/13 06:45:51 The job status : 0
2024/02/13 06:45:53 Checking the async job status... (attempt: 3)
2024/02/13 06:45:54 The job status : 0

Environment

  • Source version or branch: CB-SP v0.8.4

Proposed solution
CB-SP 차원 3개 VM 동시 생성 테스트 및 오류 수정

Any other context
:

@seokho-son seokho-son added the bug Something isn't working label Feb 13, 2024
@seokho-son
Copy link
Member Author

PTAL @innodreamer

@seokho-son
Copy link
Member Author

3개의 VM은 동일한 network, subnet, SG, SSHKey 활용한 경우이며, 다른 경우를 테스트하지는 않았음.

@innodreamer
Copy link
Member

@seokho-son Portforwarding Rule 적용관련된 사전 작업을 단순화하고 validation check code를 추가했으니 위의 PR이 반영된 후 다시한번 테스트해주시기 바래요.

@seokho-son
Copy link
Member Author

@innodreamer (@powerkimhub)

아래와 같이, CB-TB로 테스트시 (VM 1개),

Please provide the number of VMs to create (1 ~ 10)
VM Spec to add: d3530ad2-462b-43ad-97d5-e1087b952b7d!_disk20GB
VM Image: Ubuntu22.04

  • vCPU: 4
  • Mem(GiB): 8
  • Cost($/1H): undefined
  • rootDiskType: default
  • rootDiskSize(GB): default
  • CSP: KTCLOUD
  • Region: kt-kr-central-a
  • connConfig: kt-kr-central-a

오류가 발생합니다.
systemMessage:"[Error from: http://localhost:1024/spider/vm] Status code: 500 Internal Server Error, Message: {"message":"Invalid RootDiskType!! Only 'HDD' type is supported on this zone.(Except for 'Seoul M2' zone.)"}

rootdisk default 설정이 동작하지 않아서 발생하는 문제로 보입니다.
확인 부탁드립니다. (HDD로 직접 지정하여 테스트하지 않았음)

@innodreamer
Copy link
Member

innodreamer commented Feb 29, 2024

@seokho-son (@powerkimhub)
위의 오류는 먼저 KT Cloud Classic (G1/G2)의 아래와 같은 제약 조건때문입니다.

"VM 생성시, root disk type으로 'Seoul-M2' zone은 SSD type만 지원하고, 나머지 zone은 HDD type만 지원함.​"

위에 제시해주신 오류 메시지는 KT Cloud Classic VM 생성 요청시 연동 드라이버에서 위의 제약 조건에 맞춰서 zone별로 root disk type의 validation check 후에, 드라이버 layer에서 return해주는 오류 메시지입니다.

일반적으로 root disk type을 'default'로 요청시 cb-spider에 CSP별로 지정된 default root disk type 정보로 VM 생성 요청이 되는데, 이런 상황에서 오류가 나지 않도록 보완하겠습니다.

@innodreamer
Copy link
Member

@seokho-son (@powerkimhub)
확인해보니, Spider API를 통해서 VM 생성시 root disk type과 root disk size를 명시하지 않은 경우, 그 parameter에 대해 드라이버로 "default"가 아닌 ""가 내려갑니다.

따라서, 드라이버에서 validation check 할때 "" option도 적용했습니다.
이제 root disk type을 명시하지 않은 경우 KT Cloud zone별로 해당 disk type의 root disk(volume)이 생성됩니다.

@powerkimhub
Copy link
Member

@seokho-son @innodreamer

  • 해결 되었나요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants