Skip to content

Include the management server ip address in the listManagementServers api call response #7338

Closed

Description

@kiranchavala
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

Activity

  1. changed the title [-]Include the management server ip address in the listManagementServers api call[/-] [+]Include the management server ip address in the listManagementServers api call response[/+] on Mar 14, 2023
  2. added this to the 4.18.1.0 milestone on Mar 22, 2023
  3. shwstppr commented on Apr 6, 2023

    @shwstppr
    Contributor

    Fixed with #7374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions