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

Different format in HostResponse and HostForMigrationResponse #4460

Copy link
Copy link
@weizhouapache

Description

@weizhouapache
Issue body actions

The value of memoryallocated in the output of listhosts and findhostformigration are different.

(local) mgt01 > list hosts filter=cpuallocated,memoryallocated type=Routing
{
  "count": 5,
  "host": [
    {
      "cpuallocated": "12.51%",
      "memoryallocated": 1879048192
    },
    {
      "cpuallocated": "1.14%",
      "memoryallocated": 536870912
    },
    {
      "cpuallocated": "0%",
      "memoryallocated": 0
    },
    {
      "cpuallocated": "0%",
      "memoryallocated": 0
    },
    {
      "cpuallocated": "18.19%",
      "memoryallocated": 7247757312
    }
  ]
}

find host for migration

(local) mgt01 > find hostsformigration virtualmachineid=39 filter=cpuallocated,memoryallocated
{
  "count": 5,
  "host": [
    {
      "cpuallocated": "0%",
      "memoryallocated": "0%"
    },
    {
      "cpuallocated": "0%",
      "memoryallocated": "0%"
    },
    {
      "cpuallocated": "1.14%",
      "memoryallocated": "7.36%"
    },
    {
      "cpuallocated": "12.73%",
      "memoryallocated": "29.43%"
    }
  ]
}

they should be same.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

CLOUDSTACK VERSION
4.14
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE

EXPECTED RESULTS
memoryallocated in two responses are in same format (amount or percentage)
ACTUAL RESULTS

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    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.