aufs support is deprecated and should be handled on upgrade

Bug #1907713 reported by Steve Langasek
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
docker.io (Ubuntu)
Fix Released
High
William Wilson
Hirsute
Fix Released
High
William Wilson
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
William Wilson
Hirsute
Fix Released
High
William Wilson

Bug Description

The Ubuntu kernel team has continued to carry aufs support as a sauce patch but there is no known application for this filesystem anymore except for docker deployments using this deprecated storage option.

We can't expect the kernel team to carry this deprecated filesystem indefinitely merely because docker.io upstream hasn't provided a migration path for existing installs. If we can't do a smooth conversion on upgrade of the docker.io package from aufs to another storage backend, then at the very least we need to draw a line and block the upgrades between releases.

So for hirsute we should make use of aufs in the docker config to result in blocking the upgrade in preinst.

We should also add a quirk to ubuntu-release-upgrader, so that on release upgrades this case can be detected before starting the upgrade and causing maintainer script failures in the middle.

We don't really want this change to be SRUed back to prior releases, but this is subject to being revisited if the focal HWE kernel needs to drop aufs support.

Tags: patch fr-1000
Steve Langasek (vorlon)
Changed in docker.io (Ubuntu):
importance: Undecided → High
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → High
Steve Langasek (vorlon)
tags: added: fr-1000
Changed in docker.io (Ubuntu Hirsute):
assignee: nobody → William Wilson (jawn-smith)
Changed in ubuntu-release-upgrader (Ubuntu Hirsute):
assignee: nobody → William Wilson (jawn-smith)
Revision history for this message
William Wilson (jawn-smith) wrote :

Attached is a debdiff to add a preinst file to docker.io that will stop it from upgrading if containers are using aufs.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Hi, docker packaging is maintained at https://github.com/tianon/debian-docker/tree/ubuntu so perhaps you could propose this as a change there? (It's possible we should move this to somewhere with a more generic URL -- or already have, but I don't think so)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lp1907713.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Although there's no reason for the deb's preinst to be checking /var/snap/docker/common/var-lib-docker/aufs surely?

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1907713] Re: aufs support is deprecated and should be handled on upgrade

On Wed, Feb 24, 2021 at 01:27:45AM -0000, Michael Hudson-Doyle wrote:
> Although there's no reason for the deb's preinst to be checking
> /var/snap/docker/common/var-lib-docker/aufs surely?

Agreed, that's not part of the deb so out of scope for a docker.io preinst.

Revision history for this message
William Wilson (jawn-smith) wrote :

https://github.com/tianon/debian-docker/pull/4

This PR removes the check for the snap aufs dir.

Revision history for this message
William Wilson (jawn-smith) wrote :

Per Tianon's suggestion, I have created a NEWS file for aufs-tools to warn users of the deprecation of AUFS.

Revision history for this message
Brian Murray (brian-murray) wrote :

I've uploaded the ubuntu-release-upgrader changes for this today.

Changed in ubuntu-release-upgrader (Ubuntu Hirsute):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package docker.io - 20.10.2-0ubuntu2

---------------
docker.io (20.10.2-0ubuntu2) hirsute; urgency=medium

  [ William 'jawn-smith' Wilson ]
  * Add a preinst check for aufs storage-driver to fail the upgrade.
    (LP: #1907713)

 -- Michael Hudson-Doyle <email address hidden> Tue, 02 Mar 2021 18:45:16 +1300

Changed in docker.io (Ubuntu Hirsute):
status: New → Fix Released
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.