Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop start issue fix for EnableEncryptionFormatAll #1753

Open
wants to merge 1 commit into
base: ade-singlepass-dev
Choose a base branch
from

Conversation

pankajosh
Copy link

fix for Incident 384350526 : Investigate latency Issues with Compute Instance LROs.
resource disk re-encryption fix for stop start use case.


#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.

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')
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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants