Skip to content

How do we handle unverified connectionName entries when calling k8sclusterDynamic/mciDynamic APIs #1922

@sykim-etri

Description

@sykim-etri

현재 k8sclusterDynamic(mciDynamic) API를 호출하기 위해서, 먼저 k8sclusterRecommendNode(mciRecommendVm) API를 호출하여 spec과 connectionName 등을 확보하고 있습니다. 그런데 connectionName이 not verified된 CSP의 리전을 대상으로 k8sclusterDynamic(mciDynamic) API를 호출하면 단순히 connection config를 찾을 수 없다는 정도의 예상치 못한 간단한 에러만 리턴하고 있기 때문에 사용자에게 혼란을 줄 수 있어 보입니다.

6:34AM ERR src/core/resource/common.go:1845 > Failed to CreateSharedResource error="Cannot find the connection config: tencent-ap-seoul"
6:34AM ERR src/core/infra/provisioning.go:1908 > Failed to create new default vNet ns01-shared-tencent-ap-seoul from tencent-ap-seoul error="Cannot find the connection config: tencent-ap-seoul"
6:34AM ERR src/core/infra/provisioning.go:2037 > Failed to get shared resources for dynamic K8sCluster creation error="Cannot find the connection config: tencent-ap-seoul"
6:34AM ERR src/api/rest/server/resource/k8scluster.go:600 > failed to create K8sCluster dynamically error="Cannot find the connection config: tencent-ap-seoul"

k8sclusterRecommendNode(mciRecommendVm) API 호출시 /connConfig와 같이 filterVerified 항목을 추가하는 등의 대응이 필요할 것으로 보입니다.
의견 부탁드립니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions