cloudstack/api/src/main/java/com/cloud/deploy
Bryan Lima c45596cca3
Refactor of Allocator classes (#9074)
* Refactoring Allocator classes

* Break into smaller methods random and firfit allocators.

* Added unit tests for random and firstfit allocators

* Move random allocator from cloud-plugins to cloud-server

* Add BaseAllocator abstract class for duplicate code

* Add missing license

* Add missing license to unit test file

* Remove host allocator random dependency

* Change exception message on smoke tests

* Remove conditional as it was never actually reached in the original flow

* Fix tests

* Fix flipped parameters

* Fix NPE while listing hosts for migration when suitableHosts is null

* Remove unnecessary stubbings

* Fix checkstyle

* Remove unnecessary file

* Rename exception error messages

* Apply suggestions from code review

Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>

* Rename UserVmDetailVO references to VMInstanceDetailVO

* Remove unused imports

* Add new line at EOF

* Remove unnecessary random allocator pom

* Fix GPU allocation mistake

* Fix failing tests

---------

Co-authored-by: Fabricio Duarte <fabricio.duarte@scclouds.com.br>
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
2026-04-30 10:30:02 -03:00
..
DataCenterDeployment.java new plugins: Add non-strict affinity groups (#6845) 2022-12-20 15:09:52 +01:00
DeployDestination.java Fix: memory leak on volume allocation (#7136) 2023-01-30 09:44:50 +01:00
DeploymentClusterPlanner.java Cleanup userconcentratedpod_random and userconcentratedpod_firstfit allocation algorithms (#12233) 2025-12-22 14:25:33 +01:00
DeploymentPlan.java new plugins: Add non-strict affinity groups (#6845) 2022-12-20 15:09:52 +01:00
DeploymentPlanner.java Refactor of Allocator classes (#9074) 2026-04-30 10:30:02 -03:00
HAPlanner.java Add three more `pre-commit` checks (#7083) 2023-03-27 13:28:55 +02:00