You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/01/13 23:57:53 UTC

[jira] [Commented] (CLOUDSTACK-5857) [Automation] VM deployment failing in KVM with LibvirtException: Storage volume not found: storage vol already exists

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-5857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870093#comment-13870093 ] 

ASF subversion and git services commented on CLOUDSTACK-5857:
-------------------------------------------------------------

Commit 8dda69952f93b6fcdaf45f0d3cb82b074f1c320a in branch refs/heads/4.3 from [~zhou2324]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=8dda699 ]

CLOUDSTACK-5857: for some reasons, delete secondary pool failed during copy template from secondary storage to primary storage, but the volume is already copied to primary storage, we didn't clean up the volume on primary storage, then all the following copy the same template to primary storage failed, as we are always using the same uuid when creating a new volume, libvirt complaining that the volume already exists.
Current fix is ignoring "the delete secondary storage error".


> [Automation] VM deployment failing in KVM with LibvirtException: Storage volume not found: storage vol already exists
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5857
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5857
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: KVM
>    Affects Versions: 4.3.0
>         Environment: KVM RHEL 6.3
>            Reporter: Rayees Namathponnan
>            Assignee: edison su
>            Priority: Blocker
>             Fix For: 4.3.0
>
>         Attachments: CLOUDSTACK-5857.rar
>
>
> This issue is observed in automation environment ; they are many VM deployment failed with LibvirtException: Storage volume not found: storage vol already exists
> observed below error in MS log, during copy command 
> 2014-01-11 17:38:15,673 DEBUG [o.a.c.s.m.AncientDataMotionStrategy] (Job-Executor-22:ctx-62507bad ctx-ae20ad9a) copyAsync inspecting src type TEMPLATE copyAsync inspecting dest type TEMPLATE
> 2014-01-11 17:38:15,680 DEBUG [c.c.a.t.Request] (Job-Executor-22:ctx-62507bad ctx-ae20ad9a) Seq 1-1891108857: Sending  { Cmd , MgmtId: 29066118877352, via: 1(Rack2Host11.lab.vmops.com), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/1/3/fe38ea61-56dc-4287-b04d-208dd7eca59e.qcow2","origUrl":"http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2","uuid":"f767366a-7b13-11e3-a447-1a6f7bb0d0a8","id":3,"format":"QCOW2","accountId":1,"checksum":"6cea42b2633841648040becb588bd8f0","hvm":false,"displayText":"SystemVM Template (KVM)","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232:/export/home/rayees/SC_QA_AUTO4/secondary3","_role":"Image"}},"name":"routing-3","hypervisorType":"KVM"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"origUrl":"http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2","uuid":"f767366a-7b13-11e3-a447-1a6f7bb0d0a8","id":3,"format":"QCOW2","accountId":1,"checksum":"6cea42b2633841648040becb588bd8f0","hvm":false,"displayText":"SystemVM Template (KVM)","imageDataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"41b632b5-40b3-3024-a38b-ea259c72579f","id":2,"poolType":"NetworkFilesystem","host":"10.223.110.232","path":"/export/home/rayees/SC_QA_AUTO4/primary2","port":2049,"url":"NetworkFilesystem://10.223.110.232//export/home/rayees/SC_QA_AUTO4/primary2/?ROLE=Primary&STOREUUID=41b632b5-40b3-3024-a38b-ea259c72579f"}},"name":"routing-3","hypervisorType":"KVM"}},"executeInSequence":false,"options":{},"wait":10800}}] }
> 2014-01-11 17:38:15,893 DEBUG [c.c.a.t.Request] (AgentManager-Handler-6:null) Seq 1-1891108857: Processing:  { Ans: , MgmtId: 29066118877352, via: 1, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"com.cloud.utils.exception.CloudRuntimeException: org.libvirt.LibvirtException: Storage volume not found: storage vol already exists","wait":0}}] }
> Observed below error in agent 
> 2014-01-11 17:38:00,913 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:null) Request:Seq 1-1891108857:  { Cmd ,
>  MgmtId: 29066118877352, via: 1, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CopyCommand":{"s
> rcTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/1/3/fe38ea61-56dc-4287-b04d-208d
> d7eca59e.qcow2","origUrl":"http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz
> 2","uuid":"f767366a-7b13-11e3-a447-1a6f7bb0d0a8","id":3,"format":"QCOW2","accountId":1,"checksum":"6cea42b26338416
> 48040becb588bd8f0","hvm":false,"displayText":"SystemVM Template (KVM)","imageDataStore":{"com.cloud.agent.api.to.N
> fsTO":{"_url":"nfs://10.223.110.232:/export/home/rayees/SC_QA_AUTO4/secondary3","_role":"Image"}},"name":"routing-
> 3","hypervisorType":"KVM"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"origUrl":"http://downl
> oad.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2","uuid":"f767366a-7b13-11e3-a447-1a6f
> 7bb0d0a8","id":3,"format":"QCOW2","accountId":1,"checksum":"6cea42b2633841648040becb588bd8f0","hvm":false,"display
> Text":"SystemVM Template (KVM)","imageDataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"4
> 1b632b5-40b3-3024-a38b-ea259c72579f","id":2,"poolType":"NetworkFilesystem","host":"10.223.110.232","path":"/export
> /home/rayees/SC_QA_AUTO4/primary2","port":2049,"url":"NetworkFilesystem://10.223.110.232//export/home/rayees/SC_QA
> _AUTO4/primary2/?ROLE=Primary&STOREUUID=41b632b5-40b3-3024-a38b-ea259c72579f"}},"name":"routing-3","hypervisorType
> ":"KVM"}},"executeInSequence":false,"options":{},"wait":10800}}] }
> 2014-01-11 17:38:00,913 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:null) Processing command: org.apache.clo
> udstack.storage.command.CopyCommand
> 2014-01-11 17:38:01,121 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:null) Seq 1-1891108857:  { Ans: , MgmtId: 29066118877352, via: 1, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"com.cloud.utils.exception.CloudRuntimeException: org.libvirt.LibvirtException: Storage volume not found: storage vol already exists","wait":0}}] }



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)