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

Modify 'serviceType' value in InstallMonAgentReq #1239

Conversation

jihoon-seo
Copy link
Member

[현황 - CB-TB 측면]

  • CB-Dragonfly에 POST http://localhost:9090/dragonfly/agent 요청을 날릴 때,
    service_type 필드의 값을 const DefaultSystemLabel string = "Managed by CB-Tumblebug" 으로 채워서 보냈습니다.
  • 사용자 → TB → DF 순서로 call 하도록 하면 사용자는 다음의 TB 에러 메시지를 보게 되는데, 디테일이 표시되지 않습니다.
[Calling DRAGONFLY] START
cb-tumblebug                 | VM:ns01/jhseo/aws-us-east-2, URL:http://cb-dragonfly:9090/dragonfly/agent, userName:cb-user, cspType:aws, service_type:Managed by CB-Tumblebug
cb-tumblebug                 | Called CB-DRAGONFLY API
cb-tumblebug                 | HTTP Status code: 400
cb-tumblebug                 | [CLOUD-BARISTA].[ERROR]: 2022-10-24 06:48:35 monitoring.go:255, github.com/cloud-barista/cb-tumblebug/src/core/mcis.CallMonitoringAsync() - HTTP Status: not in 200-399 
cb-tumblebug                 | [CLOUD-BARISTA].[ERROR]: 2022-10-24 06:48:35 monitoring.go:280, github.com/cloud-barista/cb-tumblebug/src/core/mcis.CallMonitoringAsync() - [Monitoring Agent deployment errors] / HTTP Status: not in 200-399 

[현황 - CB-DF 측면]

[Req to DF]

{
  "userName": "cb-user",
  "cspType": "aws",
  "service_type": "Managed by CB-Tumblebug"
}

[Resp from DF]

{
  "message": "unsupported agentType: Managed by CB-Tumblebug"
}

[개선]
이 PR은, TB → DF 로 보내는 install agent req 의 service_type 필드에
common.StrVM = "vm" 을 채워서 보내도록 변경합니다.

@seokho-son
Copy link
Member

/approve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants