[SRU] Add "readme" to Azure's ephemeral (resource) disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
walinuxagent (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Utopic |
Fix Released
|
Undecided
|
Unassigned | ||
Vivid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[JUSTIFICATION] Ephemeral disks on Azure are per-boot ephemeral are unsafe for storing data. Microsoft has asked that a warning file be placed on the disks. This would normally be handled by the agent, however, since Ubuntu uses cloud-init for provisioning of the ephemeral disk, the warning file is not placed.
[FIX] Added an upstart job that places the warning file on the ephemeral device when the instance is provisioned using Cloud-init.
[TEST]
1. Install new version of walinuxagent
2. Reboot
3. Confirm that DATALOSS_
4. Run "chattr -i /mnt/DATALOSS_
5. Reboot
6. Confirm that DATALOSS_
[ORIGINAL REPORT]
When the Azure Linux agent handles the resource disk it adds a file on the newly formatted partition called "DATALOSS_
Since cloud-init handles the resource disk for Ubuntu VMs in Azure, can we have cloud-init add this file as well when it formats the resource/ephemeral disk?
In the Linux agent we have to following code to define this file:
-------
README_
README_
WARNING: THIS IS A TEMPORARY DISK.
Any data stored on this drive is SUBJECT TO LOSS and THERE IS NO WAY TO RECOVER IT.
Please do not use this disk for storing any personal or application data.
For additional details to please refer to the MSDN documentation at : http://
"""
-------
Changed in cloud-init (Ubuntu): | |
assignee: | nobody → Ben Howard (utlemming) |
importance: | Undecided → High |
Uploaded a new version of walinuxagent that includes an upstart job that will provide the warning.