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 810771075D for ; Wed, 16 Oct 2013 22:18:04 +0000 (UTC) Received: (qmail 32284 invoked by uid 500); 16 Oct 2013 22:12:00 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 31443 invoked by uid 500); 16 Oct 2013 22:10:45 -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 28956 invoked by uid 500); 16 Oct 2013 22:06:47 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 17545 invoked by uid 99); 16 Oct 2013 21:56:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 21:56:51 +0000 Date: Wed, 16 Oct 2013 21:56:51 +0000 (UTC) From: "edison su (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-3418) Failed to update snapshot state with NPE while creating the snpashot when Primary Storage is in Prepare Maintanance state 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-3418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] edison su resolved CLOUDSTACK-3418. ----------------------------------- Resolution: Fixed > Failed to update snapshot state with NPE while creating the snpashot when Primary Storage is in Prepare Maintanance state > ------------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-3418 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3418 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Storage Controller > Affects Versions: 4.2.1 > Reporter: Sailaja Mada > Assignee: edison su > Priority: Critical > Fix For: 4.2.1 > > Attachments: apilog.log, management-server.log > > > Setup: VMWARE with Cluster Primary storage and Zone primary storage > Steps: > 1. Configure VMWARE Adv Zone with cluster level primary storage and Zone level primary storage > 2. Move the Cluster level primary storage to Maintenance state . When its in Prepare Maintenance state, tried to create snapshot for the ROOT volume. > Observation: > Failed to update snapshot state with NPE while creating the snpashot when Primary Storage is in Prepare Maintenance state > 2013-07-09 16:24:55,983 WARN [storage.snapshot.SnapshotManagerImpl] (Job-Executor-29:job-49) Storage unavailable > com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable: Unable to send command to the pool 1 due to there is no enabled hosts up in this cluster > at com.cloud.storage.StorageManagerImpl.sendToPool(StorageManagerImpl.java:1071) > at com.cloud.storage.StorageManagerImpl.sendToPool(StorageManagerImpl.java:1096) > at com.cloud.storage.snapshot.SnapshotManagerImpl.sendToPool(SnapshotManagerImpl.java:219) > at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copySnapshot(AncientDataMotionStrategy.java:785) > at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyAsync(AncientDataMotionStrategy.java:497) > at org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsync(DataMotionServiceImpl.java:59) > at org.apache.cloudstack.storage.snapshot.strategy.AncientSnapshotStrategy.backupSnapshot(AncientSnapshotStrategy.java:425) > at com.cloud.storage.snapshot.SnapshotManagerImpl.backupSnapshot(SnapshotManagerImpl.java:360) > at com.cloud.storage.snapshot.SnapshotManagerImpl.createSnapshot(SnapshotManagerImpl.java:302) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd.execute(CreateSnapshotCmd.java:168) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) > at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 2013-07-09 16:24:55,987 DEBUG [snapshot.strategy.AncientSnapshotStrategy] (Job-Executor-29:job-49) Failed to update snapshot state > java.lang.NullPointerException > at org.apache.cloudstack.storage.snapshot.strategy.AncientSnapshotStrategy.copySnapshotAsyncCallback(AncientSnapshotStrategy.java:468) > 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.apache.cloudstack.framework.async.AsyncCallbackDispatcher.dispatch(AsyncCallbackDispatcher.java:125) > at org.apache.cloudstack.framework.async.InplaceAsyncCallbackDriver.performCompletionCallback(InplaceAsyncCallbackDriver.java:26) > at org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.complete(AsyncCallbackDispatcher.java:103) > at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyAsync(AncientDataMotionStrategy.java:505) > at org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsync(DataMotionServiceImpl.java:59) > at org.apache.cloudstack.storage.snapshot.strategy.AncientSnapshotStrategy.backupSnapshot(AncientSnapshotStrategy.java:425) > at com.cloud.storage.snapshot.SnapshotManagerImpl.backupSnapshot(SnapshotManagerImpl.java:360) > at com.cloud.storage.snapshot.SnapshotManagerImpl.createSnapshot(SnapshotManagerImpl.java:302) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd.execute(CreateSnapshotCmd.java:168) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) > at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 2013-07-09 16:24:56,014 INFO [user.snapshot.CreateSnapshotCmd] (Job-Executor-29:job-49) VOLSS: backupSnapshotCmd finishes:1373367296014 -- This message was sent by Atlassian JIRA (v6.1#6144)