[
https://issues.apache.org/jira/browse/CLOUDSTACK-5124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818768#comment-13818768
]
ASF subversion and git services commented on CLOUDSTACK-5124:
-------------------------------------------------------------
Commit 951336c3e4510ddfecfe0678be7716e4eade1e98 in branch refs/heads/master
from [~tsp]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=951336c ]
CLOUDSTACK-5124: Adopt GetDomRVersionAnswer to VR upgradability
While VRs upgrade, cloudstack should still be able to work with older
/newer version of the scripts within VRs. To allow this, the simulator
needs to send the version strings for the domr version response or the
VR start is interrupted.
Signed-off-by: Prasanna Santhanam <[email protected]>
> Simulator: Virtual Router fails to start because of improper version returned
> by GetDomRVersion
> -----------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-5124
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5124
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.3.0
> Reporter: Prasanna Santhanam
> Assignee: Prasanna Santhanam
> Priority: Critical
>
> With the introduction of changes to allow older VRs (pre-4.2.0) to work with
> newer version of CloudStack we return some details as part of
> GetDomRVersionAnswer that result in failure of VR start in the simulator. The
> simulator returns a bare answer as below:
> GetDomRVersionAnswer:
> {"com.cloud.agent.api.GetDomRVersionAnswer":{"result":true,"wait":0}}
> Following exception is encountered:
> 2013-11-11 11:58:46,634 ERROR [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-12:ctx-400bddf7 ctx-fadf110f) Failed to start instance
> VM[User|a]
> java.lang.NullPointerException
> at com.cloud.maint.Version.trimRouterVersion(Version.java:63)
> at
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.checkRouterVersion(VirtualNetworkApplianceManagerImpl.java:4070)
> at
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.sendCommandsToRouter(VirtualNetworkApplianceManagerImpl.java:3435)
> at
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl$7.execute(VirtualNetworkApplianceManagerImpl.java:2872)
> at
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyRules(VirtualNetworkApplianceManagerImpl.java:3721)
> at
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyDhcpEntry(VirtualNetworkApplianceManagerImpl.java:2864)
> This is corrected by returning the following answer:
> {"com.cloud.agent.api.GetDomRVersionAnswer":{"templateVersion":"CloudStack
> Release
> 4.2.0","scriptsVersion":"708eb2e4-f651-4d01-9ecc-0d61f62560cb","result":true,"wait":0}}
> The default version in the case of a real deployment is fetched from within
> the
> packaged VR. But since the simulator has no such notion, we'll return a
> default
> string of '4.2.0' to allow CloudStack to move on.
--
This message was sent by Atlassian JIRA
(v6.1#6144)