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 45669175F9 for ; Sat, 8 Nov 2014 05:46:34 +0000 (UTC) Received: (qmail 85195 invoked by uid 500); 8 Nov 2014 05:46:34 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 84935 invoked by uid 500); 8 Nov 2014 05:46:33 -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 84923 invoked by uid 500); 8 Nov 2014 05:46:33 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 84920 invoked by uid 99); 8 Nov 2014 05:46:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Nov 2014 05:46:33 +0000 Date: Sat, 8 Nov 2014 05:46:33 +0000 (UTC) From: "Koushik Das (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-6337) Can't Migrate instance which use custom HA compute offering to another host 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-6337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Koushik Das updated CLOUDSTACK-6337: ------------------------------------ Fix Version/s: 4.5.0 > Can't Migrate instance which use custom HA compute offering to another host > --------------------------------------------------------------------------- > > Key: CLOUDSTACK-6337 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6337 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API, Management Server > Affects Versions: 4.3.0 > Reporter: ShelleyZhang > Assignee: Koushik Das > Fix For: 4.5.0 > > > 1.create a custom HA compute offering > 2.create a instace and use this custom offering > 3.Migrate this instance to another host will report error. > because when you migrate instance ,cs will looking for anther host who can offer the same cpu,memory and so on.but the custom compute offering has not set cpu,memory. > ERROR [c.c.a.ApiServer] (catalina-exec-18:ctx-ca2e0689 ctx-fe8f93b8) unhandled exception executing api command: findHostsForMigration > java.lang.NullPointerException > at com.cloud.agent.manager.allocator.impl.FirstFitAllocator.allocateTo(FirstFitAllocator.java:267) > at com.cloud.agent.manager.allocator.impl.FirstFitAllocator.allocateTo(FirstFitAllocator.java:195) > at com.cloud.server.ManagementServerImpl.listHostsForMigrationOfVM(ManagementServerImpl.java:1198) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) > at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) > at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) > at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91) > at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) > at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) > at $Proxy193.listHostsForMigrationOfVM(Unknown Source) > at org.apache.cloudstack.api.command.admin.host.FindHostsForMigrationCmd.execute(FindHostsForMigrationCmd.java:75) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161) > at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531) > at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374) > at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323) > at com.cloud.api.ApiServlet.access$000(ApiServlet.java:53) > at com.cloud.api.ApiServlet$1.run(ApiServlet.java:115) > at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56) > at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103) > at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53) > at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:112) > at com.cloud.api.ApiServlet.doGet(ApiServlet.java:74) -- This message was sent by Atlassian JIRA (v6.3.4#6332)