Features/OfflineSystemUpdates

From FedoraProject

< Features
Revision as of 04:56, 7 June 2012 by Mclasen (Talk | contribs)

Jump to: navigation, search

Contents

Offline Updates using systemd and PackageKit

Summary

Make updating of system components more reliable by doing it in an minimal, controlled environment.

Owner

Current status

  • Targeted release: Fedora 18
  • Last updated: 2012-06-06
  • Percentage of completion: 50%

The necessary systemd infrastructure has landed in rawhide with the systemd 183 release. The PackageKit and GNOME pieces are still being developed.

Detailed Description

By "offline" OS updates we mean package installations and updates that are run with the system booted into a special system update mode, in order to avoid problems related to conflicts of libraries and services that are currently running with those on disk.

The system update mode is implemented by booting into a special target. The target installs the downloaded updates and then reboots back into the regular default target. For more details, see http://freedesktop.org/wiki/Software/systemd/SystemUpdates

Installing updates will still be the users choice - if system updates are available, we will offer 'Restart and install updates' in addition to a plain 'Restart' in the menus.

Note that this feature does not prevent you from using yum to install updates whenever you want to. We also differentiate updates of 'OS components' (which we want to do in this offline fashion) from application updates and installations, which should still be possible from the UI without restarting the system.

Also note that this feature is about implementing offline updates for GNOME. Other spins are not affected, although they could choose to use the same systemd and PackageKit infrastructure, and provide a similar experience.

Benefit to Fedora

Replacing libraries and files while the OS is running can cause problems ranging from application crashes to inconsistent system states where processes are using different versions of a library at the same time. By installing system updates 'outside' the normal system operation, we avoid these problems.

Secondary benefits of the work done for this feature include that we are downloading all updates before we notify the user about available updates, and thus avoid unpleasant wait times.

Scope

  • Update systemd to version >= 183 (done in rawhide)
  • Complete the PackageKit support for offline updates (mostly done upstream)
  • Update gnome-packagekit to support offline updates
  • Update gnome-shell to offer 'Install updates and restart' when updates are available ([#677394])
  • Adjust plymouth to show useful information during the offline update

How To Test

  1. Testcase 1: Available system updates
    1. Use repositories which have system updates available
    2. Verify that you are not notified about available updates before they have been downloaded
    3. The 'Software Updates' UI should not offer to directly install system updates
    4. The user status menu should have a 'Restart and install updates' item
  1. Testcase 2: Installing system updates
    1. In the situation of testcase 1, choose 'Restart and install updates'
    2. Verify that the system shuts down, then restarts in the system update mode
    3. Plymouth should show a spinner or progress bar and inform you that software updates are installed
    4. When this completes, the system should reboot again, bringing you to the login screen
    5. Log in
    6. Verify that the 'Restart and install updates' menuitem is gone
    7. Rebooting the system now will not enter the system update mode, but just reboot as usual
  1. Testcase 3: Update problem
    1. Same situation as testcase 1, but with a package set that will not successfully update (one way to achieve this would be to manually set up a repository with an inconsistent set of updates)
    2. Repeat the same steps as in testcase 2
    3. Verify that the system update fails, but you get rebooted again and end up at the login screen again
    4. Verify that you get notified about the failed update attempt
    5. Verify that the failed system update is not tried again if you reboot again
  1. Testcase 4: Commandline use
    1. Same situation as testcase 1
    2. Open a terminal and run yum update
    3. Verify that this works as before
  1. Testcase 5: Application updates
    1. Use repositories which have application updates available
    2. Open 'Software Updates'
    3. Verify that the available updates are listed, and that you can install them without rebooting

User Experience

The desired user experience for System updates is described in https://live.gnome.org/GnomeOS/Design/Whiteboards/SoftwareUpdates

Dependencies

none outside of systemd, packagekit and GNOME components

Contingency Plan

If offline updates don't work in time for F18, we can go back to installing all updates while the system is running.

Documentation

Release Notes

  • Fedora 18 introduces offline system updates, which means that updates of system components are installed in a special environment outside the normal system operation.

Comments and Discussion