You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by 张仕博 <zh...@neusoft.com> on 2014/08/28 05:38:39 UTC

虚拟机上传模板问题

新上传的模板创建虚拟机时候报错如下

2014-08-28 23:06:01,468 INFO  [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-23:ctx-85baed4a ctx-cbfc652b) Unable to contact resource.

com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is
unreachable: Unable to create Vol[16|vm=12|ROOT]:Unable to copy template to
primary storage due to exception:Exception: java.io.FileNotFoundException

Message:
/mnt/SecStorage/9a44c271-50e6-3112-a0a4-dbe0d55469d0/template/tmpl/2/206/xp-
disk1.vmdk (No such file or directory)

 

         at
org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume
(VolumeOrchestrator.java:1202)

         at
org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(Volume
Orchestrator.java:1254)

         at
com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManage
rImpl.java:962)

         at
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImp
l.java:761)

         at
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:
601)

         at
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirt
ualMachine(VMEntityManagerImpl.java:228)

         at
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deplo
y(VirtualMachineEntityImpl.java:207)

         at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:35
81)

         at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:31
61)

         at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:31
47)

         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)

 

经查发现二级存储上模板文件后面带了一连串的0,名称如下

xp-disk1.vmdk.000000000

 

有人知道这事怎么回事么?

 

该问题只发生在测试xp模板上,其他模板都正常,不带这些00000000

 

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

答复: 虚拟机上传模板问题

Posted by 张仕博 <zh...@neusoft.com>.
该问题经查是web client导出的ova文件就会这样,vsphere client导出的就没事


-----邮件原件-----
发件人: linuxbqj@gmail.com [mailto:linuxbqj@gmail.com] 
发送时间: 2014年8月29日 12:59
收件人: users-cn
主题: Re: 虚拟机上传模板问题

你的xp的摸板的版本是否和上传的时候选的版本一致?

2014-08-28 11:38 GMT+08:00 张仕博 <zh...@neusoft.com>:
> 新上传的模板创建虚拟机时候报错如下
>
> 2014-08-28 23:06:01,468 INFO  [c.c.v.VirtualMachineManagerImpl] 
> (Job-Executor-23:ctx-85baed4a ctx-cbfc652b) Unable to contact resource.
>
> com.cloud.exception.StorageUnavailableException: Resource 
> [StoragePool:1] is
> unreachable: Unable to create Vol[16|vm=12|ROOT]:Unable to copy 
> template to primary storage due to exception:Exception: 
> java.io.FileNotFoundException
>
> Message:
> /mnt/SecStorage/9a44c271-50e6-3112-a0a4-dbe0d55469d0/template/tmpl/2/2
> 06/xp- disk1.vmdk (No such file or directory)
>
>
>
>          at
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreate
> Volume
> (VolumeOrchestrator.java:1202)
>
>          at
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(
> Volume
> Orchestrator.java:1254)
>
>          at
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachine
> Manage
> rImpl.java:962)
>
>          at
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineMana
> gerImp
> l.java:761)
>
>          at
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:
> 601)
>
>          at
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.depl
> oyVirt
> ualMachine(VMEntityManagerImpl.java:228)
>
>          at
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl
> .deplo
> y(VirtualMachineEntityImpl.java:207)
>
>          at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.j
> ava:35
> 81)
>
>          at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.j
> ava:31
> 61)
>
>          at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.j
> ava:31
> 47)
>
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
>
>          at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:57
> )
>
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl
> .java:43)
>
>          at java.lang.reflect.Method.invoke(Method.java:616)
>
>
>
> 经查发现二级存储上模板文件后面带了一连串的0,名称如下
>
> xp-disk1.vmdk.000000000
>
>
>
> 有人知道这事怎么回事么?
>
>
>
> 该问题只发生在测试xp模板上,其他模板都正常,不带这些00000000
>
>
>
> ----------------------------------------------------------------------
> ----------------------------- Confidentiality Notice: The information 
> contained in this e-mail and any accompanying attachment(s) is 
> intended only for the use of the intended recipient and may be 
> confidential and/or privileged of Neusoft Corporation, its 
> subsidiaries and/or its affiliates. If any reader of this 
> communication is not the intended recipient, unauthorized use, 
> forwarding, printing,  storing, disclosure or copying is strictly 
> prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you.
> ----------------------------------------------------------------------
> -----------------------------



--
白清杰 (Born Bai)

Mail: linuxbqj@gmail.com

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

Re: 虚拟机上传模板问题

Posted by "linuxbqj@gmail.com" <li...@gmail.com>.
你的xp的摸板的版本是否和上传的时候选的版本一致?

2014-08-28 11:38 GMT+08:00 张仕博 <zh...@neusoft.com>:
> 新上传的模板创建虚拟机时候报错如下
>
> 2014-08-28 23:06:01,468 INFO  [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-23:ctx-85baed4a ctx-cbfc652b) Unable to contact resource.
>
> com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is
> unreachable: Unable to create Vol[16|vm=12|ROOT]:Unable to copy template to
> primary storage due to exception:Exception: java.io.FileNotFoundException
>
> Message:
> /mnt/SecStorage/9a44c271-50e6-3112-a0a4-dbe0d55469d0/template/tmpl/2/206/xp-
> disk1.vmdk (No such file or directory)
>
>
>
>          at
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume
> (VolumeOrchestrator.java:1202)
>
>          at
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(Volume
> Orchestrator.java:1254)
>
>          at
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManage
> rImpl.java:962)
>
>          at
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImp
> l.java:761)
>
>          at
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:
> 601)
>
>          at
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirt
> ualMachine(VMEntityManagerImpl.java:228)
>
>          at
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deplo
> y(VirtualMachineEntityImpl.java:207)
>
>          at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:35
> 81)
>
>          at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:31
> 61)
>
>          at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:31
> 47)
>
>          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)
>
>
>
> 经查发现二级存储上模板文件后面带了一连串的0,名称如下
>
> xp-disk1.vmdk.000000000
>
>
>
> 有人知道这事怎么回事么?
>
>
>
> 该问题只发生在测试xp模板上,其他模板都正常,不带这些00000000
>
>
>
> ---------------------------------------------------------------------------------------------------
> Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
> is intended only for the use of the intended recipient and may be confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this communication in error,please
> immediately notify the sender by return e-mail, and delete the original message and all copies from
> your system. Thank you.
> ---------------------------------------------------------------------------------------------------



-- 
白清杰 (Born Bai)

Mail: linuxbqj@gmail.com