GitHub user marving123 added a comment to the discussion: snapshot schedules for encrypted volumes
Hi @ffrouin, I checked **'SnapshotManagerImpl.java'** [official Apache CloudStack source code] and there is a check in the **'createPolicy()'** method that prevents scheduling snapshots for encrypted volumes. The reason mentioned in the code is that snapshot creation can fail while the VM is running. This explains why manual snapshots may work but creating a snapshot schedule fails. Stopping the VM won't bypass this policy restriction either. The CloudStack 4.23 documentation also mentions that encrypted volume snapshots on KVM are only supported when the instance is stopped. Although you're using 4.22, this is worth noting as the limitation is documented in the newer release as well. https://apache.googlesource.com/cloudstack/+/29a223bf9b75bf62099c227b95d75cae65a1cf62/server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java https://docs.cloudstack.apache.org/en/4.23.0.0/adminguide/storage.html#kvm-volume-snapshot-specifics I couldn't find any confirmed plans for supporting scheduled snapshots of encrypted volumes. Perhaps the developers can clarify if there is already a feature request for this. Marvin Accuweb.Cloud GitHub link: https://github.com/apache/cloudstack/discussions/13262#discussioncomment-19996489 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
