Bug 432783
Summary: | Feature: Protect running update on shutdown | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tim Niemueller <tim> |
Component: | yum-cron | Assignee: | Habig, Alec <ahabig> |
Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 8 | CC: | james.antill |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-02-14 17:51:40 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tim Niemueller
2008-02-14 11:52:00 UTC
Would be easy enough to code, but here are some big problems: 1) yum has a pid lock even during its (large) random wait before doing the actual work. The random wait is so that every machine around the world running yum-cron around the world doesn't assault the mirrors simultaneously, so is an important feature we wouldn't want to disable, but waiting hours for a shutdown is Bad. One could override it on console, but remotely one could get really trapped (shutdown also disables logins). 2) Messing with the shutdown scripts is outside the scope of this package. That's a core Fedora package, and changes there would have to be made by that package's owners. And very carefully thought about to deal with unintended consequences. But perhaps there is already a list of Things to Not Shut Down During that could be looked at? The upside would be a way to eliminate instances of rebooting with partial upgrades in progress, lots of loose files around, perhaps a corrupted rpm database. But, in practice I've not seen such problems in many years (and have clobbered machines in the midst of updates). I suspect that yum and rpm are now doing some cleanup when given a SIGTERM by the shutdown script, so that they're not left in an un-recoverable state. Since I can't make such a change as part of this package, I'll mark this bug as CANTFIX. There are two places it might be addressed, though. The "sysvinit" package owns the shutdown scripts. And some combination of yum and rpm could address how they handle being sent a SIGTERM by the shutdown scripts. |