Skip to content

API: listVirtualMachines endpoint doesn't return VMs in Expunged state #8856

@OlegChuev

Description

@OlegChuev
ISSUE TYPE
  • Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.15.2, 4.18.1
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

VMs in the Expunged state are not returned using the listVirtualMachines endpoint. Even usage of listall and specifying of the state doesn't help. According to docs:
Possible values are: Running, Stopped, Present, Destroyed, Expunged. Present is used for the state equal not destroyed.

STEPS TO REPRODUCE
1) Navigate to https://qa.cloudstack.cloud/simulator/#/vm
2) Create VM
3) Destroy VM
4) Expunge VM
4) Try to retrieve this VM using the API request and admin API and Secret Keys
EXPECTED RESULTS
Either docs are updated or VMs are returned
ACTUAL RESULTS
VMs in the `Expunged` state aren't returned

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions