[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-8825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14734675#comment-14734675
 ] 

ASF GitHub Bot commented on CLOUDSTACK-8825:
--------------------------------------------

GitHub user anshul1886 opened a pull request:

    https://github.com/apache/cloudstack/pull/787

    CLOUDSTACK-8825, CLOUDSTACK-8824 : Fixed issues if vm.allocation.algorithm 
is set to firstfitleastconsumed

    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

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/anshul1886/cloudstack-1 CLOUDSTACK-8824-8825

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/787.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #787
    
----
commit a5555ed229de466a0b3834cc8983551cf36fcc53
Author: Anshul Gangwar <[email protected]>
Date:   2015-09-08T11:38:59Z

    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

----


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

Reply via email to