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

[API:NLB] Something is wrong when using aws nlb cspId(by Swagger) #1318

Open
powerkimhub opened this issue Sep 2, 2024 · 0 comments
Open
Assignees
Labels
API bug Something isn't working

Comments

@powerkimhub
Copy link
Member

  • AWS NLB는 다음과 같은 SystemId를 제공하고 있음
    • 특이사항: escape char ':' 포함되고, 길다.
    • arn:aws:elasticloadbalancing:us-east-2:123456789:loadbalancer/net/nlb-01-craq5gjp70ip4rshnuvg/ca1234567890ace

  • Web Swagger Editor에서 SystemId 값을 입력 값으로 사용하면 오류가 발생하고 있음.
    • 사례) register nlb 후에 GetNLB()시 다음과 같은 오류 발생
      • 추정: ':'를 포함한 SystemId가 SpiderId, SystemId 분리 처리 시 오류 발생 가능
        [CB-SPIDER].[ERROR]: 2024-09-02 21:08:44 NLBHandler.go:800, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/aws/resources.(*AwsNLBHandler).GetNLB() - ValidationError: 'aws:elasticloadbalancing:us-east-2:123456789:loadbalancer/net/nlb-01-craq5gjp70ip4rshnuvg/ca1234567890ace:aws:elasticloadbalancing:us-east-2:123456789:loadbalancer/net/nlb-01-craq5gjp70ip4rshnuvg/ca1234567890ace' is not a valid load balancer ARN
        
    • 사례) [DELETE: /cspnlb/{Id}]에서 swagger editor에서 ':'를 포함하는 Id 입력 값의 escape 처리 부분 점검 필요
      • 추정: ':'를 포함한 ID의 경우 Swagger editor 창에서 escape 처리 시키는 부분 확인/검토 필요
        ...arn%3Aaws%3Aelasticloadbalancing%3Aus-e...생략
        
      • 기존 AdminWeb에서는 csp id 기반 nlb 삭제는 오류 없이 삭제 되고 있음
@powerkimhub powerkimhub added bug Something isn't working API labels Sep 2, 2024
@powerkimhub powerkimhub self-assigned this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant