JoaoJandre commented on code in PR #9270:
URL: https://github.com/apache/cloudstack/pull/9270#discussion_r1741975088
##########
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java:
##########
@@ -159,6 +178,49 @@ public class KVMStorageProcessor implements
StorageProcessor {
*/
private long waitDelayForVirshCommands = 1000l;
+ private int incrementalSnapshotTimeout;
+
+ private static final String CHECKPOINT_XML_TEMP_DIR =
"/tmp/cloudstack/checkpointXMLs";
+
+ private static final String BACKUP_XML_TEMP_DIR =
"/tmp/cloudstack/backupXMLs";
+
+ private static final String BACKUP_BEGIN_COMMAND = "virsh backup-begin
--domain %s --backupxml %s --checkpointxml %s";
+
+ private static final String BACKUP_XML = "<domainbackup><disks><disk
name='%s' type='file'><target file='%s'/><driver
type='qcow2'/></disk></disks></domainbackup>";
+
+ private static final String INCREMENTAL_BACKUP_XML =
"<domainbackup><incremental>%s</incremental><disks><disk name='%s'
type='file'><target file='%s'/><driver
type='qcow2'/></disk></disks></domainbackup>";
+
+ private static final String CHECKPOINT_XML =
"<domaincheckpoint><name>%s</name><disks><disk name='%s'
checkpoint='bitmap'/></disks></domaincheckpoint>";
+
+ private static final String CHECKPOINT_DUMP_XML_COMMAND = "virsh
checkpoint-dumpxml --domain %s --checkpointname %s --no-domain";
+
+ private static final String DOMJOBINFO_COMPLETED_COMMAND = "virsh
domjobinfo --domain %s --completed";
+
+ private static final String DOMJOBABORT_COMMAND = "virsh domjobabort
--domain %s";
+
+ private static String CHECKPOINT_DELETE_COMMAND = "virsh checkpoint-delete
--domain %s --checkpointname %s";
+
+ private static final String DUMMY_VM_XML = "<domain type='qemu'>\n" +
Review Comment:
@slavkap I had some issues when the emulator was not informed. Since
`LibvirtComputingResource` has the path for it, I don't see any issue in using
it. We also always use it when creating user/system VMs.
--
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]