ephemeral-disk-warning.service trips over multiply-mounted filesystems

Bug #1626318 reported by Paul Collins
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
walinuxagent (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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.

Paul Collins (pjdc)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in walinuxagent (Ubuntu):
status: New → Confirmed
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Paul,
what you report seems correct to me but there is a very similar bug about this where I'll dup this to to get a better overview on this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.