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

[KTCLOUDVPC:VM] SecurityGroupIIds is empty #1191

Closed
powerkimhub opened this issue May 10, 2024 · 4 comments
Closed

[KTCLOUDVPC:VM] SecurityGroupIIds is empty #1191

powerkimhub opened this issue May 10, 2024 · 4 comments
Assignees
Labels
bug Something isn't working CloudDriver

Comments

@powerkimhub
Copy link
Member

[증상]

  • VM이 생성까지는 되는데,
  • GetVM 시에 SecurityGroupIIds is empty 오류가 발생하고 있습니다.
    • 이 경우, AdminWeb으로 VM 목록을 보면 다음과 같은 오류와 함께 목록이 출력되지 않습니다.
      [오후 8:23:18] curl -sX GET http://localhost:1024/spider/vm -H 'Content-Type: application/json' -d '{"ConnectionName": "ktcloudvpc-mokdong1-config"}'
      [오후 8:23:18]    ==> {"message":"ktcloudvpc-mokdong1-config:VM:vm-01 # vm-01: SecurityGroupIIds is empty"}
      
    • 반면, management 목록을 확인하면 ID 맵핑만 추출하므로 다음과 같이 이상 없이 출력 됩니다.
      • image

[분석]

  • KTCLOUD VPC 경우, SG 생성을 Driver에서 처리하므로
  • GetVM 시 반환하는 VM InfoSecurityGroupIIds 정보를 설정해줘야 하는데 설정하는 코드 블록이 없는 것 같습니다.
@powerkimhub powerkimhub added the bug Something isn't working label May 10, 2024
@powerkimhub
Copy link
Member Author

powerkimhub commented May 17, 2024

@innodreamer

  • NCP VPC도 동일한 현상이 나타나네요. 확인 부탁 드립니다.
    • VM 생성은 성공, VM 정보 제공시 오류
    curl -sX POST http://localhost:1024/spider/vm -H 'Content-Type: application/json' -d '{ "ConnectionName" : "ncpvpc-korea1-config", "ReqInfo" : { "Name" : "vm-01", "ImageType" : "PublicImage",                                "ImageName" : "SW.VSVR.OS.LNX64.UBNTU.SVR1804.B050", "VMSpecName" : "SVR.VSVR.HICPU.C004.M008.NET.SSD.B050.G002", "VPCName" : "vpc-01", "SubnetName" : "subnet-01",                                 "SecurityGroupNames" : ["sg-01"], "RootDiskType" : "default", "DataDiskNames" : [], "KeyPairName" : "keypair-01",   ... 중략 ....
    
    curl -sX GET http://localhost:1024/spider/vm -H 'Content-Type: application/json' -d '{"ConnectionName": "ncpvpc-korea1-config"}'
    [오후 9:07:50]    ==> {"message":"ncpvpc-korea1-config:VM:vm-01 # vm-01: SecurityGroupIIds is empty"}
    

@powerkimhub
Copy link
Member Author

@innodreamer
Copy link
Member

@powerkimhub (@seokho-son)
위의 두번의 PR로 보완 완료했습니다.

@powerkimhub
Copy link
Member Author

@innodreamer

  • 감사합니다.
  • KT VPC, NCP VPC: Server 통합 시험 완료하였습니다.

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

No branches or pull requests

2 participants