Bypass checking logic for unsupported/incomplete resource types in the resource registration#1654
Conversation
Signed-off-by: Seokho Son <shsongist@gmail.com>
[변경 요약]
[고려 사항]
|
이는 "기존 자원 등록"의 경우, CSP에 따라, 실제로도 SG와 VPC 간 관계가 없고, 관계에 대한 정보도 없기 때문입니다. (그리고 억지로 정보를 찾아서 매핑한다고 해도 활용 측면에선 의미가 없어 보입니다.) 아울러, "기존 자원 등록"의 경우, cloud-barista에서 완벽하게 재 등록하기가 어렵다는 점을 고려해야 할 것 같습니다. 이외의 고려 사항은 현재 제안된 PR 내용 이외의 부분에서
[고려 사항] 관련 응답. |
|
마이그레이션 측면의 현황을 공유드립니다. 현재 VM 인프라 마이그레이션은 vNet (VPC) 생성 후, 해당 vNetId를 활용하여 Security Group를 생성하는 순서로 진행합니다.
위 내용을 Tumblebug의 사용자인 Beetle의 관점에서 바라보면, Security Group를 생성하는 측면에서 보는 게 정확할 것이라 생각되었습니다(생성 측면 O, 등록 측면 X). (As-Is) 다음 API Request Body의
{
"connectionName": "string",
"cspResourceId": "required for option=register only. ex: csp-06eb41e14121c550a",
"description": "string",
"firewallRules": [
{
"CIDR": "0.0.0.0/0",
"Direction": "inbound",
"Ports": "22,900-1000,2000-3000",
"Protocol": "TCP"
}
],
"name": "string",
"vNetId": "string"
}
혹시 잘못 이해한 부분이 있다면 코멘트 부탁드립니다. |
아래와 같이 생각하시면 되겠습니다.
|
|
현재는 1번 방식으로 처리되어 있습니다.
|
|
[Off-line 회의 결과 요약]
|
This PR helps the registration feature of existing CSP resources in CB-Tumblebug.
by letting bypassing checking logic for unsupported/incomplete resource types (Keypair, SecurityGroup-(VPC))
Those issues in CB-TB cannot be resolved without this support from CB-SP.
I've tested this PR for creating VMs (and all related resources types) and registering Keypair, SecurityGroup-(VPC) individually.