Skip to content

Commit b366a1e

Browse files
committed
backup: remove the powered-off precondition for all backup providers
1 parent e0f3006 commit b366a1e

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,10 +1764,6 @@ public boolean restoreBackupVolumeAndAttachToVM(final String backedUpVolumeUuid,
17641764
throw new CloudRuntimeException("Failed to find Instance Backup Offering");
17651765
}
17661766

1767-
if (!StringUtils.equals(KBOSS_BACKUP_PROVIDER, offering.getProvider()) && !VirtualMachine.PowerState.PowerOff.equals(vm.getPowerState())) {
1768-
throw new CloudRuntimeException(String.format("VM [%s] needs to be powered off to restore the volume [%s].", vm.getUuid(), backedUpVolumeUuid));
1769-
}
1770-
17711767
BackupProvider backupProvider = getBackupProvider(offering.getProvider());
17721768
VolumeVO backedUpVolume = volumeDao.findByUuidIncludingRemoved(backedUpVolumeUuid);
17731769
Pair<HostVO, StoragePoolVO> restoreInfo;

0 commit comments

Comments
 (0)