Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2558510E9F for ; Mon, 22 Jul 2013 13:53:39 +0000 (UTC) Received: (qmail 64338 invoked by uid 500); 22 Jul 2013 13:53:38 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 64270 invoked by uid 500); 22 Jul 2013 13:53:37 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 64234 invoked by uid 99); 22 Jul 2013 13:53:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2013 13:53:37 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [109.72.87.137] (HELO smtp01.mail.pcextreme.nl) (109.72.87.137) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2013 13:53:21 +0000 Received: from [IPv6:2001:980:7936:0:180d:5e83:8868:d121] (unknown [IPv6:2001:980:7936:0:180d:5e83:8868:d121]) by smtp01.mail.pcextreme.nl (Postfix) with ESMTPA id 8CB90762DD for ; Mon, 22 Jul 2013 15:52:40 +0200 (CEST) Message-ID: <51ED3928.2040602@widodh.nl> Date: Mon, 22 Jul 2013 15:52:40 +0200 From: Wido den Hollander User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: dev@cloudstack.apache.org Subject: 4.2 KVM agent can't communicate with 4.1 management server Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, While reviewing 12775 I upgraded my Agents from 4.1 to 4.2, but kept my management server at 4.1 When the Agent starts it sends a StartupRoutingCommand to the management server, but this has changed it seems: In 4.1 the Agent sends this JSON: Sending Startup: Seq 4-0: { Cmd , MgmtId: -1, via: 4, Ver: v1, Flags: 1, [{"StartupRoutingCommand":{ In 4.2 however the JSON data starts with: Sending Startup: Seq 1-6: { Cmd , MgmtId: -1, via: 1, Ver: v1, Flags: 1, [{"com.cloud.agent.api.StartupRoutingCommand":{ So the Agent sends the full name of the class and this confuses the Management server, it throws an Exception: Caused by: com.cloud.utils.exception.CloudRuntimeException: can't find com.cloud.agent.api.com.cloud.agent.api.StartupRoutingCommand at com.cloud.agent.transport.ArrayTypeAdaptor.deserialize(ArrayTypeAdaptor.java:79) at com.cloud.agent.transport.ArrayTypeAdaptor.deserialize(ArrayTypeAdaptor.java:37) at com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:51) ... 15 more So it's searching for "com.cloud.agent.api.com.cloud.agent.api.StartupRoutingCommand" which obviously fails. I'm not sure how to fix this, since StartupRoutingCommand simply calls "RouterPrivateIpStrategy.class.getCanonicalName()" I created this issue for it: https://issues.apache.org/jira/browse/CLOUDSTACK-3714 Any suggestions on how to fix this? Wido