Failed to create volume from template on ceph storage #11791
-
We are experiencing an issue when creating a template from an instance’s volume.
The root cause of the problem is likely visible in the database: Here is a working entry from the database:
But with my last attempts i get (not working entry):
You can see that the “local_path” field is no longer populated, and there is also no successful error_str entry. What could be the reason why CloudStack no longer defines a local_path, causing instance deployments based on that template to fail? Using Cloudstack 4.20.1.0 UPDATE:In the meantime, I know that it has nothing to do with the "local_path" field, because when I convert a volume from an existing Linux instance (e.g. Rocky) to a template, that works fine. I can then deploy new instances from it perfectly. However, the problem occurs when converting the volume to a template of a Windows 11 instance. The Windows 11 instance was installed via the Windows ISO installation and works fine, and all virtio drivers are installed. The Windows 11 instance is UEFI secure, but that's also the case with the working Rocky Linux template, so it has nothing to do with the UEFI capabilities (I suppose). In the logs I see the following:
So I don't really understand the problem since it is definitely possible to run Windows 11 instances with UEFI Secure. Does anyone have an idea why deploying instances from a Windows 11 template doesn't work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
@svenknockaert , are you using ubuntu as hypervisor OS (in which case see #11660) |
Beta Was this translation helpful? Give feedback.
-
@svenknockaert please check if title need change "Create instance failed!!!". were you able to use any other new template to create instance on that specific host ? if not can you please try that. |
Beta Was this translation helpful? Give feedback.
In the meantime, I’ve made progress.
Following your suggestions, I focused on this line in the logs:
“error while reading at byte 3919577088: Input/output error qemu-img: error while reading at byte 3917479936.”
That made me concentrate on the storage layer and why these read errors were happening.
It turned out that the underlying storage network was dropping quite a few packets.
After resolving that issue and deleting the raw data (because it said "error while converting raw: error rbd create: File exists") from the Ceph RBD storage, the problem seemed to be fixed.