Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

API break in pod responses  #2735

Copy link
Copy link
@resmo

Description

@resmo
Issue body actions

While testing 4.11 with ansible integration tests, I noticed an unexpected change in the types of the responses for pods. the startip endip,vlanid return type changed from string to list as well as forsystemvms doesn't look that is should be a list.

This is a undocumented (unexpected) API change and breaks clients (ansible)

related to #2048 and https://github.com/apache/cloudstack/pull/2048/files#r148808665
/cc @nitin-maharana

ISSUE TYPE
  • Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.11.1
CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY
STEPS TO REPRODUCE
call listPods api
EXPECTED RESULTS

in cloudstack 4.5.

{
  "count": 1, 
  "pod": [
    {
      "allocationstate": "Enabled", 
      "endip": "10.100.209.229", 
      "gateway": "10.100.209.1", 
      "id": "f70e1090-7bc6-421f-8faa-8de8322abfcc", 
      "name": "Pod01", 
      "netmask": "255.255.255.0", 
      "startip": "10.100.209.100", 
      "zoneid": "f2ed7eda-a1f3-4a0b-b666-8f31f9a3d03e", 
      "zonename": "ZUERICH_EQ"
    }
  ]
}

ACTUAL RESULTS

in cloudstack 4.11

{
  "count": 1, 
  "pod": [
    {
      "allocationstate": "Enabled", 
      "endip": [
        "172.16.15.254"
      ], 
      "forsystemvms": [
        "0"
      ], 
      "gateway": "172.16.15.1", 
      "id": "a7837885-f6a7-4180-b64c-c9893c13e5d1", 
      "name": "POD0-basic", 
      "netmask": "255.255.255.0", 
      "startip": [
        "172.16.15.2"
      ], 
      "vlanid": [
        "vlan://untagged"
      ], 
      "zoneid": "885d35d4-5702-4e46-99aa-80f08ca4a2b5", 
      "zonename": "Sandbox-simulator-basic"
    }
  ]
}
Reactions are currently unavailable

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.