-
Notifications
You must be signed in to change notification settings - Fork 261
stop start issue fix for EnableEncryptionFormatAll #1753
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
Open
pankajosh
wants to merge
1
commit into
ade-singlepass-dev
Choose a base branch
from
pankajjoshi/hotfixRDEncryptionStopStart
base: ade-singlepass-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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') | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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: | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.