[Bug 1382257] Re: Add "readme" to Azure's ephemeral (resource) disk
Ben Howard
ben.howard at canonical.com
Thu Nov 6 23:46:19 UTC 2014
This will need to be SRU'd back to prior releases. I debated making this
a build recipe piece, however, I think that the logic here should be up-
datable.
After it appears in Vivid, I'll start the SRU process for this.
** Summary changed:
- Add "readme" to Azure's ephemeral (resource) disk
+ [SRU] Add "readme" to Azure's ephemeral (resource) disk
** Description changed:
- When the Azure Linux agent handles the resource disk it adds a file on
- the newly formatted partition called "DATALOSS_WARNING_README.txt". The
- purpose of this file is to warn customers that the disk is temporary and
- may be wiped if the VM is rebooted or moved to another host.
+ [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_WARNING_README.txt exists
+ 4. Run "chattr -i /mnt/DATALOSS_WARNING_README.txt"
+ 5. Reboot
+ 6. Confirm that DATALOSS_WARNING_README.txt is re-written
+
+ [ORIGINAL REPORT]
+ When the Azure Linux agent handles the resource disk it adds a file on the newly formatted partition called "DATALOSS_WARNING_README.txt". The purpose of this file is to warn customers that the disk is temporary and may be wiped if the VM is rebooted or moved to another host.
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_FILENAME="DATALOSS_WARNING_README.txt"
README_FILECONTENT="""\
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://msdn.microsoft.com/en-us/library/windowsazure/jj672979.aspx
"""
---------------------------------
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1382257
Title:
[SRU] Add "readme" to Azure's ephemeral (resource) disk
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1382257/+subscriptions
More information about the Ubuntu-server-bugs
mailing list