cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Upload template from local

Open cdfgallo opened this issue 1 year ago • 4 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME
secondary storage
CLOUDSTACK VERSION
4.19.0.1
CONFIGURATION

N/A

OS / ENVIRONMENT
SUMMARY

When uploading a template from a local qcow2 file we receive a generic "Network error" even if the upload from the UI looks working (the loading bar goes up to 100% before giving the error) and from the UI, the template is in "Not Ready" state and in status "NotUploaded" on the specific zone.

Looking on the NFS muntpoint on the ssvm we can find the qcow2 present with the template.properties file associated with it.

The ssvm show no error in the connection with master node and connectivitiy is properly working.

I attach here the logs from the agent on the ssvm regarding the issue logs_upload.txt

STEPS TO REPRODUCE
Just load a QCOW2 template from local file
EXPECTED RESULTS
It should be loaded and be available in the UI
ACTUAL RESULTS
It fails and remains in status Not Ready without any possibility of removing it.

cdfgallo avatar Jun 25 '24 15:06 cdfgallo

@cdfgallo the logs indicate that SSVM tried locating a VMware template and it can't locate it right. Is it possible that you selected VMware in the template type?

rajujith avatar Jun 27 '24 05:06 rajujith

Hi @rajujith, nope, I uploaded a qcow2 indicating KVM as the hypervisor. I saw the error messages about the missing ova but can't understand why they are there.

The log related to the correct file is this: 2024-06-25 15:16:23,287 INFO [storage.resource.HttpUploadServerHandler] (nioEventLoopGroup-3-1:null) BODY FileUpload: FileUpload: content-dis position: form-data; name="files[]"; filename="a9bde272-5350-4a80-b2d3-3b08ac472556.qcow2" But then I don't understand the followed error

cdfgallo avatar Jun 27 '24 06:06 cdfgallo

It seems that those warnings are thrown even on successful upload of the template. In the code, it seems like it attempts all the processors; which is why we see it attempting OVA and VMDK processors too despite going through the QCOW2 processor. @cdfgallo Is there any error/warning logs seen in the management server post upload?

Pearl1594 avatar Jun 27 '24 13:06 Pearl1594

@Pearl1594 as far as I saw there was no particular error on the management host. I'll have a better look on next template i will load

cdfgallo avatar Jun 27 '24 14:06 cdfgallo

@cdfgallo , can you update on this issue?

DaanHoogland avatar Mar 05 '25 16:03 DaanHoogland

@cdfgallo I am closing this issue as stale. Please reopen if you have new information.

DaanHoogland avatar Jul 09 '25 14:07 DaanHoogland