GutoVeronezi commented on issue #8034: URL: https://github.com/apache/cloudstack/issues/8034#issuecomment-1746725748
Hello guys, there is no need to revert the functionally or workaround it; we just have to understand what is happening and fix it. The problem here is that while taking the volume snapshot, we call method `copySnapshotToPrimaryStorageDir`. This method copies the base file to another directory, to allow the block commit the delta right after taking the snapshot and avoid creating chains in the primary storage. However, copying a file with backing store will also copy the reference; therefore, it is causing the observed problem when the volume is not consolidated yet (process that is done in volume migration, for instance). If we create a template from the snapshot, and the deployment destination does not have access to the backing store, a problem will happen. A simple approach here would be to use `qemu-img convert`, to consolidate the volume instead of copying it with the reference. I am already working on the fix for this one. Smoke and integrations tests indeed are needed. -- 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]
