-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Milestone
Description
ISSUE TYPE
- Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.18.1.0
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
When VM is destroyed with expunge = true, unexpected response is returned.
STEPS TO REPRODUCE
1. Create any VM.
2. Click Destroy VM and set expunge equal to true.
3. Wait until the destroy process finishes.
4. Check the response.
EXPECTED RESULTS
`destroyVirtualMachine` returns information about destroyed VM as it does for regular destroy
ACTUAL RESULTS
`destroyVirtualMachine` request with following params:
id: 353a646c-e91e-41c9-b916-ac3982a341bb
expunge: true
command: destroyVirtualMachine
response: json
returns unexpected jobresult:
{
"queryasyncjobresultresponse": {
"accountid": "41dcfb95-eda5-11ee-8e71-0242ac110002",
"userid": "41dd1dfc-eda5-11ee-8e71-0242ac110002",
"cmd": "org.apache.cloudstack.api.command.admin.vm.DestroyVMCmdByAdmin",
"jobstatus": 1,
"jobprocstatus": 0,
"jobresultcode": 0,
"jobresulttype": "object",
"jobresult": {
"null": { // <- Why null?
"securitygroup": [], // <- Why exactly these empty arrays?
"nic": [],
"affinitygroup": [],
"tags": []
}
},
"jobinstancetype": "VirtualMachine",
"jobinstanceid": "353a646c-e91e-41c9-b916-ac3982a341bb",
"created": "2024-11-19T10:29:02+0000",
"completed": "2024-11-19T10:29:10+0000",
"jobid": "9f623724-1d2c-4cf7-9cc2-5291e49e64a0"
}
}


