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 B27E5F901 for ; Thu, 18 Apr 2013 18:58:13 +0000 (UTC) Received: (qmail 6142 invoked by uid 500); 18 Apr 2013 18:58:13 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 6088 invoked by uid 500); 18 Apr 2013 18:58:13 -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 6079 invoked by uid 500); 18 Apr 2013 18:58:13 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 6075 invoked by uid 99); 18 Apr 2013 18:58:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 18:58:13 +0000 Date: Thu, 18 Apr 2013 18:58:13 +0000 (UTC) From: "Chip Childers (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-2093) Error while creating template from snapshot 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-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chip Childers resolved CLOUDSTACK-2093. --------------------------------------- Resolution: Won't Fix resolving per latest comment > Error while creating template from snapshot > -------------------------------------------- > > Key: CLOUDSTACK-2093 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2093 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Affects Versions: 4.1.0 > Reporter: Nikita Gubenko > Priority: Critical > > Hi > I have 4.1.0 CS with 1 XenServer 6.1, lvmoiscsi storage > I'm able to create snapshots, so secondary storage works ok, but can't create template from the fresh snapshot. > In the log: > 2013-04-18 19:26:57,237 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-60:null) Seq 33-631177265: Executing request > 2013-04-18 19:26:59,714 WARN [xen.resource.CitrixResourceBase] (DirectAgent-60:null) create_privatetemplate_from_snapshot failed due to failed to query /var/run/cloud_mount/369a8e42-7af1-4145-83bc-ec214c5f53f9/5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d.vhd > 2013-04-18 19:27:00,049 ERROR [xen.resource.CitrixResourceBase] (DirectAgent-60:null) Creating template from snapshot 5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d failed due to com.cloud.utils.exception.CloudRuntimeException: create_privatetemplate_from_snapshot failed due to failed to query /var/run/cloud_mount/369a8e42-7af1-4145-83bc-ec214c5f53f9/5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d.vhd > com.cloud.utils.exception.CloudRuntimeException: create_privatetemplate_from_snapshot failed due to failed to query /var/run/cloud_mount/369a8e42-7af1-4145-83bc-ec214c5f53f9/5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d.vhd > at com.cloud.hypervisor.xen.resource.CitrixResourceBase.createTemplateFromSnapshot(CitrixResourceBase.java:2653) > at com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:6464) > at com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:495) > at com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73) > at com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186) > 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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:679) > 2013-04-18 19:27:00,050 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-60:null) Seq 33-631177265: Response Received: > 2013-04-18 19:27:00,051 DEBUG [agent.transport.Request] (DirectAgent-60:null) Seq 33-631177265: Processing: { Ans: , MgmtId: 161339761528, via: 33, Ver: v1, Flags: 10, [{"storage.CreatePrivateTemplateAnswer":{"_virtualSize":0,"_physicalSize":0,"result":false,"details":"Creating template from snapshot 5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d failed due to com.cloud.utils.exception.CloudRuntimeException: create_privatetemplate_from_snapshot failed due to failed to query /var/run/cloud_mount/369a8e42-7af1-4145-83bc-ec214c5f53f9/5103b89a-8eda-4e4f-8a5f-ccc3e0b3d20d.vhd","wait":0}}] } > 2013-04-18 19:27:00,051 DEBUG [agent.transport.Request] (Job-Executor-3:job-581) Seq 33-631177265: Received: { Ans: , MgmtId: 161339761528, via: 33, Ver: v1, Flags: 10, { CreatePrivateTemplateAnswer } } > 2013-04-18 19:27:00,061 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-581) Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd > com.cloud.utils.exception.CloudRuntimeException: Failed to create a template > at com.cloud.vm.UserVmManagerImpl.createPrivateTemplate(UserVmManagerImpl.java:2332) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at com.cloud.vm.UserVmManagerImpl.createPrivateTemplate(UserVmManagerImpl.java:256) > at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:258) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162) > 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:1146) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:679) > I've made some debugs of /opt/xensource/bin/create_privatetemplate_from_snapshot.sh - it tries to query vhd snapshot that doesn't exist. The snapshot itself with that name exists but available on another path -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira