Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.
Actions
Issue #1705
closedPulp streamer throws exception when downloading content
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
When I execute
pulp-admin repo download --repo-id zoo
I see the following in the streamer logs.
: [-] Starting factory <twisted.web.server.Site instance at 0x3e98f38>
pulp.streamer.server:ERROR: (6231-51296) An unexpected error occurred while handling the request.
pulp.streamer.server:ERROR: (6231-51296) Traceback (most recent call last):
pulp.streamer.server:ERROR: (6231-51296) File "/usr/lib/python2.7/site-packages/pulp/streamer/server.py", line 184
pulp.streamer.server:ERROR: (6231-51296) self._download(catalog_entry, request, responder)
pulp.streamer.server:ERROR: (6231-51296) File "/usr/lib/python2.7/site-packages/pulp/streamer/server.py", line 214
pulp.streamer.server:ERROR: (6231-51296) **catalog_entry.data)
pulp.streamer.server:ERROR: (6231-51296) File "/usr/lib/python2.7/site-packages/pulp/plugins/importer.py", line 35
pulp.streamer.server:ERROR: (6231-51296) nectar_config = importer_config_to_nectar_config(config.flatten())
pulp.streamer.server:ERROR: (6231-51296) File "/usr/lib/python2.7/site-packages/pulp/plugins/util/nectar_config.py
pulp.streamer.server:ERROR: (6231-51296) download_config_kwargs = {'working_dir': common_utils.get_working_direc
pulp.streamer.server:ERROR: (6231-51296) File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/_common.
pulp.streamer.server:ERROR: (6231-51296) raise RuntimeError("Working Directory requested outside of asynchronous
pulp.streamer.server:ERROR: (6231-51296) RuntimeError: Working Directory requested outside of asynchronous task.
[-] 127.0.0.1 - - [19/Feb/2016:17:02:48 +0000] "GET /var/lib/pulp/content/units/rpm/76/78177c241777af22235092f21c393
Initial suspicion is that this related to this commit[0] in nectar.
[0] https://github.com/pulp/nectar/commit/78334d22c941f96191430ab2ca5dbcb7cb5aa351
Actions
1705 - Pulp streamer throws exception when downloading content.
Make 'working_dir' configurable.
closes #1705 https://pulp.plan.io/issues/1705