Comments (9)
@seokho-son 네. 'Status: 400 ~ ' 부터 CSP 오류 메시지입니다.
from cb-spider.
CB-Spider 전체적으로 관련이 되어 있을 수 있습니다. 이 경우 @powerkimhub 께 개선을 요청 드립니다.
드라이버 이슈라면, @innodreamer 께 개선을 요청 드립니다.
from cb-spider.
PTAL: @innodreamer
from cb-spider.
혹시, 리전 조회시, KR, SGN, JPN 등 리전/존 명칭이 대문자로 CSP에서 넘어오는 것이 아니라, 대문자로 변환(또는 고정 문자를 대문자로 지정)해서 리턴해서 주시는 상황이라면, 이를 다른 글로벌 CSP들처럼 소문자로 변경 유지해주시는 것을 먼저 진행해주셔도 좋을 것 같습니다.
from cb-spider.
@seokho-son 먼저 말씀드리자면, CSP에서 region/zone 정보를 조회해서 제시해줄때 일부러 대문자로 변환해서 제시하지는 않고 있습니다.
꼭 소문자로 통일한다면 request call을 할때도 드라이버 내에서 대문자로 변경해서 call을 할 수 있지만, 위의 내용과 같은 상황에서 조회시에도 꼭 소문자로 보이도록 해야한다면 조회 시 드라이버 내에서 모두 소문자로 변환해서 제시되도록 해야할 거 같습니다.
아래의 사항에 대해 의견 주시기 바랍니다. @seokho-son @powerkimhub
- 드라이버 내에서 CSP API request시 region/zone 이름을 대문자로 해야하는 경우, 소문자를 대문자로 변경해서 call 해야함.
- 드라이버에서 전체적으로 region/zone 정보를 제시할 때 대문자는 소문자로 변경해서 제시해야함.
from cb-spider.
- CSP API 상의 region/zone 리턴값이, 대문자인 경우가 있다는 말씀으로 이해하였습니다.
- CSP API request 시에, 소문자로 요청시에 오류가 발생하는지 우선 문의 드립니다. (CSP가 요청값에도 대소문자를 구분하여 제한하고 있는 경우라면, CSP를 준용해주는 것이 좋겠다는 생각입니다.)
from cb-spider.
@seokho-son 예를들어, NCP VPC의 경우 아래와 같이 조회되고
Config에 region/zone을 소문자로 지정하여 API call을 하면 아래와 같은 오류가 발생합니다.
[CLOUD-BARISTA].[ERROR]: 2024-05-14 16:39:19 RegionZoneHandler.go:196, github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/drivers/ncpvpc/resources.(*NcpRegionZoneHandler).ListOrgZone() - Failed to Get ZoneList from NCP Cloud : %!(EXTRA *errors.errorString=Failed to Get ZoneList from NCP Cloud : Status: 400 Bad Request, Body: {
"responseError": {
"returnCode": "1404",
"returnMessage": "Not found region. Available Region : [KR, HK, SGN, JPN, USWN, DEN]"
}
})
from cb-spider.
@innodreamer 해당 오류가 CSP가 주는 오류로 보면 되나요?
from cb-spider.
확인 감사합니다. 대소문자를 구분하는 CSP의 의도는 모르겠으나, 일단 준용하여,
CB-TB에서 리전/존의 대소문자 구분하여 CB-SP에 내려보내도록 하겠습니다.
차기 CB-TB 릴리스에 반영 후, 해당 이슈는 제가 close 하겠습니다.
from cb-spider.
Related Issues (20)
- 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 8
- [GCP:VM] Invalid Security Group List in VM Info
- [GCP:VM] VM Not Found Error Due to ZONE_RESOURCE_POOL_EXHAUSTED HOT 4
- 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 5
- [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.