salfers commented on issue #9086:
URL: https://github.com/apache/cloudstack/issues/9086#issuecomment-2124109498
> @salfers can you please check if adding ISO works if you select `Direct
Download`?
Adding it works, as soon as I start a VM it fails with
<pre>
Unable to orchestrate start VM instance
{"id":324,"instanceName":"i-2-324-VM","type":"User","uuid":"c4542c3d-6df7-4016-9354-f8248e956efa"}
due to [Template 230 could not be downloaded on pool 2, failing after trying
on several hosts Details: Unable to download template: Could not find volume
3c658b8c-4da7-496c-9741-f40de8bd5774.iso: Storage volume not found: no storage
vol with matching name '3c658b8c-4da7-496c-9741-f40de8bd5774.iso'].
</pre>
management-server.log shows:
<pre>
2024-05-22 09:38:12,787 WARN [c.c.v.VirtualMachineManagerImpl]
(Work-Job-Executor-28:ctx-8a0dd68f job-3564/job-3566 ctx-7c4e0d7c)
(logid:51002c3d) Unable to orchestrate start VM instance
{"id":324,"instanceName":"i-2-324-VM","type":"User","uuid":"c4542c3d-6df7-4016-9354-f8248e956efa"}
due to [Template 230 could not be downloaded on pool 2, failing after trying
on several hosts Details: Unable to download template: Could not find volume
3c658b8c-4da7-496c-9741-f40de8bd5774.iso: Storage volume not found: no storage
vol with matching name '3c658b8c-4da7-496c-9741-f40de8bd5774.iso'].
com.cloud.utils.exception.CloudRuntimeException: Template 230 could not be
downloaded on pool 2, failing after trying on several hosts Details: Unable to
download template: Could not find volume
3c658b8c-4da7-496c-9741-f40de8bd5774.iso: Storage volume not found: no storage
vol with matching name '3c658b8c-4da7-496c-9741-f40de8bd5774.iso'
at
org.apache.cloudstack.direct.download.DirectDownloadManagerImpl.sendDirectDownloadCommand(DirectDownloadManagerImpl.java:376)
at
org.apache.cloudstack.direct.download.DirectDownloadManagerImpl.downloadTemplate(DirectDownloadManagerImpl.java:287)
at
org.apache.cloudstack.storage.image.TemplateDataFactoryImpl.getReadyBypassedTemplateOnPrimaryStore(TemplateDataFactoryImpl.java:259)
at
com.cloud.template.TemplateManagerImpl.prepareIso(TemplateManagerImpl.java:1242)
at
com.cloud.template.TemplateManagerImpl.prepareIsoForVmProfile(TemplateManagerImpl.java:630)
at jdk.internal.reflect.GeneratedMethodAccessor846.invoke(Unknown
Source)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[...]
</pre>
agent.log on the relevant host:
<pre>
2024-05-22 09:38:07,807 INFO [kvm.storage.KVMStorageProcessor]
(agentRequest-Handler-5:null) (logid:51002c3d) The server did not provide the
template size, assuming there is enough space to download it
2024-05-22 09:38:07,807 INFO [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-5:null) (logid:51002c3d) Trying to fetch storage pool
edf93483-83f6-326f-90be-74077be877a7 from libvirt
2024-05-22 09:38:08,178 INFO [direct.download.DirectTemplateDownloaderImpl]
(agentRequest-Handler-5:null) (logid:51002c3d) Downloading template 230 from
https://download.opensuse.org/distribution/leap/15.5/iso/openSUSE-Leap-15.5-NET-x86_64-Media.iso
to:
/var/lib/libvirt/images/template/2/230/openSUSE-Leap-15.5-NET-x86_64-Media.iso
2024-05-22 09:38:10,454 INFO [direct.download.DirectTemplateDownloaderImpl]
(agentRequest-Handler-5:null) (logid:51002c3d) No checksum provided, skipping
checksum validation
2024-05-22 09:38:10,455 INFO [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-5:null) (logid:51002c3d) Trying to fetch storage pool
edf93483-83f6-326f-90be-74077be877a7 from libvirt
2024-05-22 09:38:10,646 WARN [kvm.storage.KVMStorageProcessor]
(agentRequest-Handler-5:null) (logid:51002c3d) Error downloading template 230
due to: Could not find volume 01808b2e-f09e-427a-8d72-8fce630c1fbf.iso: Storage
volume not found: no storage vol with matching name
'01808b2e-f09e-427a-8d72-8fce630c1fbf.iso'
2024-05-22 09:38:10,673 INFO [kvm.storage.KVMStorageProcessor]
(agentRequest-Handler-3:null) (logid:51002c3d) The server did not provide the
template size, assuming there is enough space to download it
2024-05-22 09:38:10,674 INFO [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-3:null) (logid:51002c3d) Trying to fetch storage pool
edf93483-83f6-326f-90be-74077be877a7 from libvirt
2024-05-22 09:38:10,827 INFO [direct.download.DirectTemplateDownloaderImpl]
(agentRequest-Handler-3:null) (logid:51002c3d) Downloading template 230 from
https://download.opensuse.org/distribution/leap/15.5/iso/openSUSE-Leap-15.5-NET-x86_64-Media.iso
to:
/var/lib/libvirt/images/template/2/230/openSUSE-Leap-15.5-NET-x86_64-Media.iso
2024-05-22 09:38:12,315 INFO [direct.download.DirectTemplateDownloaderImpl]
(agentRequest-Handler-3:null) (logid:51002c3d) No checksum provided, skipping
checksum validation
2024-05-22 09:38:12,315 INFO [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-3:null) (logid:51002c3d) Trying to fetch storage pool
edf93483-83f6-326f-90be-74077be877a7 from libvirt
2024-05-22 09:38:12,498 WARN [kvm.storage.KVMStorageProcessor]
(agentRequest-Handler-3:null) (logid:51002c3d) Error downloading template 230
due to: Could not find volume 3c658b8c-4da7-496c-9741-f40de8bd5774.iso: Storage
volume not found: no storage vol with matching name
'3c658b8c-4da7-496c-9741-f40de8bd5774.iso'
2024-05-22 09:38:27,152 INFO [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-1:null) (logid:3902c3cc) Trying to fetch storage pool
417aa284-c039-491d-926e-89117ddc75c3 from libvirt
</pre>
--
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]