Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

CORTX-32711:Implement REST API for query deployment (#875) #884

Closed
wants to merge 2 commits into from

Conversation

Pranali04796
Copy link
Contributor

@Pranali04796 Pranali04796 commented Aug 10, 2022

Pull Request

Problem Statement

  • CORTX-32711:Implement REST API for query deployment
  • Jira reference: CORTX-32711

Design

Coding

Checklist for Author

  • Coding conventions are followed and code is consistent

Testing

Checklist for Author

  • Unit and System Tests are added

  • Test Cases cover Happy Path, Non-Happy Path and Scalability

  • Testing was performed with RPM
    Build details:
    image
    Deployment details:
    image

  • Custom CI details:

  • curl --location --request GET 'https://ssc-vm-g2-rhev4-3260.colo.seagate.com:31169/api/v2/system/topology -k '

{
"topology": {
"cluster": [
{
"id": "0007ec45379e36d9fa089a3d615c32a3",
"version": "2.0.0-5072",
"nodes": [
{
"id": "bbb340f79047df9bb52fa460615c32a5",
"version": "2.0.0-84",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "bba340f79047df9bb52fa460615c32a5",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
},
{
"id": "1115f539f4f770e2a3fe9e2e615c32a8",
"version": "2.0.0-846",
"type": "ha_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "ha",
"version": "2.0.0-5070"
}
]
},
{
"id": "ccc8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "8efd697708a8f7e428d3fd520c180795",
"version": "2.0.0-846",
"type": "control_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "csm",
"services": [
"agent"
],
"version": "2.0.0-5072"
}
]
},
{
"id": "fff8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare",
"version": "2.0.0-5072"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "eee340f79047df9bb52fa460615c32a5",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "aaa120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "ddd120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare",
"version": "2.0.0-5072"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "cca8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
},
{
"id": "eee120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
}
],
"storage_set": [
{
"name": "storage-set-1",
"durability": {
"dix": {
"data": "1",
"parity": "0",
"spare": "0"
},
"sns": {
"data": "1",
"parity": "0",
"spare": "0"
}
}
}
],
"certificate": [
{
"subject": {
"countryName": "IN",
"stateOrProvinceName": "MH",
"localityName": "Pune",
"organizationName": "Seagate Technology",
"commonName": "seagate.com"
},
"issuer": {
"countryName": "IN",
"stateOrProvinceName": "MH",
"localityName": "Pune",
"organizationName": "Seagate Technology",
"commonName": "seagate.com"
},
"not_valid_after": "2032-03-05 09:47:00",
"not_valid_before": "2022-03-08 09:47:00",
"serial_number": 641940933613535422020029400965858427869994973022,
"version": "Version.v3",
"path": "/etc/cortx/solution/ssl/s3.seagate.com.pem",
"type": "SSL Certificate"
}
]
},
{
"id": "0007ec45379e36d9fa089a3d615c32a31",
"version": "2.0.0-5072",
"nodes": [],
"storage_set": [
{
"name": "storage-set-11",
"durability": {
"dix": {
"data": "11",
"parity": "0",
"spare": "0"
},
"sns": {
"data": "11",
"parity": "0",
"spare": "0"
}
}
}
],
"certificate": [
{
"subject": {
"countryName": "IN",
"stateOrProvinceName": "MH",
"localityName": "Pune",
"organizationName": "Seagate Technology",
"commonName": "seagate.com"
},
"issuer": {
"countryName": "IN",
"stateOrProvinceName": "MH",
"localityName": "Pune",
"organizationName": "Seagate Technology",
"commonName": "seagate.com"
},
"not_valid_after": "2032-03-05 09:47:00",
"not_valid_before": "2022-03-08 09:47:00",
"serial_number": 641940933613535422020029400965858427869994973022,
"version": "Version.v3",
"path": "/etc/cortx/solution/ssl/s3.seagate.com.pem",
"type": "SSL Certificate"
}
]
}
]
}
}

  • curl --location --request GET 'https://ssc-vm-g2-rhev4-3260.colo.seagate.com:31169/api/v2/system/topology/cluster -k '

{
"topology": {
"cluster": [
{
"id": "0007ec45379e36d9fa089a3d615c32a3",
"version": "2.0.0-5072",
"nodes": [
{
"id": "bbb340f79047df9bb52fa460615c32a5",
"version": "2.0.0-84",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "bba340f79047df9bb52fa460615c32a5",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
},
{
"id": "1115f539f4f770e2a3fe9e2e615c32a8",
"version": "2.0.0-846",
"type": "ha_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "ha",
"version": "2.0.0-5070"
}
]
},
{
"id": "ccc8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "8efd697708a8f7e428d3fd520c180795",
"version": "2.0.0-846",
"type": "control_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "csm",
"services": [
"agent"
],
"version": "2.0.0-5072"
}
]
},
{
"id": "fff8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare",
"version": "2.0.0-5072"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "eee340f79047df9bb52fa460615c32a5",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "aaa120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "ddd120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare",
"version": "2.0.0-5072"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "cca8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
},
{
"id": "eee120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
}
],
"storage_set": [
{
"name": "storage-set-1",
"durability": {
"dix": {
"data": "1",
"parity": "0",
"spare": "0"
},
"sns": {
"data": "1",
"parity": "0",
"spare": "0"
}
}
}
],
"certificate": [
{
"subject": {
"countryName": "IN",
"stateOrProvinceName": "MH",
"localityName": "Pune",
"organizationName": "Seagate Technology",
"commonName": "seagate.com"
},
"issuer": {
"countryName": "IN",
"stateOrProvinceName": "MH",
"localityName": "Pune",
"organizationName": "Seagate Technology",
"commonName": "seagate.com"
},
"not_valid_after": "2032-03-05 09:47:00",
"not_valid_before": "2022-03-08 09:47:00",
"serial_number": 641940933613535422020029400965858427869994973022,
"version": "Version.v3",
"path": "/etc/cortx/solution/ssl/s3.seagate.com.pem",
"type": "SSL Certificate"
}
]
},
{
"id": "0007ec45379e36d9fa089a3d615c32a31",
"version": "2.0.0-5072",
"nodes": [],
"storage_set": [
{
"name": "storage-set-11",
"durability": {
"dix": {
"data": "11",
"parity": "0",
"spare": "0"
},
"sns": {
"data": "11",
"parity": "0",
"spare": "0"
}
}
}
],
"certificate": [
{
"subject": {
"countryName": "IN",
"stateOrProvinceName": "MH",
"localityName": "Pune",
"organizationName": "Seagate Technology",
"commonName": "seagate.com"
},
"issuer": {
"countryName": "IN",
"stateOrProvinceName": "MH",
"localityName": "Pune",
"organizationName": "Seagate Technology",
"commonName": "seagate.com"
},
"not_valid_after": "2032-03-05 09:47:00",
"not_valid_before": "2022-03-08 09:47:00",
"serial_number": 641940933613535422020029400965858427869994973022,
"version": "Version.v3",
"path": "/etc/cortx/solution/ssl/s3.seagate.com.pem",
"type": "SSL Certificate"
}
]
}
]
}
}

  • curl --location --request GET 'https://ssc-vm-g2-rhev4-3260.colo.seagate.com:31169/api/v2/system/topology/cluster/ -k '

{
"topology": {
"cluster": [
{
"id": "0007ec45379e36d9fa089a3d615c32a3",
"version": "2.0.0-5072",
"nodes": [
{
"id": "bbb340f79047df9bb52fa460615c32a5",
"version": "2.0.0-84",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "bba340f79047df9bb52fa460615c32a5",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
},
{
"id": "1115f539f4f770e2a3fe9e2e615c32a8",
"version": "2.0.0-846",
"type": "ha_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "ha",
"version": "2.0.0-5070"
}
]
},
{
"id": "ccc8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "8efd697708a8f7e428d3fd520c180795",
"version": "2.0.0-846",
"type": "control_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "csm",
"services": [
"agent"
],
"version": "2.0.0-5072"
}
]
},
{
"id": "fff8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare",
"version": "2.0.0-5072"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "eee340f79047df9bb52fa460615c32a5",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "aaa120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "ddd120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare",
"version": "2.0.0-5072"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "cca8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
},
{
"id": "eee120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
}
],
"storage_set": [
{
"name": "storage-set-1",
"durability": {
"dix": {
"data": "1",
"parity": "0",
"spare": "0"
},
"sns": {
"data": "1",
"parity": "0",
"spare": "0"
}
}
}
],
"certificate": [
{
"subject": {
"countryName": "IN",
"stateOrProvinceName": "MH",
"localityName": "Pune",
"organizationName": "Seagate Technology",
"commonName": "seagate.com"
},
"issuer": {
"countryName": "IN",
"stateOrProvinceName": "MH",
"localityName": "Pune",
"organizationName": "Seagate Technology",
"commonName": "seagate.com"
},
"not_valid_after": "2032-03-05 09:47:00",
"not_valid_before": "2022-03-08 09:47:00",
"serial_number": 641940933613535422020029400965858427869994973022,
"version": "Version.v3",
"path": "/etc/cortx/solution/ssl/s3.seagate.com.pem",
"type": "SSL Certificate"
}
]
}
]
}
}

curl --location --request GET 'https://ssc-vm-g2-rhev4-3260.colo.seagate.com:31169/api/v2/system/topology/cluster/0007ec45379e36d9fa089a3d615c32a3/nodes -k '

{
"topology": {
"cluster": [
{
"id": "0007ec45379e36d9fa089a3d615c32a3",
"nodes": [
{
"id": "bbb340f79047df9bb52fa460615c32a5",
"version": "2.0.0-84",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "bba340f79047df9bb52fa460615c32a5",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
},
{
"id": "1115f539f4f770e2a3fe9e2e615c32a8",
"version": "2.0.0-846",
"type": "ha_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "ha",
"version": "2.0.0-5070"
}
]
},
{
"id": "ccc8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "8efd697708a8f7e428d3fd520c180795",
"version": "2.0.0-846",
"type": "control_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "csm",
"services": [
"agent"
],
"version": "2.0.0-5072"
}
]
},
{
"id": "fff8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare",
"version": "2.0.0-5072"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "eee340f79047df9bb52fa460615c32a5",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "aaa120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
},
{
"id": "ddd120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "server_node",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "hare",
"version": "2.0.0-5072"
},
{
"name": "rgw",
"version": "2.0.0-5073",
"services": [
"rgw_s3"
]
}
]
},
{
"id": "cca8700fe6797ed532e311b0615c32a7",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
},
{
"id": "eee120a9e051d103c164f605615c32a4",
"version": "2.0.0-846",
"type": "data_node/2",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdf",
"/dev/sdg"
],
"metadata": [
"/dev/sde"
],
"log": [
"/dev/sdi"
]
},
"name": "cvg-02",
"type": "ios"
}
]
}
]
}
]
}
}

curl --location --request GET 'https://ssc-vm-g2-rhev4-3260.colo.seagate.com:31169/api/v2/system/topology/cluster/0007ec45379e36d9fa089a3d615c32a3/nodes/bbb340f79047df9bb52fa460615c32a5'

{
"topology": {
"cluster": [
{
"id": "0007ec45379e36d9fa089a3d615c32a3",
"nodes": [
{
"id": "bbb340f79047df9bb52fa460615c32a5",
"version": "2.0.0-84",
"type": "data_node/1",
"components": [
{
"name": "utils",
"version": "2.0.0-5058"
},
{
"name": "motr",
"version": "2.0.0-5060",
"services": [
"io"
]
},
{
"name": "hare",
"version": "2.0.0-5072"
}
],
"cvg": [
{
"devices": {
"data": [
"/dev/sdc",
"/dev/sdd"
],
"metadata": [
"/dev/sdb"
],
"log": [
"/dev/sdh"
]
},
"name": "cvg-01",
"type": "ios"
}
]
}
]
}
]
}
}

Impact Analysis

Checklist for Author/Reviewer/GateKeeper

  • Interface change (if any) are documented
  • Side effects on other features (deployment/upgrade)
  • Dependencies on other component(s)

Review Checklist

Checklist for Author

  • JIRA number/GitHub Issue added to PR
  • PR is self reviewed
  • Jira and state/status is updated and JIRA is updated with PR link
  • Check if the description is clear and explained

Documentation

Checklist for Author

FS: CORTX K8s Deployment for LR Reference Config - Private-Cortx - Confluence (atlassian.net)

* CORTX-32711:Implement REST API for query deployment

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Implement REST API for query deployment

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Implement REST API for query deployment

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Implement REST API for query deployment

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Implement REST API for query deployment

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Implement REST API for query deployment

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix codacy issue

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Handle negative scenario

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Handle negative scenario

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Handle negative scenario

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Handle negative scenario

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Handle review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Handle review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Handle review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Handle review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Handle review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Handle review comments

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix codacy issues

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix codacy issues

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix codacy issues

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix codacy issues

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix codacy issues

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

* CORTX-32711:Fix codacy issues

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>
@stale
Copy link

stale bot commented Aug 16, 2022

This issue/pull request has been marked as needs attention as it has been left pending without new activity for 4 days. Tagging @ajaysrivas @kupranay for appropriate assignment. Sorry for the delay & Thank you for contributing to CORTX. We will get back to you as soon as possible.

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>

Signed-off-by: Pranali Ugale <pranali.ugale@seagate.com>
@stale stale bot removed the needs-attention label Aug 16, 2022
@Pranali04796
Copy link
Contributor Author

Closing PR as it is covered by #893

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

Successfully merging this pull request may close these issues.

4 participants