-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
ISSUE TYPE
- Improvement Request
COMPONENT NAME
Component:api
CLOUDSTACK VERSION
4.17.2
SUMMARY
Include the management server ip address in the listManagementServers api call
https://cloudstack.apache.org/api/apidocs-4.17/apis/listManagementServers.html
Currently the api response doesn't include the management server ip address.
It would be helpful if the ipaddress is also included in the api response
We are storing the value of ipaddress of management server in the database table "mshost" there is a "service_ip" address feild
(cloudstack) 🐱 > list managementservers
{
"count": 2,
"managementserver": [
{
"id": "68ab9b9e-a808-4cc5-8a75-b79c71a6603a",
"javadistribution": "Red Hat, Inc.",
"javaversion": "11.0.18+10-LTS",
"lastboottime": "2023-03-13T10:29:43+0000",
"lastserverstart": "2023-03-13T10:37:16+0000",
"lastserverstop": "2023-03-14T05:05:17+0000",
"name": "pr6755-t6277-kvm-centos7-mgmt1.sofia.shapeblue.com",
"osdistribution": "CentOS Linux 7 (Core)",
"state": "Down",
"version": "4.18.0.0-SNAPSHOT"
},
{
"id": "3e231c35-c30f-4330-8dbd-aa2b1bedccf0",
"javadistribution": "Red Hat, Inc.",
"javaversion": "11.0.18+10-LTS",
"lastboottime": "2023-03-13T10:30:08+0000",
"lastserverstart": "2023-03-13T10:37:14+0000",
"name": "pr6755-t6277-kvm-centos7-mgmt2.sofia.shapeblue.com",
"osdistribution": "CentOS Linux 7 (Core)",
"state": "Up",
"version": "4.18.0.0-SNAPSHOT"
}
]
}
MariaDB [cloud]> select * from mshost \G;
*************************** 1. row ***************************
id: 1
msid: 32988704276849
runid: 1678703851179
name: pr6755-t6277-kvm-centos7-mgmt1.sofia.shapeblue.com
uuid: 68ab9b9e-a808-4cc5-8a75-b79c71a6603a
state: Down
version: 4.18.0.0-SNAPSHOT
service_ip: 10.0.32.222
service_port: 9090
last_update: 2023-03-14 05:05:16
removed: NULL
alert_count: 1
*************************** 2. row ***************************
id: 2
msid: 32987966079630
runid: 1678703852224
name: pr6755-t6277-kvm-centos7-mgmt2.sofia.shapeblue.com
uuid: 3e231c35-c30f-4330-8dbd-aa2b1bedccf0
state: Up
version: 4.18.0.0-SNAPSHOT
service_ip: 10.0.33.251
service_port: 9090
last_update: 2023-03-14 07:08:48
removed: NULL
alert_count: 0
EXPECTED RESULTS
listManagementServers api response should include the ipaddress of the management server
ACTUAL RESULTS
listManagementServers api response doesn't include the ipaddress of the management server