The ubuntu-repository-cache charm remounts ephemeral storage in a location more to its liking, and configures it in fstab to mount by label. Due to the unique properties of Azure's storage infrastructure, cloud-init does filesystem setup on every boot. It seems we just don't reboot our Azure instances, because only now have we discovered that /usr/sbin/ephemeral-disk-warning.sh ends up running the following commands the next time such an instance is booted:
chmod 0444 /srv/ubuntu-repository-cache/ephemeral/0 /mnt/DATALOSS_WARNING_README.txt
chattr +i /srv/ubuntu-repository-cache/ephemeral/0 /mnt/DATALOSS_WARNING_README.txt
which as you can imagine really ruins ubuntu-repository-cache's day. u-r-c should most likely be updated to disable ephmemeral-disk-warning as instructed, but it would also be best if ephemeral-disk-warning.sh dealt more gracefully with this situation.
Status changed to 'Confirmed' because the bug affects multiple users.