Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion VMEncryption/main/handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the incident reported for EncryptFormalAll scenarios only?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, in standard VM resource disk encryption is supported only for EncryptFormalAll scenario. issue has been seen on stop start.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the resource disk still getting encrypted if it is unmounted?

Copy link
Author

@pankajosh pankajosh Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, resource disk got encrypted if EFA is there, irrespective of disk mount.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, we should consider mounting BEK volume on /bekvolume

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@canfikret yeah, we have been wanting to move it. For new VM's, it is an easy change, but for existing VM's, snapshots/backups/etc we would need to think about a solution that wont break those.

#in case of stop start unmount /mnt to avoid resource disk encryption issues.
disk_util.umount('/mnt')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where will the resource disk get mounted again?

Have you considered creating a separate mount point for BEK which is not under /mnt? For example, /azure_bek_disk ?

is_migrate_operation = False
if CommonVariables.MigrateKey in public_settings:
if public_settings.get(CommonVariables.MigrateKey) == CommonVariables.MigrateValue:
Expand Down