You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/02/27 16:25:12 UTC

[jira] [Commented] (CLOUDSTACK-1410) Overcommit feature breaks compatibility between 4.0/4.1 management server and 4.2 agent

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

ASF subversion and git services commented on CLOUDSTACK-1410:
-------------------------------------------------------------

Commit 2e28f69d3ea540f29c2634c1726b2bb3d0689ec2 in branch refs/heads/master from [~widodh]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;h=2e28f69 ]

CLOUDSTACK-1410: >4.1 agents should be able to communicatie with <=4.1 management servers

The recently added overcommit feature breaks compatibility between older management servers
and 4.2 agents.

This patch fixes that by falling back if needed.

                
> Overcommit feature breaks compatibility between 4.0/4.1 management server and 4.2 agent
> ---------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1410
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1410
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: KVM, Management Server
>    Affects Versions: 4.1.0, 4.2.0
>         Environment: Ubuntu 12.04. 4.0 management server, 4.2 agent
>            Reporter: Wido den Hollander
>            Assignee: Bharat Kumar
>             Fix For: 4.2.0
>
>
> I just updated one of my agents to the 4.2 (master) code and it failed to start the new instance.
> I got a NullPointerException on this piece of code in LibvirtComputingResource:
> ctd.setShares(vmTO.getCpus() * vmTO.getMinSpeed());
> getMinSpeed() is new, this used to be getSpeed()
> The VirtualMachineTO was however changed and getSpeed() was removed.
> A 4.0/4.1 management server however sends only the "speed" value instead of "minSpeed" and "maxSpeed".
> This leads to a 4.2 agent not working with 4.0 or 4.1 code.
> A couple of suggestions:
> - Add getSpeed() (and int speed) back to VirtualMachineTO
> - Check if getMinSpeed is empty and fall back to getSpeed if it's NULL
> Would that be a acceptable solution?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira