Actions
Issue #7342
closedfile:// repo syncing fails with unexpected keyword argument 'silence_errors_for_response_status_codes'
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Quarter:
Description
Try to sync a remote/repo located on local disk, like: file:///var/lib/pulp/sync_imports/test_repos/zoo/
and sync it, with 3.6.0, you will get:
File "/usr/local/lib/python3.6/site-packages/rq/worker.py", line 883, in perform_job
rv = job.perform()
File "/usr/local/lib/python3.6/site-packages/rq/job.py", line 657, in perform
self._result = self._execute()
File "/usr/local/lib/python3.6/site-packages/rq/job.py", line 663, in _execute
return self.func(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 220, in synchronize
treeinfo = get_treeinfo_data(remote, remote_url)
File "/usr/local/lib/python3.6/site-packages/pulp_rpm/app/kickstart/treeinfo.py", line 25, in get_treeinfo_data
url=urljoin(remote_url, namespace), silence_errors_for_response_status_codes={404}
File "/usr/local/lib/python3.6/site-packages/pulp_rpm/app/models/repository.py", line 103, in get_downloader
return super().get_downloader(remote_artifact=remote_artifact, url=url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pulpcore/app/models/repository.py", line 306, in get_downloader
return self.download_factory.build(url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pulpcore/download/factory.py", line 148, in build
return builder(download_class, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pulpcore/download/factory.py", line 191, in _generic
return download_class(url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pulpcore/download/file.py", line 40, in __init__
super().__init__(url, **kwargs)
description: __init__() got an unexpected keyword argument 'silence_errors_for_response_status_codes'
likely related to https://github.com/pulp/pulp_rpm/commit/91e8f7c65bd92f1587d67385ebf4d81bca50a219
Related issues
Actions
Fix sync from local (on-disk) repository
[nocoverage]
closes: #7342 https://pulp.plan.io/issues/7342