sureshanaparti commented on code in PR #8904:
URL: https://github.com/apache/cloudstack/pull/8904#discussion_r1562494245
##########
engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java:
##########
@@ -1720,6 +1720,9 @@ private Pair<VolumeVO, DataStore> recreateVolume(VolumeVO
vol, VirtualMachinePro
DiskOffering diskOffering =
_entityMgr.findById(DiskOffering.class, vol.getDiskOfferingId());
if (diskOffering.getEncrypt()) {
vol = setPassphraseForVolumeEncryption(vol);
+ } else if (vol.getPassphraseId() != null) {
Review Comment:
@vishesh92 I think, better to not allow offering change for encrypted
volumes if disk offering doesn't support encryption. during recreate, new
volume shouldn't set the passphrase if encryption is not enabled in the
offering. check/fix when passphrase is set for the volume.
--
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]