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

MCIS조회시 vm 들의 상태가 모두 running 로 나오는 현상 #147

Closed
jazmandorf opened this issue May 16, 2020 · 2 comments
Closed

Comments

@jazmandorf
Copy link
Member

MCIS 리시트 조회시 실제 vm의 상태가 running 이외의 상태임에도 Running 으로 나오는 현상
http://3.34.100.130:1323/tumblebug/ns/NS-02/mcis

특정 MCIS 조회했을 떄의 VM 상태는 제대로 return
http://3.34.100.130:1323/tumblebug/ns/NS-02/mcis/MCIS-aws-developer

@seokho-son
Copy link
Member

@jazmandorf @jihoon-seo
기존에 MCIS 리스트 조회 기능의 경우,
CSP로의 API CALL이 많아질 수 있는 상황과 응답 속도 저하를 고려하여,
MCIS들 및 소속된 VM들의 상태를 조회하지 않고 리턴하고 있었습니다.

이슈 대응 차원에서 아래와 같이 조치하였습니다.
두 가지 방식 중에 필요에 따라 선택하여 사용하시기 바랍니다.

  1. 기존 MCIS List 조회 기능 (상태 정보를 비워서 리턴)
  2. 현재 상태를 포함하는 MCIS List 조회 옵션 추가

[상세 정보]

  • 기존 MCIS List 조회 기능
    • MCIS와 VM의 Status는 "" empty string으로 회신
API CALL: {{tb_ip}}:{{tb_port}}{{tb_prefix}}/ns/{{ns_id}}/mcis
REPONSE:
{
    "mcis": [
        {
            "id": "MCIS-aws-shson",
            "name": "MCIS-aws-shson",
            "status": "",
            "placement_algo": "",
            "description": "Tumblebug Demo",
            "vm": [
                {
                    "id": "vm-aws-shson-01",
                    "name": "vm-aws-shson-01",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "3.90.103.21",
                    "publicDNS": "",
                    "status": ""
                },
                {
                    "id": "vm-aws-shson-02",
                    "name": "vm-aws-shson-02",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "54.175.56.22",
                    "publicDNS": "",
                    "status": ""
                },
                {
                    "id": "vm-aws-shson-03",
                    "name": "vm-aws-shson-03",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "54.144.67.40",
                    "publicDNS": "",
                    "status": ""
                }
            ]
        }
    ]
}
  • 현재 상태를 포함하는 MCIS List 조회 옵션
    • 기존 MCIS 조회 Path에 QueryParam 추가 (?option=status)
    • MCIS와 VM의 Status를 최신 상태 정보로 회신
API CALL: {{tb_ip}}:{{tb_port}}{{tb_prefix}}/ns/{{ns_id}}/mcis?option=status
REPONSE:
{
    "mcis": [
        {
            "id": "MCIS-aws-shson",
            "name": "MCIS-aws-shson",
            "status": "Running",
            "placement_algo": "",
            "description": "Tumblebug Demo",
            "vm": [
                {
                    "id": "vm-aws-shson-01",
                    "name": "vm-aws-shson-01",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "3.90.103.21",
                    "publicDNS": "",
                    "status": "Running"
                },
                {
                    "id": "vm-aws-shson-02",
                    "name": "vm-aws-shson-02",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "54.175.56.22",
                    "publicDNS": "",
                    "status": "Running"
                },
                {
                    "id": "vm-aws-shson-03",
                    "name": "vm-aws-shson-03",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "54.144.67.40",
                    "publicDNS": "",
                    "status": "Running"
                }
            ]
        }
    ]
}

@jazmandorf
Copy link
Member Author

넵 감사합니다.

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

No branches or pull requests

2 participants