Azure / Azure/azure-linux-extensions
[ADE] Exception: Encryption failed
- Dominant language
- Python
- Stars
- 333
- Forks
- 278
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
Getting following error when trying to encrypt the data disks on a RHEL 7.8 VM:
```
ERROR: Deployment failed. Correlation ID: 5ceea027-8a80-46d9-888a-047d4075fb33. VM has reported a failure when processing extension 'AzureDiskEncryptionForLinux'. Error message: "Failed to encrypt data volumes with error: Encryption failed for name:sdd1 type:part fstype:xfs mountpoint:/data1 label: model: size:1072693248 majmin:8:49 device_id:f8b3781b-1e82-4818-a1c3-63d806ec15bb, stack trace: Traceback (most recent call last):
File "/var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.52/main/handle.py", line 1839, in daemon_encrypt
os_items_to_stamp=os_items_to_stamp):
File "/var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.52/main/handle.py", line 2086, in daemon_encrypt_data_volumes
raise Exception(message)
Exception: Encryption failed for name:sdd1 type:part fstype:xfs mountpoint:/data1 label: model: size:1072693248 majmin:8:49 device_id:f8b3781b-1e82-4818-a1c3-63d806ec15bb
"
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the AzureDiskEncryptionForLinux extension's main/handle.py at daemon_encrypt (line 1839) and daemon_encrypt_data_volumes (line 2086), using the reported RHEL 7.8 VM, XFS filesystem, and /data1 volume as reproduction details. Trace why encryption fails for this data volume and document a confirmed cause or fix, with validation on the same configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, linux, python
- Domain
- cloud, operating-systems, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100