From 2fd3f552269832828ba2b1f4dbd8f7a4811b6484 Mon Sep 17 00:00:00 2001 From: pankajosh Date: Fri, 7 Jul 2023 04:11:36 -0700 Subject: [PATCH] stop start issue fix for EnableEncryptionFormatAll --- VMEncryption/main/handle.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/VMEncryption/main/handle.py b/VMEncryption/main/handle.py index 712e4be90..1ffa33256 100644 --- a/VMEncryption/main/handle.py +++ b/VMEncryption/main/handle.py @@ -751,7 +751,11 @@ def enable(): encryption_config = EncryptionConfig(encryption_environment=encryption_environment, logger=logger) if encryption_config.config_file_exists(): existing_volume_type = encryption_config.get_volume_type() - + #log to capture lsblk before encryption view. + disk_util.log_lsblk_output() + if public_settings.get(CommonVariables.EncryptionEncryptionOperationKey) == CommonVariables.EnableEncryptionFormatAll: + #in case of stop start unmount /mnt to avoid resource disk encryption issues. + disk_util.umount('/mnt') is_migrate_operation = False if CommonVariables.MigrateKey in public_settings: if public_settings.get(CommonVariables.MigrateKey) == CommonVariables.MigrateValue: