u-r-c should better handle ephemeral volumes by creating missing directories and symlinks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Repository Cache Charm |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Hi,
In at least one of our cloud providers, we use ephemeral volumes to store both the metadata as well as the squid cache. During reboots, it's possible that the volume is lost and a new one assigned. Unfortunately, this causes two issues:
* labels are used in /etc/fstab
Instances fail to boot because it's unable to mount the device as the filesystem label no longer exists. Here's the /etc/fstab entry, perhaps this is created by walinux agent?:
| LABEL=urc_0 /srv/ubuntu-
With the boot error:
| [ TIME ] Timed out waiting for device dev-disk-
| [DEPEND] Dependency failed for /srv/ubuntu-
| [DEPEND] Dependency failed for Local File Systems.
| Press Enter for maintenance
| (or press Control-D to continue):
* directories and symlinks are missing
The other thing is, the structure required by both apache and squid are missing on new volumes. The charm should really check that these exists (both cluster-
| ubuntu@machine-6:~$ grep ephem /etc/apache2/
| DocumentRoot /srv/ubuntu-
| <Directory "/srv/ubuntu-
| ubuntu@machine-6:~$ ls -la /srv/ubuntu-
| lrwxrwxrwx 1 root root 66 Jul 3 00:27 ubuntu -> /srv/ubuntu-
| ubuntu@machine-6:~$ grep ephem /etc/squid-
| cache_dir aufs /srv/ubuntu-
For squid, it requires cache directory to exist, and 'squid -z' to create the cache hierachy.
Changed in ubuntu-repository-cache: | |
status: | New → Confirmed |
See also https:/ /bugs.launchpad .net/ubuntu- repository- cache/+ bug/1668538