Bug 1454310

Summary: cdn-sync tries to download packages again and again when no free space left on device.
Product: Red Hat Satellite 5 Reporter: Martin Korbel <mkorbel>
Component: Satellite SynchronizationAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED WONTFIX QA Contact: Ales Dujicek <adujicek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: adujicek, galtukho, jdostal, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-backend-2.5.3-158-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1482981 (view as bug list) Environment:
Last Closed: 2018-01-16 13:37:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1483524    
Bug Blocks: 1450111, 1482981    

Description Martin Korbel 2017-05-22 12:34:37 UTC
Description of problem:
This bug is continuation of the bz1427231. We get ugly traceback, we we don't have free space for cdn-sync.

Version-Release number of selected component (if applicable):
spacewalk-backend-2.5.3-121.el6sat

How reproducible:
100%

Steps to Reproduce:

> dd if=/dev/zero of=/disk bs=1M count=1024
> losetup /dev/loop0 /disk
> mkfs.ext4 /dev/loop0

> umount /var/satellite/
> mount /dev/loop0 /var/satellite/
> df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        40G   13G   25G  35% /
tmpfs           1,9G  4,0K  1,9G   1% /dev/shm
/dev/loop0      976M  1,3M  924M   1% /var/satellite

> cdn-sync
...

06:16:17 1736/19500 : cjkuni-fonts-ghostscript-0.2.20080216.1-35.el6.noarch.rpm
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1105, in _retrieve
    self.fo.write(buf)
IOError: [Errno 28] No space left on device
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1105, in _retrieve
    self.fo.write(buf)
IOError: [Errno 28] No space left on device
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1105, in _retrieve
    self.fo.write(buf)
IOError: [Errno 28] No space left on device
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1105, in _retrieve
    self.fo.write(buf)
IOError: [Errno 28] No space left on device
06:16:18 1737/19500 : cjkuni-ukai-fonts-0.2.20080216.1-34.el6.noarch.rpm (failed)
06:16:18 1738/19500 : cjkuni-uming-fonts-0.2.20080216.1-34.el6.noarch.rpm (failed)
06:16:18 1739/19500 : cjkuni-ukai-fonts-0.2.20080216.1-35.el6.noarch.rpm (failed)
06:16:18 1740/19500 : cjkuni-ukai-fonts-0.2.20080216.1-36.el6.noarch.rpm (failed)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1105, in _retrieve
    self.fo.write(buf)
IOError: [Errno 28] No space left on device
06:16:18 1741/19500 : cjkuni-uming-fonts-0.2.20080216.1-35.el6.noarch.rpm (failed)

Process has been interrupted.

Comment 1 Jan Dobes 2017-05-22 12:40:28 UTC
These traceback are printed from urlgrabber library code. Thrown exceptions are catched. Let's investigate this after GA.

Comment 2 Gennadii Altukhov 2017-08-21 11:01:52 UTC
As Jan mentioned in comment#1 the problem error message is printed from within the urlgrabber library. I created a bug for them BZ 1483524. This is only a half of problem. The second part is fixed in our code in upstream. spacewalk.git:
830aa5eb6eda3d61bd1e5586fdacd049ead4c717

Comment 3 Gennadii Altukhov 2017-12-14 10:33:05 UTC
BZ 1483524 closed as WONTFIX, so we have only one fix in our code. switch to MODIFIED.

Comment 10 Gennadii Altukhov 2018-01-16 13:37:27 UTC
the fix is adding workaround for urgrabber version 3.10 and above, but RHEL 6 has version 3.9. So switch the BZ to WONTFIX.