Issue #7095
closedPulp 3 Sync issue (.treeinfo)
Description
Hi,
Seems a sync from repo to remote Centos 7 extras or updates is not possible (treeinfo missing) :
Jul 07 06:38:55 XXXX rq[1171]: pulp: pulp_rpm.app.tasks.synchronizing:INFO: Synchronizing: repository=Centos-7-Extras remote=Centos-7-Extras Jul 07 06:38:56 XXXX rq[1171]: Giving up _run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://mirror.centos.org/centos/7/extras/x86_64/.treeinfo')) Jul 07 06:38:56 XXXX rq[1171]: pulp: backoff:ERROR: Giving up _run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://mirror.centos.org/centos/7/extras/x86_64/.treeinfo')) Jul 07 06:38:56 XXXX rq[1171]: Giving up _run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://mirror.centos.org/centos/7/extras/x86_64/treeinfo')) Jul 07 06:38:56 XXXX rq[1171]: pulp: backoff:ERROR: Giving up _run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://mirror.centos.org/centos/7/extras/x86_64/treeinfo')) Jul 07 06:38:56 XXXX rq[1171]: pulp: rq.worker:INFO: 1171@XXXX: Job OK (63b8830c-5ce4-47e9-8c80-fa1af48773f4)
Related issues
Updated by dkliban@redhat.com over 4 years ago
- Project changed from Pulp to RPM Support
- Category deleted (
Installer - Moved to GitHub issues)
Updated by bmbouter over 4 years ago
- Triaged changed from No to Yes
Thanks for filing this bug. The 404 errors are misleading because not all repositories have a .treeinfo file, yet when they don't it's logged as an error.
Proposed resolution¶
Smarten up the downloader in pulp_rpm to not log 404 errors for .treeinfo files since those are known to be optional.
I think that right now the downloader provided by core create this log statement from the response.raise_for_status()
method.
So to fix this pulpcore will first need to fix this first: https://pulp.plan.io/issues/7117
Updated by bmbouter over 4 years ago
- Blocked by Story #7117: As a plugin writer, I can be in control when the server returns a 400+ response code added
Updated by pulpbot over 4 years ago
- Status changed from NEW to POST
Added by Fabricio Aguiar over 4 years ago
Updated by Anonymous over 4 years ago
- Status changed from POST to MODIFIED
Applied in changeset 91e8f7c65bd92f1587d67385ebf4d81bca50a219.
Updated by pulpbot over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Silence 404 errors for treeinfo files
Required PR: https://github.com/pulp/pulpcore/pull/814 https://pulp.plan.io/issues/7095 closes #7095 [nocoverage]