Issue #1689
closedNectar fails to handle a full device gracefully.
Description
Syncing a large repository (or many large repositories) until the disk fills up earns you thousands upon thousands of tracebacks (see below). Given that disk space is unlikely to magically appear in between downloads, this is probably not the correct behaviour (although maybe not all queued downloads have destinations on the full disk).
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1212): cdn.rcm-internal.redhat.com
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-36736) [Errno 28] No space left on device: u'/var/cache/pulp/reserved_resource_worker-1@upstream-pulp-server.os1.phx2.redhat.com/7beb56b5-9a86-4fcd-8d29-d8982abf38bf/tmpaW8Kem/libmspack-0.5-0.4.alpha.el7.x86_64.rpm'
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-36736) Traceback (most recent call last):
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-36736) File "/usr/lib/python2.7/site-packages/nectar/downloaders/threaded.py", line 248, in _fetch
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-36736) file_handle = request.initialize_file_handle()
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-36736) File "/usr/lib/python2.7/site-packages/nectar/request.py", line 46, in initialize_file_handle
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-36736) self._file_handle = open(self.destination, 'wb') # cache the handle
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-36736) IOError: [Errno 28] No space left on device: u'/var/cache/pulp/reserved_resource_worker-1@upstream-pulp-server.os1.phx2.redhat.com/7beb56b5-9a86-4fcd-8d29-d8982abf38bf/tmpaW8Kem/libmspack-0.5-0.4.alpha.el7.x86_64.rpm'
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-65952) [Errno 28] No space left on device
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-65952) Traceback (most recent call last):
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-65952) File "/usr/lib/python2.7/site-packages/nectar/downloaders/threaded.py", line 262, in _fetch
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-65952) file_handle.write(chunk)
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-65952) IOError: [Errno 28] No space left on device
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-83776) [Errno 28] No space left on device
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-83776) Traceback (most recent call last):
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-83776) File "/usr/lib/python2.7/site-packages/nectar/downloaders/threaded.py", line 262, in _fetch
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-83776) file_handle.write(chunk)
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-83776) IOError: [Errno 28] No space left on device
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-44032) [Errno 28] No space left on device
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-44032) Traceback (most recent call last):
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-44032) File "/usr/lib/python2.7/site-packages/nectar/downloaders/threaded.py", line 262, in _fetch
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-44032) file_handle.write(chunk)
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: nectar.downloaders.threaded:ERROR: (29364-44032) IOError: [Errno 28] No space left on device
Feb 18 14:09:33 upstream-pulp-server.os1.phx2.redhat.com pulp[29364]: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1213): cdn.rcm-internal.redhat.com
Updated by bmbouter about 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
Updated by bmbouter about 5 years ago
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.