Bug 1454310 - cdn-sync tries to download packages again and again when no free space left on device.
Summary: cdn-sync tries to download packages again and again when no free space left o...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gennadii Altukhov
QA Contact: Ales Dujicek
URL:
Whiteboard:
Depends On: 1483524
Blocks: sat58-errata 1482981
TreeView+ depends on / blocked
 
Reported: 2017-05-22 12:34 UTC by Martin Korbel
Modified: 2018-01-17 12:49 UTC (History)
4 users (show)

Fixed In Version: spacewalk-backend-2.5.3-158-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1482981 (view as bug list)
Environment:
Last Closed: 2018-01-16 13:37:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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