Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7848410BF2 for ; Thu, 10 Oct 2013 09:49:46 +0000 (UTC) Received: (qmail 86107 invoked by uid 500); 10 Oct 2013 09:49:45 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 86036 invoked by uid 500); 10 Oct 2013 09:49:44 -0000 Mailing-List: contact issues-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 issues@cloudstack.apache.org Received: (qmail 86005 invoked by uid 500); 10 Oct 2013 09:49:44 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 85948 invoked by uid 99); 10 Oct 2013 09:49:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 09:49:43 +0000 Date: Thu, 10 Oct 2013 09:49:43 +0000 (UTC) From: "Abhinandan Prateek (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-3714) 4.2 KVM agent sends wrong StartupRoutingCommand to 4.1 management server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-3714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Abhinandan Prateek resolved CLOUDSTACK-3714. -------------------------------------------- Resolution: Invalid We don't support incompatible agent. Do reopen if there is an issue. > 4.2 KVM agent sends wrong StartupRoutingCommand to 4.1 management server > ------------------------------------------------------------------------ > > Key: CLOUDSTACK-3714 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3714 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: KVM > Affects Versions: 4.2.0 > Environment: 4.2 agent with 4.1 management server > Reporter: Wido den Hollander > > 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. -- This message was sent by Atlassian JIRA (v6.1#6144)