Don't stop the upgrade to inform about service restarts

Bug #558440 reported by Scott Kitterman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pam (Ubuntu)
New
Low
Unassigned

Bug Description

Binary package hint: update-manager

The pam upgrade blocks the entire release upgrade process until it is acknowledged:

Preparing to replace libpam0g 1.1.0-2ubuntu1 (using .../libpam0g_1.1.1-2ubuntu1_i386.deb) ...
Unpacking replacement libpam0g ...
Setting up libpam0g (1.1.1-2ubuntu1) ...
Checking for services that may need to be restarted...Checking init scripts...

Restarting services possibly affected by the upgrade:
  saslauthd: stopping...starting...done.
  cron: stopping...starting...done.
  atd: stopping...starting...done.

Services restarted successfully.

While this is normally a good practice, when upgrading to a new release, it risks hanging the upgrade process and serves no purpose (there is no option other than go ahead and all services get restarted at some point during the upgrade process, so this isn't news). This should be notification should be disabled during upgrades to a new release.

Tags: iso-testing
tags: added: iso-testing
Revision history for this message
Steve Langasek (vorlon) wrote :

libpam0g prompts for this on upgrade because it has no way of knowing whether all of those services are being upgraded at the same time. If they're not, the user may not be expecting the service interruption, so the behavior is to ask the user first before restarting services from other packages.

Note that the prompt is suppressed if running under update-manager and the user does not have any non-default services installed. In this case you have sasl2-bin installed, which is not a service installed on a default desktop.

affects: update-manager (Ubuntu) → pam (Ubuntu)
Changed in pam (Ubuntu):
status: New → Won't Fix
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 558440] Re: Don't stop the upgrade to inform about service restarts

Right, but this was a server upgrade. Default desktop is rather irrelevant.

Revision history for this message
Steve Langasek (vorlon) wrote :

That's true, but OTOH it's that much more important on a server than on a desktop to not restart services when the admin isn't expecting it. I understand that in this case you *were* expecting it, but as this may even restart services whose packages are not being upgraded (because the package remains unchanged for 6 months?), I'm very hesitant to restart non-default services without an explicit warning to the admin.

If you can get agreement from the ubuntu-server community at large that it's ok to have unannounced service restarts in this case, then I'm willing to make the change.

Changed in pam (Ubuntu):
status: Won't Fix → New
Steve Langasek (vorlon)
Changed in pam (Ubuntu):
importance: Undecided → Low
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.