Coder Social home page Coder Social logo

Comments (2)

sykim-etri avatar sykim-etri commented on June 8, 2024

간단하게 아래와 같이 에러를 회피하는 수준에서는 수정할 수 있겠지만 정확한 의미를 파악한 후 개선하는데는 다소 시간이 소요될 것으로 생각됩니다. 혹시 개발하신 분께서 리뷰해주시면 도움이 될 것으로 생각됩니다.

@@ -1769,15 +1778,23 @@ func waitingClusterBaseSecurityGroup(createdClusterIID irs.IID, managedClustersC
                sg, err := securityGroupsClient.Get(ctx, clusterManagedResourceGroup, *baseSecurityGroup.Name, "")
                if err == nil {
                        for _, rule := range *sg.SecurityRules {
-                               if *rule.Priority == 500 && *rule.DestinationPortRange == "80" {
-                                       baseRuleCheck++
-                               }
-                               if *rule.Priority == 501 && *rule.DestinationPortRange == "443" {
-                                       baseRuleCheck++
+                               if *rule.Priority == 500 || *rule.Priority == 501 {
+                                       if rule.DestinationPortRange != nil &&
+                                               (*rule.DestinationPortRange == "80" || *rule.DestinationPortRange == "443") {
+                                               baseRuleCheck++
+                                       } else {
+                                               for _, portRange := range *rule.DestinationPortRanges {
+                                                       if portRange == "80" {
+                                                               baseRuleCheck++
+                                                       } else if portRange == "443" {
+                                                               baseRuleCheck++
+                                                       }
+                                               }
+                                       }
                                }
                        }
                }
-               if baseRuleCheck == 2 {
+               if baseRuleCheck >= 2 {
                        break
                }
                apiCallCount++

from cb-spider.

powerkimhub avatar powerkimhub commented on June 8, 2024

@ish-hcc (cc: @sykim-etri )


  • 추가로 아래 시험 결과도 참고해 주시기 바랍니다.
  • 아래 시험 및 몇 가지 테스트해보면서 느낌은 Azure의 K8S 생성 흐름이 Driver 개발 시점과 많이 변경된 느낌입니다.
    • 그래서, 현재 이슈 중심 패치보다는 CreateClsuter() 관련 전반적인 점검이 필요해 보입니다.
  • 관련하여, 대략 현황을 점검해 보신 후 예상 반영 일정 등을 공유 부탁 드립니다.
  • 참고

  • 현재 Azure가 지원하는 default version 1.28.5로 생성 요청시 timeout 오류
[오후 7:41:31] curl -sX POST http://localhost:1024/spider/cluster -H 'Content-Type: application/json' -d '{ "ConnectionName" : "azure-northeu-config", "ReqInfo" :  {"Name" : "spider-cluster-01",  "Version" : "1.28.5",  "VPCName" : "vpc-01", "SubnetNames" : ["subnet-01"], "SecurityGroupNames" : ["sg-01"],   "NodeGroupList": [ {
        "Name" :            "economy", 
        "ImageName" :       "", 
        "VMSpecName" :      "Standard_B2s", 
        "KeyPairName" :     "keypair-01",
        "OnAutoScaling" :   "true", 
        "DesiredNodeSize" : "2", 
        "MinNodeSize" :     "1", 
        "MaxNodeSize" :     "3"
}
                		 ]                         			}                         		}'
[오후 8:01:32]    ==> {"message":"Failed to Create Cluster. err = failed wait creating BaseRule in Cluster BaseSecurityGroup err = The maximum number of verification requests has been exceeded while waiting for the creation of that resource"}
  • 추가로, 현재 Azure Console에서 생성시 default vm spec으로 요청시 internal server 오류
[오후 7:18:19] curl -sX POST http://localhost:1024/spider/cluster -H 'Content-Type: application/json' -d '{ "ConnectionName" : "azure-northeu-config", "ReqInfo" : {"Name" : "spider-cluster-01","Version" : "1.28.5", "VPCName" : "vpc-01", "SubnetNames" : ["subnet-01"], "SecurityGroupNames" : ["sg-01"], "NodeGroupList": [ {
        "Name" :            "economy", 
        "ImageName" :       "", 
        "VMSpecName" :      "Standard_D8ds_v5",   <===============
        "RootDiskType" :    "", 
        "RootDiskSize" :    "60", 
        "KeyPairName" :     "keypair-01",
        "OnAutoScaling" :   "true", 
        "DesiredNodeSize" : "2", 
        "MinNodeSize" :     "1", 
        "MaxNodeSize" :     "3"
}
                		 ]                         			}                         		}'
[오후 7:26:13]    ==> {"message":"Failed to Create Cluster. err = containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=500 -- Original Error: Code=\"InternalOperationError\" Message=\"Internal server error\""}

from cb-spider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.