Description of problem: rhn_check has traceback when disk is full Version-Release number of selected component (if applicable): # rpm -q up2date up2date-4.7.1-17.el4 # uname -a Linux proliant04.englab.brq.redhat.com 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux How reproducible: always Steps to Reproduce: 1. disk has very very low space, for ex none ... test it with = "dd if=/dev/zero of=/huge" 2. RHN | schedule some package to install 3. your machine: rhn_check Actual results: sometimes traceback, sometimes strange end of installing process with "echo $?=0" traceback: [root@proliant04 8295]# rhn_check Name Version Rel ---------------------------------------------------------- amanda 2.4.4p3 1 i386 Traceback (most recent call last): File "/usr/sbin/rhn_check", line 345, in ? handle_action(action) File "/usr/sbin/rhn_check", line 218, in handle_action (status, message, data) = run_action(method, params) File "/usr/sbin/rhn_check", line 174, in run_action (status, message, data) = do_call(method, params) File "/usr/sbin/rhn_check", line 91, in do_call retval = apply(method, params) File "/usr/share/rhn/actions/packages.py", line 353, in update ret = _catchErrors(batchRun, "packages.update", (0, pkgList)) File "/usr/share/rhn/actions/packages.py", line 329, in _catchErrors data['space_available'] = e.freeDiskSpace AttributeError: OutOfSpaceError instance has no attribute 'freeDiskSpace' Expected results: There should be same message like up2date <package> has: #up2date amanda . . . There was an error installing the packages. The message was: The total size of the selected packages (84 kB) exceeds your free disk space (0 kB). Additional info:
[root@fjs-0-01 /]# rhn_check Traceback (most recent call last): File "/usr/sbin/rhn_check", line 341, in ? up2dateAuth.updateLoginInfo() File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 144, in updateLoginInfo log.log_me("updating login info") File "/usr/share/rhn/up2date_client/up2dateLog.py", line 30, in log_me self.write_log(s) File "/usr/share/rhn/up2date_client/up2dateLog.py", line 55, in write_log log_file.flush() IOError: [Errno 28] No space left on device Verified. As per Sayli, this is the intended result of the fix.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0972.html