Bug 807150

Summary: gnome allows machine to be shutdown while updates are being applied - can render machine unstable
Product: Red Hat Enterprise Linux 6 Reporter: Grant Williamson <grant_williamson>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2CC: ddumas, jherrman, jrb, ngalvin, nphilipp, tpelka, walicki
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Previously, is was possible to shut down the system while packages were still being installed or removed. This in many cases damaged the RPM database and thus led to non-functional packages. This update provides a plug-in that prevents systemd from shutting down the system while RPM transactions are still running. To enable this behavior, it is necessary to install the new rpm-plugin-systemd-inhibit subpackage.
Story Points: ---
Clone Of:
: 1160401 (view as bug list) Environment:
Last Closed: 2012-08-21 15:45:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 782183, 840699, 1160401    

Description Grant Williamson 2012-03-27 07:48:01 UTC
Description of problem:

In gnome, run system, administration, software update.
Updates are downloaded, tested then installed.
Click on system, shutdown, "shutdown|log-off|hibernate|suspend"
Machine is allowed to be "shutdown", it should not be.
As a result when restarted the machine can be left in a state which renders it inoperable.

A user should be warned that updates are being installed, and the "shutdown" process canceled.

Comment 2 Grant Williamson 2012-03-27 13:16:27 UTC
Additionally, same can be said of pressing fn-f4 or fn-f12 machine can suspend/hibernate while updates are being applied.

Comment 5 RHEL Program Management 2012-05-03 05:02:59 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 9 RHEL Program Management 2012-08-15 00:15:05 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.

Comment 10 John Walicki 2012-08-15 02:33:27 UTC
Shutting down while updates are being installed is a sure fire way to wreck a system.  Dozens of employees have very quickly bricked their machines.  I'm shocked that Gnome hasn't resolved this issue already with a set of warnings and methods to halt the shutdown process before getting into a unrecoverable state.

We've implemented several pre-Shutdown notification warnings to inform the user of background patch installation and that KVM virtual machines are still running.

Disappointed that we won't get a fix for a major deficiency.

Comment 15 Jonathan Blandford 2012-08-21 15:45:45 UTC
Marking as a duplicate.  The fix suggested in #669798 is not ideal, but may act as a stop gap.  It basically inhibits suspend and hibernate during a transaction, also stop the active user from logging out or shutting down. This only works for the active user and the user is also able to still shutdown using tools on the command line. The active user will be warned if they try to shutdown only using the GNOME graphical desktop. A better fix will be available in RHEL 7 where systemd can be used to inhibit shutdown systematically.

*** This bug has been marked as a duplicate of bug 669798 ***

Comment 16 John Walicki 2015-11-17 21:58:54 UTC
Outstanding.  Thank you!