ingox commented on issue #11561:
URL: https://github.com/apache/cloudstack/issues/11561#issuecomment-3248016276
@NuxRo I have been following this documentation.
Here are the logs.
agent.log:
```
2025-09-03 07:13:33,154 INFO
[resource.wrapper.LibvirtConvertInstanceCommandWrapper] (Script-5:[]) (logid:)
(virt-v2v ovf source:
/mnt/f16f10e2-5272-3087-b0e3-bf664ec5b296/64beae76-59f2-4b30-a82c-48d7fd3869cb/i-2-20-VM/
progress) libguestfs: closing guestfs handle 0x59cfcf2d9380 (state 0)
2025-09-03 07:13:33,158 WARN
[resource.wrapper.LibvirtConvertInstanceCommandWrapper]
(AgentRequest-Handler-3:[]) (logid:) Execution of process [147579] for command
[virt-v2v --root first -i ova
/mnt/f16f10e2-5272-3087-b0e3-bf664ec5b296/64beae76-59f2-4b30-a82c-48d7fd3869cb/i-2-20-VM/
-o local -os /mnt/f16f10e2-5272-3087-b0e3-bf664ec5b296 -of qcow2 -on
dafb4cb1-8caa-4fe9-990b-605aeb615f96 -v ] failed.
2025-09-03 07:13:33,158 DEBUG
[resource.wrapper.LibvirtConvertInstanceCommandWrapper]
(AgentRequest-Handler-3:[]) (logid:) Exit value of process [147579] for command
[virt-v2v --root first -i ova
/mnt/f16f10e2-5272-3087-b0e3-bf664ec5b296/64beae76-59f2-4b30-a82c-48d7fd3869cb/i-2-20-VM/
-o local -os /mnt/f16f10e2-5272-3087-b0e3-bf664ec5b296 -of qcow2 -on
dafb4cb1-8caa-4fe9-990b-605aeb615f96 -v ] is [1].
2025-09-03 07:13:33,159 WARN
[resource.wrapper.LibvirtConvertInstanceCommandWrapper]
(AgentRequest-Handler-3:[]) (logid:) Exception [Stream closed] occurred when
attempting to run command [virt-v2v --root first -i ova
/mnt/f16f10e2-5272-3087-b0e3-bf664ec5b296/64beae76-59f2-4b30-a82c-48d7fd3869cb/i-2-20-VM/
-o local -os /mnt/f16f10e2-5272-3087-b0e3-bf664ec5b296 -of qcow2 -on
dafb4cb1-8caa-4fe9-990b-605aeb615f96 -v ]. java.io.IOException: Stream closed
at
java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:168)
at
java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at
java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:287)
at
java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:330)
at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:190)
at
java.base/java.io.InputStreamReader.read(InputStreamReader.java:177)
at java.base/java.io.BufferedReader.fill(BufferedReader.java:162)
at java.base/java.io.BufferedReader.readLine(BufferedReader.java:329)
at java.base/java.io.BufferedReader.readLine(BufferedReader.java:396)
at
com.cloud.utils.script.OutputInterpreter.processError(OutputInterpreter.java:41)
at com.cloud.utils.script.Script.execute(Script.java:305)
at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtConvertInstanceCommandWrapper.performInstanceConversion(LibvirtConvertInstanceCommandWrapper.java:410)
at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtConvertInstanceCommandWrapper.execute(LibvirtConvertInstanceCommandWrapper.java:134)
at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtConvertInstanceCommandWrapper.execute(LibvirtConvertInstanceCommandWrapper.java:61)
at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1958)
at com.cloud.agent.Agent.processRequest(Agent.java:779)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1194)
at com.cloud.utils.nio.Task.call(Task.java:83)
at com.cloud.utils.nio.Task.call(Task.java:29)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
2025-09-03 07:13:33,159 ERROR
[resource.wrapper.LibvirtConvertInstanceCommandWrapper]
(AgentRequest-Handler-3:[]) (logid:) The virt-v2v conversion for the OVF
64beae76-59f2-4b30-a82c-48d7fd3869cb failed. Please check the agent logs for
the virt-v2v output. Please try on a different kvm host which has a different
virt-v2v version.
2025-09-03 07:13:33,159 DEBUG
[resource.wrapper.LibvirtConvertInstanceCommandWrapper]
(AgentRequest-Handler-3:[]) (logid:) Cleaning up exported OVA at dir
/mnt/f16f10e2-5272-3087-b0e3-bf664ec5b296/64beae76-59f2-4b30-a82c-48d7fd3869cb
2025-09-03 07:13:34,556 DEBUG [cloud.utils.FileUtil]
(AgentRequest-Handler-3:[]) (logid:) Deleted path:
/mnt/f16f10e2-5272-3087-b0e3-bf664ec5b296/64beae76-59f2-4b30-a82c-48d7fd3869cb
2025-09-03 07:13:34,560 DEBUG [cloud.agent.Agent]
(AgentRequest-Handler-3:[]) (logid:) Seq 1-6541196983778934803: { Ans: ,
MgmtId: 32988905606098, via: 1, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.ConvertInstanceAnswer":{"result":"false","details":"The
virt-v2v conversion for the OVF 64beae76-59f2-4b30-a82c-48d7fd3869cb failed.
Please check the agent logs for the virt-v2v output. Please try on a different
kvm host which has a different virt-v2v
version.","wait":"0","bypassHostMaintenance":"false"}}] }
2025-09-03 07:13:47,347 DEBUG [kvm.resource.LibvirtComputingResource]
(AgentOutRequest-Handler-5:[]) (logid:) Executing command
[/usr/share/cloudstack-common/scripts/vm/network/security_group.py
get_rule_logs_for_vms ].
```
management.log:
```
2025-09-03 07:13:34,563 DEBUG [c.c.a.t.Request]
(API-Job-Executor-1:[ctx-cec4f83b, job-2264, ctx-1e7ba725]) (logid:8f3df440)
Seq 1-6541196983778934803: Received: { Ans: , MgmtId: 32988905606098, via:
1(ref-trl-5934-k-Mu24-alex-mattioli-kvm1), Ver: v1, Flags: 10, {
ConvertInstanceAnswer } }
2025-09-03 07:13:34,564 ERROR [o.a.c.v.UnmanagedVMsManagerImpl]
(API-Job-Executor-1:[ctx-cec4f83b, job-2264, ctx-1e7ba725]) (logid:8f3df440)
The convert process failed for instance i-2-20-VM from VMware to KVM on host
Host
{"id":1,"name":"ref-trl-5934-k-Mu24-alex-mattioli-kvm1","type":"Routing","uuid":"8f8083bd-23c4-4533-ac80-ff02c46a6bb3"}:
The virt-v2v conversion for the OVF 64beae76-59f2-4b30-a82c-48d7fd3869cb
failed. Please check the agent logs for the virt-v2v output. Please try on a
different kvm host which has a different virt-v2v version.
2025-09-03 07:13:34,564 ERROR [o.a.c.v.UnmanagedVMsManagerImpl]
(API-Job-Executor-1:[ctx-cec4f83b, job-2264, ctx-1e7ba725]) (logid:8f3df440)
Error importing VM: The convert process failed for instance i-2-20-VM from
VMware to KVM on host Host
{"id":1,"name":"ref-trl-5934-k-Mu24-alex-mattioli-kvm1","type":"Routing","uuid":"8f8083bd-23c4-4533-ac80-ff02c46a6bb3"}:
The virt-v2v conversion for the OVF 64beae76-59f2-4b30-a82c-48d7fd3869cb
failed. Please check the agent logs for the virt-v2v output. Please try on a
different kvm host which has a different virt-v2v version.
com.cloud.utils.exception.CloudRuntimeException: The convert process failed for
instance i-2-20-VM from VMware to KVM on host Host
{"id":1,"name":"ref-trl-5934-k-Mu24-alex-mattioli-kvm1","type":"Routing","uuid":"8f8083bd-23c4-4533-ac80-ff02c46a6bb3"}:
The virt-v2v conversion for the OVF 64beae76-59f2-4b30-a82c-48d7fd3869cb
failed. Please check the agent logs for the virt-v2v output. Please try on a
different kvm host w
hich has a different virt-v2v version.
at
org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.convertAndImportToKVM(UnmanagedVMsManagerImpl.java:2033)
at
org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.convertVmwareInstanceToKVMAfterExportingOVFToConvertLocation(UnmanagedVMsManagerImpl.java:2010)
at
org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importUnmanagedInstanceFromVmwareToKvm(UnmanagedVMsManagerImpl.java:1676)
at
org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.baseImportInstance(UnmanagedVMsManagerImpl.java:1386)
at
org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importVm(UnmanagedVMsManagerImpl.java:1507)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at
org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:105)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
at jdk.proxy3/jdk.proxy3.$Proxy514.importVm(Unknown Source)
at
org.apache.cloudstack.api.command.admin.vm.ImportVmCmd.execute(ImportVmCmd.java:269)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:173)
at
com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:110)
at
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:652)
at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:600)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
2025-09-03 07:13:34,580 WARN [o.a.c.m.w.WebhookServiceImpl]
(API-Job-Executor-1:[ctx-cec4f83b, job-2264, ctx-1e7ba725]) (logid:8f3df440)
Skipping delivering event Event
{"description":"{\"event\":\"VM.IMPORT\",\"status\":\"Completed\"}","eventId":null,"eventType":"VM.IMPORT","eventUuid":null,"resourceType":"VirtualMachine","resourceUUID":null}
to any webhook as account ID is missing
2025-09-03 07:13:34,580 WARN [o.a.c.f.e.EventDistributorImpl]
(API-Job-Executor-1:[ctx-cec4f83b, job-2264, ctx-1e7ba725]) (logid:8f3df440)
Failed to publish event [category: ActionEvent, type: VM.IMPORT] on bus
webhookEventBus
2025-09-03 07:13:34,595 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-1:[ctx-cec4f83b, job-2264]) (logid:8f3df440) Complete async
job-2264, jobStatus: FAILED, resultCode: 530, result:
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"The
convert process failed for instance i-2-20-VM from VMware to KVM on host Host
{"id":1,"name":"ref-trl-5934-k-Mu24-alex-mattioli-kvm1","type":"Routing","uuid":"8f8083bd-23c4-4533-ac80-ff02c46a6bb3"}:
The virt-v2v conversion for the OVF 64beae76-59f2-4b30-a82c-48d7fd3869cb
failed. Please check the agent logs for the virt-v2v output. Please try on a
different kvm host which has a different virt-v2v version."}
2025-09-03 07:13:34,596 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-1:[ctx-cec4f83b, job-2264]) (logid:8f3df440) Publish async
job-2264 complete on message bus
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]