[ https://issues.apache.org/jira/browse/CLOUDSTACK-8825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985061#comment-14985061 ]
ASF subversion and git services commented on CLOUDSTACK-8825: ------------------------------------------------------------- Commit a981d34f4950e150d755f6e36e926b5cf757ca30 in cloudstack's branch refs/heads/master from [~remibergsma] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=a981d34 ] Merge pull request #787 from anshul1886/CLOUDSTACK-8824-8825 CLOUDSTACK-8825, CLOUDSTACK-8824 : Fixed issues if vm.allocation.algorithm is set to firstfitleastconsumedFixed following issues if vm.allocation.algorithm is set to firstfitleastconsumed 1. VM deployment failure if thre is only ZWPS in setup 2. VM migration is impossible from UI To test 1. Create setup with ZWPS only 2. set vm.allocation.algorithm to firstfitleastconsumed in global settings 3. deploy virtual machine observation: vm deployment will fail After this fix it will pass second scenario 1. Create Cloudstack Setup with two hosts (As it needs setup for migration) 2. Try migrating VM from UI Observation: There will be error response in logs with nothing available in UI After fix it will pass Regarding BVT I am not sure whether there exists tests for firstfitleastconsumed vm allocation algorithm. * pr/787: CLOUDSTACK-8825, CLOUDSTACK-8824 : Fixed following issues if vm.allocation.algorithm is set to firstfitleastconsumed 1. VM deployment failure if thre is only ZWPS in setup 2. VM migration is impossible from UI Signed-off-by: Remi Bergsma <git...@remi.nl> > Setting vm.allocation.algorithm to firstfitleastconsumed makes vm migration > impossible from UI > ---------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-8825 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8825 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Reporter: Anshul Gangwar > Assignee: Anshul Gangwar > Priority: Critical > Fix For: 4.6.0 > > > 2015-07-28 15:11:05,690 DEBUG [c.c.a.ApiServlet] > (catalina-exec-20:ctx-1ba307fb) (logid:c70d7c41) ===START=== 10.103.2.50 -- > GET > command=findHostsForMigration&VirtualMachineId=880e71e6-c714-4a65-adc4-dd1e08aae8dd&response=json&sessionkey=XF0%2Fsb%2BhBReDbbWgKx%2FMmujS0R8%3D&_=1438076504170 > > 2015-07-28 15:11:05,751 ERROR [c.c.a.ApiServer] > (catalina-exec-20:ctx-1ba307fb ctx-899f7829) (logid:c70d7c41) unhandled > exception executing api command: [Ljava.lang.String;@39d29ca6 > com.cloud.utils.exception.CloudRuntimeException: Caught: SELECT host_id, > SUM(total_capacity - (used_capacity+reserved_capacity))/SUM(total_capacity) > FROM `cloud`.`op_host_capacity` WHERE cluster_id = ? AND capacity_type = ? > GROUP BY host_id ORDER BY SUM(total_capacity - > (used_capacity+reserved_capacity))/SUM(total_capacity) DESC > at > com.cloud.capacity.dao.CapacityDaoImpl.orderHostsByFreeCapacity(CapacityDaoImpl.java:884) -- This message was sent by Atlassian JIRA (v6.3.4#6332)