rafaelweingartner opened a new pull request #2761: Add managed storage pool 
constraints to MigrateWithVolume API method
URL: https://github.com/apache/cloudstack/pull/2761
 
 
   ## Description
   <!--- Describe your changes in detail -->
   
   Mike discovered that when PR https://github.com/apache/cloudstack/pull/2425/ 
was merged, we created a bug with managed storage. The following constraints 
needed to be added to ACS:
   * If I want to migrate a VM across clusters, but if at least one of its 
volumes is placed in a cluster-wide managed storage, the migration is not 
allowed. On the other hand, if the VM is placed in a managed zone-wide storage, 
the migration can be executed;
   * A volume placed in managed storage can never (at least not using this 
migrateWithVolume method) be migrated out of the storage pool it resides; 
   * When migrating a VM that does not have volumes in managed storage, it 
should be possible to migrate it cross clusters. Therefore, we should try to 
use the volume allocators to find a suitable storage pool for its volumes in 
the target cluster.
   
   <!-- For new features, provide link to FS, dev ML discussion etc. -->
   <!-- In case of bug fix, the expected and actual behaviours, steps to 
reproduce. -->
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Put an `x` in all the 
boxes that apply: -->
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [X] 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)
   
   ## GitHub Issue/PRs
   <!-- If this PR is to fix an issue or another PR on GH, uncomment the 
section and provide the id of issue/PR -->
   <!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be 
closed when this PR gets merged -->
   <!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
   
   <!-- Fixes: # -->
   
   ## Checklist:
   <!--- Go over all the following points, and put an `x` in all the boxes that 
apply. -->
   <!--- If you're unsure about any of these, don't hesitate to ask. We're here 
to help! -->
   - [X] I have read the 
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md)
 document.
   - [X] My code follows the code style of this project.
   - [ ] My change requires a change to the documentation.
   - [ ] I have updated the documentation accordingly.
   Testing
   - [X] I have added tests to cover my changes.
   - [ ] All relevant new and existing integration tests have passed.
   - [ ] A full integration testsuite with all test that can run on my 
environment has passed.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to