You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "OlegChuev (via GitHub)" <gi...@apache.org> on 2024/11/19 10:38:56 UTC

[I] destroyVirtualMachine API call with expunge set to true returns null in the response [cloudstack]

OlegChuev opened a new issue, #9946:
URL: https://github.com/apache/cloudstack/issues/9946

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.18.1.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   When VM is destroyed with expunge = true, unexpected response is returned. 
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   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.
   
   ~~~
   
   ![Screenshot 2024-11-19 at 12 28 14 PM](https://github.com/user-attachments/assets/fab117dc-1df5-459b-b311-69e56aeaa5ed)
   
   ![Screenshot 2024-11-19 at 12 36 23 PM](https://github.com/user-attachments/assets/f4645fc1-cf7e-405a-a2d1-9570343eff3d)
   
   ![Screenshot 2024-11-19 at 12 35 10 PM](https://github.com/user-attachments/assets/172a1a8b-20df-42e6-bfc6-94830802b385)
   
   ##### 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"
       }
   }
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] destroyVirtualMachine API call with expunge set to true returns null in the response [cloudstack]

Posted by "OlegChuev (via GitHub)" <gi...@apache.org>.
OlegChuev commented on issue #9946:
URL: https://github.com/apache/cloudstack/issues/9946#issuecomment-2491129732

   @DaanHoogland ltgm, thank you! 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] destroyVirtualMachine API call with expunge set to true returns null in the response [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #9946:
URL: https://github.com/apache/cloudstack/issues/9946#issuecomment-2488104412

   @OlegChuev , Can you test PR #9949? I think it addresses your issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] destroyVirtualMachine API call with expunge set to true returns null in the response [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #9946: destroyVirtualMachine API call with expunge set to true returns null in the response
URL: https://github.com/apache/cloudstack/issues/9946


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] destroyVirtualMachine API call with expunge set to true returns null in the response [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #9946:
URL: https://github.com/apache/cloudstack/issues/9946#issuecomment-2523288523

   fixed in #9949


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org