Project

Profile

Help

Issue #7095

closed

Pulp 3 Sync issue (.treeinfo)

Added by mathiasdasilva about 2 years ago. Updated almost 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
OS:
CentOS 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

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

Blocked by Pulp - Story #7117: As a plugin writer, I can be in control when the server returns a 400+ response codeCLOSED - CURRENTRELEASEfao89

Actions
Actions #1

Updated by dkliban@redhat.com about 2 years ago

  • Project changed from Pulp to RPM Support
  • Category deleted (Installer - Moved to GitHub issues)
Actions #2

Updated by bmbouter about 2 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

Actions #3

Updated by bmbouter about 2 years ago

  • Blocked by Story #7117: As a plugin writer, I can be in control when the server returns a 400+ response code added
Actions #4

Updated by pulpbot about 2 years ago

  • Status changed from NEW to POST

Added by Fabricio Aguiar about 2 years ago

Revision 91e8f7c6

Silence 404 errors for treeinfo files

Required PR: https://github.com/pulp/pulpcore/pull/814 https://pulp.plan.io/issues/7095 closes #7095 [nocoverage]

Actions #5

Updated by Anonymous about 2 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by ttereshc almost 2 years ago

  • Sprint/Milestone set to 3.6.0
Actions #7

Updated by pulpbot almost 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF