This is an automated email from the ASF dual-hosted git repository.
weizhouapache pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 79189c8d6a2 backup: remove the powered-off precondition for all backup
providers (#14094)
79189c8d6a2 is described below
commit 79189c8d6a25a7b6f161704edcc1ed79977ed030
Author: Wei Zhou <[email protected]>
AuthorDate: Tue Sep 15 13:46:07 2026 +0200
backup: remove the powered-off precondition for all backup providers
(#14094)
---
.../src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java | 4 ----
1 file changed, 4 deletions(-)
diff --git
a/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
b/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
index 654926eaee7..782862df6d8 100644
--- a/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
+++ b/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
@@ -1764,10 +1764,6 @@ public class BackupManagerImpl extends ManagerBase
implements BackupManager {
throw new CloudRuntimeException("Failed to find Instance Backup
Offering");
}
- if (!StringUtils.equals(KBOSS_BACKUP_PROVIDER, offering.getProvider())
&& !VirtualMachine.PowerState.PowerOff.equals(vm.getPowerState())) {
- throw new CloudRuntimeException(String.format("VM [%s] needs to be
powered off to restore the volume [%s].", vm.getUuid(), backedUpVolumeUuid));
- }
-
BackupProvider backupProvider =
getBackupProvider(offering.getProvider());
VolumeVO backedUpVolume =
volumeDao.findByUuidIncludingRemoved(backedUpVolumeUuid);
Pair<HostVO, StoragePoolVO> restoreInfo;