Skip to content

updatePod does not update start/end IPs #2797

@resmo

Description

@resmo

I noticed an API break in 4.11 in which updatePod does not update the start and end IPs, introduced by #2048?

Also see #2735

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

N/A

OS / ENVIRONMENT

N/A

SUMMARY
STEPS TO REPRODUCE
 $ cs listPods name=ansible-test-stxtc00039-64183073-pod                     
{
  "count": 1, 
  "pod": [
    {
      "allocationstate": "Enabled", 
      "endip": [
        "10.100.10.254"
      ], 
      "forsystemvms": [
        "0"
      ], 
      "gateway": "10.100.10.1", 
      "id": "b427733b-f0fd-408d-be31-7f2b4e3b2a95", 
      "name": "ansible-test-stxtc00039-64183073-pod", 
      "netmask": "255.255.255.0", 
      "startip": [
        "10.100.10.101"
      ], 
      "vlanid": [
        "vlan://untagged"
      ], 
      "zoneid": "ff7e77a4-103f-4c1c-9878-cea1573cd622", 
      "zonename": "ansible-test-stxtc00039-64183073-zone"
    }
  ]
}

update the startip

 $ cs updatePod id=b427733b-f0fd-408d-be31-7f2b4e3b2a95 startip=10.100.10.102
{
  "pod": {
    "allocationstate": "Enabled", 
    "endip": [
      "10.100.10.254"
    ], 
    "forsystemvms": [
      "0"
    ], 
    "gateway": "10.100.10.1", 
    "id": "b427733b-f0fd-408d-be31-7f2b4e3b2a95", 
    "name": "ansible-test-stxtc00039-64183073-pod", 
    "netmask": "255.255.255.0", 
    "startip": [
      "10.100.10.101"
    ], 
    "vlanid": [
      "vlan://untagged"
    ], 
    "zoneid": "ff7e77a4-103f-4c1c-9878-cea1573cd622", 
    "zonename": "ansible-test-stxtc00039-64183073-zone"
  }
}
EXPECTED RESULTS
startip gets updated to 10.100.10.102
ACTUAL RESULTS
startip is not updated

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions