mike-tutkowski opened a new pull request #2499: Updates to capacity management
URL: https://github.com/apache/cloudstack/pull/2499
 
 
   ## Description
   In StorageManagerImpl.storagePoolHasEnoughSpace, we need to update a couple 
areas of the algorithm that calculates if enough space is present when dealing 
with managed storage:
   
   1) We no longer can rely on managed storage being exclusively at the zone 
level. Check if the storage is managed (not if if it at the zone level).
   
   2) Invoke getBytesRequiredForTemplate not only for XenServer when 
getSupportsResigning resolves to true, but also if using VMware or KVM.
   
   https://issues.apache.org/jira/browse/CLOUDSTACK-10335
   
   ## Types of changes
   - [ ] 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)
   
   ## How Has This Been Tested?
   
   Initially I noticed on VMware and KVM that templates were not being included 
in the space used for primary storage when that storage is managed. I made the 
necessary changes (included in this PR) and then checked space used to verify 
that the new calculated number was now accurate for managed storage when using 
those hypervisor types.
   
   ## Checklist:
   - [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.
   - [ ] I have added tests to cover my changes.
   - [ x] All new and existing tests passed.
   
   <!-- The following will kick a packaging job, remove it as applicable -->
   @blueorangutan package
   

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