anniejili opened a new pull request, #8471:
URL: https://github.com/apache/cloudstack/pull/8471

   ### Description
   
   This PR fixes: https://github.com/shapeblue/cloudstack-apple/issues/298
   If there is a failure during VM create after vm entity is persisted, Vm UUID 
will be included as part of the error response.
   
   {
       "deployvirtualmachineresponse": {
           "uuidList": [
               {
                   **"serialVersionUID": -7514266713085362000,
                   "uuid": "f1a9a209-20a8-42ce-8f5c-457f2f560e95",
                   "description": "vmId"**
               }
           ],
           "errorcode": 530,
           "cserrorcode": 4250,
           "errortext": “Error text”
       }
   }
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [X] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [X] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [ ] Minor
   - [ ] Trivial
   
   
   ### Screenshots (if appropriate):
   DeployVm API response without fix:
   
   {
       "deployvirtualmachineresponse": {
           "uuidList": [],
           "errorcode": 530,
           "cserrorcode": 4250,
           "errortext": “Error text”
       }
   }
   
   After Fix:
   {
       "deployvirtualmachineresponse": {
           "uuidList": [
               {
                   **"serialVersionUID": -7514266713085362000,
                   "uuid": "f1a9a209-20a8-42ce-8f5c-457f2f560e95",
                   "description": "vmId"**
               }
           ],
           "errorcode": 530,
           "cserrorcode": 4250,
           "errortext": “Error text”
       }
   }
   
   
   
   ### How Has This Been Tested?
   Change was tested in my own development environment.
   
   
   <!-- Please read the 
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) 
document -->
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to