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

   ### Description
   
   ACS has an API to change the account that owns a VM; however, it is not 
possible to perform the same type of operation  for volumes. Therefore, we 
created the API `assignVolume` to allow the transition of volumes between 
accounts. For this, the user executing the operation needs the following:
   - permission to the `assignVolume` API
   - must be able to access the account that will receive the volume
   - must be able to access the volume being moved to a new account
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [X] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] 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):
   
   
   ### How Has This Been Tested?
   | N | Test | Result | Expected behavior? |
   | ------ | ------ | ------ | ------ |
   |1| Call the API to change a volume's owner between two different accounts | 
the volume's owner was changed | yes |
   |2| Call the API to change the volume's owner to its own account  | 
Exception | yes |
   |3| Call the API to change the volume's owner to a disabled account  | 
Exception | yes |
   |4| Call the API to change the volume's owner to a locked account  | 
Exception | yes |
   |5| Call the API to change the volume's owner while the volume is attached | 
Exception | yes |
   |6| Call the API to change the volume's owner while the volume has a 
snapshot | Exception | yes |
   |7| Call the API to change a volume's owner between two different accounts, 
while the volume is on the secondary storage | The volume was moved from the 
original accounts secondary storage directory to the new owner's secondary 
storage directory and then was reassigned | yes |


-- 
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