Comments (2)
간단하게 아래와 같이 에러를 회피하는 수준에서는 수정할 수 있겠지만 정확한 의미를 파악한 후 개선하는데는 다소 시간이 소요될 것으로 생각됩니다. 혹시 개발하신 분께서 리뷰해주시면 도움이 될 것으로 생각됩니다.
@@ -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.
@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)
- [NCP,KT,NHN] use strings.EqualFold to check strings (region, zone, csp name) HOT 9
- Use identical key for the credentials of all CSPs HOT 5
- [GCP] How can a user lookup a vm image which is not in the image list HOT 7
- [GCP:VM] Invalid Security Group List in VM Info
- [GCP:VM] VM Not Found Error Due to ZONE_RESOURCE_POOL_EXHAUSTED HOT 2
- How to disable hiscall and change log level in containerized cb-sp HOT 4
- [PMKS] Support multiple instance types when creating a node group HOT 3
- [Alibaba:PMKS] support to check the scalability of a node group HOT 1
- [Tencent:LogLevel] Define Log Level in the Code Block
- [KTCLOUDVPC:VM] SecurityGroupIIds is empty HOT 4
- [Alibaba:PMKS] SLB resource is remained when deleting a cluster HOT 2
- [NHNCloud] hope to check current API endpoints HOT 1
- [Server:IID] Invalid default option for ID_TRANSFORM_MODE in the Spider Docker container HOT 2
- [AWS:Logger] Unnecessary Check
- [AdminWeb] Region/Zone Page Display Error
- [NLB:Server] Error Creating NLB without VM Settings
- [Alibaba:VM] Nil Pointer Access Error with Unsupported Instance Type HOT 1
- [Feature] Need API for Available Resources to Prevent VM or K8S Cluster Creation Failures HOT 1
- [All: Logging] Remove Print Statements and Check Log Level HOT 1
- [AWS:PMKS] Load balancer Remains after Cluster Deletion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cb-spider.