Giter Site home page Giter Site logo

Comments (9)

innodreamer avatar innodreamer commented on July 20, 2024 1

@seokho-son 네. 'Status: 400 ~ ' 부터 CSP 오류 메시지입니다.

from cb-spider.

seokho-son avatar seokho-son commented on July 20, 2024

CB-Spider 전체적으로 관련이 되어 있을 수 있습니다. 이 경우 @powerkimhub 께 개선을 요청 드립니다.

드라이버 이슈라면, @innodreamer 께 개선을 요청 드립니다.

from cb-spider.

seokho-son avatar seokho-son commented on July 20, 2024

PTAL: @innodreamer

from cb-spider.

seokho-son avatar seokho-son commented on July 20, 2024

혹시, 리전 조회시, KR, SGN, JPN 등 리전/존 명칭이 대문자로 CSP에서 넘어오는 것이 아니라, 대문자로 변환(또는 고정 문자를 대문자로 지정)해서 리턴해서 주시는 상황이라면, 이를 다른 글로벌 CSP들처럼 소문자로 변경 유지해주시는 것을 먼저 진행해주셔도 좋을 것 같습니다.

from cb-spider.

innodreamer avatar innodreamer commented on July 20, 2024

@seokho-son 먼저 말씀드리자면, CSP에서 region/zone 정보를 조회해서 제시해줄때 일부러 대문자로 변환해서 제시하지는 않고 있습니다.
꼭 소문자로 통일한다면 request call을 할때도 드라이버 내에서 대문자로 변경해서 call을 할 수 있지만, 위의 내용과 같은 상황에서 조회시에도 꼭 소문자로 보이도록 해야한다면 조회 시 드라이버 내에서 모두 소문자로 변환해서 제시되도록 해야할 거 같습니다.

아래의 사항에 대해 의견 주시기 바랍니다. @seokho-son @powerkimhub

  • 드라이버 내에서 CSP API request시 region/zone 이름을 대문자로 해야하는 경우, 소문자를 대문자로 변경해서 call 해야함.
  • 드라이버에서 전체적으로 region/zone 정보를 제시할 때 대문자는 소문자로 변경해서 제시해야함.

from cb-spider.

seokho-son avatar seokho-son commented on July 20, 2024

@innodreamer

  • CSP API 상의 region/zone 리턴값이, 대문자인 경우가 있다는 말씀으로 이해하였습니다.
  • CSP API request 시에, 소문자로 요청시에 오류가 발생하는지 우선 문의 드립니다. (CSP가 요청값에도 대소문자를 구분하여 제한하고 있는 경우라면, CSP를 준용해주는 것이 좋겠다는 생각입니다.)

from cb-spider.

innodreamer avatar innodreamer commented on July 20, 2024

@seokho-son 예를들어, NCP VPC의 경우 아래와 같이 조회되고
image

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.

seokho-son avatar seokho-son commented on July 20, 2024

@innodreamer 해당 오류가 CSP가 주는 오류로 보면 되나요?

from cb-spider.

seokho-son avatar seokho-son commented on July 20, 2024

확인 감사합니다. 대소문자를 구분하는 CSP의 의도는 모르겠으나, 일단 준용하여,

CB-TB에서 리전/존의 대소문자 구분하여 CB-SP에 내려보내도록 하겠습니다.
차기 CB-TB 릴리스에 반영 후, 해당 이슈는 제가 close 하겠습니다.

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.