fix config export to test backup apis

This commit is contained in:
Abhisar Sinha 2026-04-07 05:58:36 +05:30 committed by Abhishek Kumar
parent dc480e07d3
commit 6e420fecd2
2 changed files with 4 additions and 2 deletions

View File

@ -52,7 +52,7 @@ public interface KVMBackupExportService extends Configurable, PluggableService {
ConfigKey<Boolean> ExposeKVMBackupExportServiceApis = new ConfigKey<>("Advanced", Boolean.class,
"expose.kvm.backup.export.service.apis",
"false",
"Enable to expose APIs for testing the KVM Backup Export Service.", false, ConfigKey.Scope.Global);
"Enable to expose APIs for testing the KVM Backup Export Service.", true, ConfigKey.Scope.Global);
/**
* Creates a backup session for a VM
*/

View File

@ -175,6 +175,7 @@ public class KVMBackupExportServiceImpl extends ManagerBase implements KVMBackup
backup.setToCheckpointId(toCheckpointId);
backup.setFromCheckpointId(fromCheckpointId);
backup.setType("FULL");
Long hostId = vm.getHostId() != null ? vm.getHostId() : vm.getLastHostId();
backup.setHostId(hostId);
@ -989,7 +990,8 @@ public class KVMBackupExportServiceImpl extends ManagerBase implements KVMBackup
public ConfigKey<?>[] getConfigKeys() {
return new ConfigKey[]{
ImageTransferPollingInterval,
ImageTransferIdleTimeoutSeconds
ImageTransferIdleTimeoutSeconds,
ExposeKVMBackupExportServiceApis
};
}
}