[ https://issues.apache.org/jira/browse/CLOUDSTACK-5124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prasanna Santhanam updated CLOUDSTACK-5124: ------------------------------------------- Affects Version/s: 4.3.0 > 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)