KarmicAufsUpdateManager

Revision 1 as of 2009-05-26 07:41:59

Clear message

Summary

In jaunty we started exploring how aufs can be used to test upgrades. For karmic this should go further to see if we can perform actual upgrades based on aufs that then sync back the writeable snapshot to the real filesystem (after upgrade or after the first boot). Performance of aufs is a issue (we need real numbers here too) and we need to talk about how a UI could look like if we want to give the user the option to test boot into a aufs upgraded system that has not been synced to the real system yet.

We need to fix https://bugs.launchpad.net/bugs/342451 in the process and how the free space calculation can be done. We still need to provide regular upgrades without aufs for e.g. the linux-image-server kernels (in hardy at least they do not have a aufs module).

Release Note

This section should include a paragraph describing the end-user impact of this change. It is meant to be included in the release notes of the first release in which it is implemented. (Not all of these will actually be included in the release notes, at the release manager's discretion; but writing them is a useful exercise.)

It is mandatory.

Rationale

This should cover the _why_: why is this change being proposed, what justifies it, where we see this justified.

User stories

Assumptions

Design

You can have subsections that better describe specific parts of the issue.

Implementation

This section should describe a plan of action (the "how") to implement the changes discussed. Could include subsections like:

UI Changes

Should cover changes required to the UI, or specific UI that is required to implement this

Code Changes

Code changes should include an overview of what needs to change, and in some cases even the specific details.

Migration

Include:

  • data migration, if any
  • redirects from old URLs to new ones, if any
  • how users will be pointed to the new way of doing things, if necessary.

Test/Demo Plan

It's important that we are able to test new features, and demonstrate them to users. Use this section to describe a short plan that anybody can follow that demonstrates the feature is working. This can then be used during testing, and to show off after release. Please add an entry to http://testcases.qa.ubuntu.com/Coverage/NewFeatures for tracking test coverage.

This need not be added or completed until the specification is nearing beta.

Unresolved issues

This should highlight any issues that should be addressed in further specifications, and not problems with the specification itself; since any specification with problems cannot be approved.

BoF agenda and discussion

Better error handling for failing upgrades

In jaunty we started exploring how aufs can be used to test upgrades. For karmic this should go further to see if we can perform actual upgrades based on aufs that then sync back the writeable snapshot to the real filesystem (after upgrade or after the first boot). Performance of aufs is a issue (we need real numbers here too) and we need to talk about how a UI could look like if we want to give the user the option to test boot into a aufs upgraded system that has not been synced to the real system yet.

We need to fix https://bugs.launchpad.net/bugs/342451 in the process and how the free space calculation can be done. We still need to provide regular upgrades without aufs for e.g. the linux-image-server kernels (in hardy at least they do not have a aufs module).

aufs in karmic?

Very likely

Options

- unionfs (got some problems in the past) - aufs (patch it in again) - dm-snapshot - fs with snapshot support (not going to happen) - unionfs-fuse (slow, locking issues?) - custom engineering (write a special upgrade-fuse-fs) - deltafs - clicfs - fuse results in significant performance degradation (10x slower?) and also

  • uses more memory

- fuse needs more memory than in kernel solutions

- provide various ways to create the snapshot depending on what is

  • available on the system (aufs, unionfs-fuse)

- after the upgrade, compute the delta between final and prev and save

  • that somewhere for later rollback and tar it up

- disk space overhead for maintaining snapshots? Think of SSDs or other

  • drives with a limited capacity.

- Compressing snapshots is a possibility; that may result in longer upgrade

  • times however

- integrate with friendly-recovery - integrate with apport on recovery (save a bug with the failed upgrade logs

  • for later submission)

- integrate with apport, kernel can not boot, etc and give the option

  • to recover then

* we need a solution for 8.04 -> 10.04 * look at the problem again at 10.04 * write abstraction layer * do benchmarks * integrate rollback in the admin menu

- good candidate for announcement notes - to get visibility that upgrades are

  • safe

open issues

- encrypted dirs - where to show the "rollback" option - aufs needs backport of dpkg for bug #342451 - python-fuse not in main - fuse would need arch: all compoenent as part of the upgrader


CategorySpec