ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
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