Bug 185186 - Pup (Yum?) doesn't handle disk full situation.
Pup (Yum?) doesn't handle disk full situation.
Product: Fedora
Classification: Fedora
Component: pirut (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Depends On:
Blocks: FC6Target
  Show dependency treegraph
Reported: 2006-03-11 06:38 EST by Gilboa Davara
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-10 15:09:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Gilboa Davara 2006-03-11 06:38:23 EST
Description of problem:
When upgrading a machine with limited disk space, if pup (or actually yum)
manages to download all the required packages, pup does not handle disk-full
errors during the package installation itself, nor does it report that any error
Once pup finished updating the machine it just closed down (crashed?).
Thinking the installation succeeded, I proceeded to reboot the machine but the
the reboot attempt failed. 
Booting into CD rescue mode, I determined that the main root disk was full and
that yum failed to install the 2038 kernel initrd image leaving the machine in
limbo mode.
Sadly enough, due to reasons beyond my control I was forced to delete the master
FC5T3 vmware image so I cannot reproduce the problem. (Getting a meaningful
error code out of yum/pup)

Version-Release number of selected component (if applicable):
Pirut 0.9.10-1

How reproducible:

Steps to Reproduce:
1. Install FC5T3
2. Use pup/yum to determine how much space is required to download the latest
3. Full the root partition to "<root size> - <yum download size + 30MB>"
4. Fire up pup, let it update all the packages.
Actual results:
1. Pup downloads the packages.
2. Pup install the packages.
3. Pup closes. No error code.

Expected results:
1. Pup should warn user that there's insufficient space to install required
2. If user insist on installing the updates and yum/rpm fails due to
insufficient disk space, display a meaningful error code.
3. Role back changes?

Additional info:
Comment 1 Jeremy Katz 2006-03-13 13:46:23 EST
Can you look in the xsession errors to see if there's anything there?  most
things like this are at least trying to be caught, although there could be
something being missed
Comment 2 Gilboa Davara 2006-03-14 03:56:25 EST
Umm... Sadly enough, I need to reinstall the machine so I can't really reproduce
it now.
Comment 3 Jeremy Katz 2006-09-11 17:20:07 EDT
This is yum -- Seth is working on adding checking into yum itself at which
point, pirut can catch the error and display it usefully for the user.
Comment 4 Matthew Miller 2007-04-06 12:01:21 EDT
Fedora Core 5 and Fedora Core 6 are, as we're sure you've noticed, no longer
test releases. We're cleaning up the bug database and making sure important bug
reports filed against these test releases don't get lost. It would be helpful if
you could test this issue with a released version of Fedora or with the latest
development / test release. Thanks for your help and for your patience.

[This is a bulk message for all open FC5/FC6 test release bugs. I'm adding
myself to the CC list for each bug, so I'll see any comments you make after this
and do my best to make sure every issue gets proper attention.]
Comment 5 Jeremy Katz 2007-08-10 15:09:00 EDT
This should be handled a lot better in Fedora 7 and later

Note You need to log in before you can comment on or make changes to this bug.