Project

Profile

Help

Issue #5732

closed

Syncing from filesystem results in FileNotFoundError if there is no Distribution Tree in a repo

Added by ttereshc over 2 years ago. Updated over 2 years ago.

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

Description

Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]: FileNotFoundError: [Errno 2] No such file or directory: '/home/vagrant/devel/pulp-fixtures/fixtures/rpm-pulp3-updated-updateinfo/.treeinfo'
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]: Traceback (most recent call last):
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", line 822, in perform_job
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     rv = job.perform()
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 605, in perform
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     self._result = self._execute()
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 611, in _execute
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     return self.func(*self.args, **self.kwargs)
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py", line 108, in synchronize
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     kickstart = get_kickstart_data(remote)
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/utils.py", line 21, in get_kickstart_data
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     result = downloader.fetch()
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/home/vagrant/devel/pulpcore/pulpcore/download/base.py", line 154, in fetch
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     return done.pop().result()
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/home/vagrant/devel/pulpcore/pulpcore/download/base.py", line 221, in run
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     return await self._run(extra_data=extra_data)
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/home/vagrant/devel/pulpcore/pulpcore/download/file.py", line 49, in _run
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     async with aiofiles.open(self._path, 'rb') as f_handle:
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/aiofiles/base.py", line 78, in __aenter__
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     self._obj = yield from self._coro
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/aiofiles/threadpool/__init__.py", line 35, in _open
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     f = yield from loop.run_in_executor(executor, cb)
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:   File "/usr/lib64/python3.7/concurrent/futures/thread.py", line 57, in run
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]:     result = self.fn(*self.args, **self.kwargs)
Nov 15 10:02:22 pulp3-source-fedora30.rhgoose.example.com rq[23371]: FileNotFoundError: [Errno 2] No such file or directory: '/home/vagrant/devel/pulp-fixtures/fixtures/rpm-pulp3-updated-updateinfo/.treeinfo'

Added by Fabricio Aguiar over 2 years ago

Revision 6a4657a2

Handling syncing when there is no treeinfo file

https://pulp.plan.io/issues/5732 closes #5732

Actions #1

Updated by fao89 over 2 years ago

  • Status changed from NEW to POST
  • Assignee set to fao89
Actions #2

Updated by Anonymous over 2 years ago

  • Status changed from POST to MODIFIED

Added by Fabricio Aguiar over 2 years ago

Revision b0aab100

Handling syncing when there is no treeinfo file

https://pulp.plan.io/issues/5732 closes #5732

(cherry picked from commit 6a4657a2688669476c88a18f2a84ce655dfdc953)

Actions #3

Updated by Anonymous over 2 years ago

Actions #4

Updated by ttereshc over 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF