Project

Profile

Help

Issue #6303

closed

If same content is provided by 2 remotes, resync raises ValueError: Path is duplicated

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

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

Description

Create 2 repos and 2 remotes:

Sync from each remote into a separate repo. Sync again any repo, observe the issue below.

I was not able to reproduce it with fixture repos: rpm-unsigned and rpm_with_modules :/

Even though nothing changed in a repo, the unsaved version shows non-null counters for added/removed_memberships. And unsaved version indeed contains duplicated paths.

The package univocity-parsers-2.5.5-5.module_f28+3873+06cd63fa.noarch.rpm is present in both remote repos.

Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]: Traceback (most recent call last):
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", line 884, in perform_job
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:     rv = job.perform()
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 664, in perform
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:     self._result = self._execute()
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:   File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 670, in _execute
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:     return self.func(*self.args, **self.kwargs)
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:   File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py", line 152, in synchronize
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:     dv.create()
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:   File "/home/vagrant/devel/pulpcore/pulpcore/plugin/stages/declarative_version.py", line 149, in create
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:     loop.run_until_complete(pipeline)
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:   File "/home/vagrant/devel/pulpcore/pulpcore/app/models/repository.py", line 782, in __exit__
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:     repository.finalize_new_version(self)
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:   File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/models/repository.py", line 114, in finalize_new_version
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:     validate_version_paths(new_version)
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:   File "/home/vagrant/devel/pulpcore/pulpcore/plugin/repo_version_utils.py", line 81, in validate_version_paths
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:     raise ValueError(_("Cannot create repository version. {err}.").format(err=e))
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]: ValueError: Cannot create repository version. Path is duplicated: univocity-parsers-2.5.5-5.module_f28+3873+06cd63fa.noarch.rpm.
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]: Traceback (most recent call last):
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:   File "/home/vagrant/devel/pulpcore/pulpcore/plugin/repo_version_utils.py", line 79, in validate_version_paths
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:     validate_file_paths(paths)
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:   File "/home/vagrant/devel/pulpcore/pulpcore/app/files.py", line 118, in validate_file_paths
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]:     raise ValueError(_("Path is duplicated: {path}").format(path=path))
Mar 06 19:39:45 pulp3-source-fedora31.rhgoose.example.com rq[22478]: ValueError: Path is duplicated: univocity-parsers-2.5.5-5.module_f28+3873+06cd63fa.noarch.rpm

Actions #1

Updated by ttereshc over 4 years ago

  • Priority changed from Normal to High
Actions #2

Updated by ttereshc over 4 years ago

  • Subject changed from Resyncing F31 repo raises ValueError: Path is duplicated to If same content is provided by 2 remotes, resync raises ValueError: Path is duplicated
  • Description updated (diff)
Actions #3

Updated by ttereshc over 4 years ago

  • Sprint/Milestone set to Pulp 3.x RPM (Katello 3.16)
Actions #4

Updated by ttereshc over 4 years ago

  • Sprint set to Sprint 68
Actions #5

Updated by ttereshc over 4 years ago

  • Triaged changed from No to Yes
Actions #6

Updated by fao89 over 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89

Added by Fabricio Aguiar over 4 years ago

Revision 76f69116 | View on GitHub

Properly compare modular content between versions

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

Actions #7

Updated by fao89 over 4 years ago

  • Status changed from ASSIGNED to POST
Actions #8

Updated by Anonymous over 4 years ago

  • Status changed from POST to MODIFIED

Added by Fabricio Aguiar over 4 years ago

Revision 8bf3cbcf | View on GitHub

Properly compare modular content between versions

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

(cherry picked from commit 76f6911624a7efbfc42f528286fdb00ebb7ed543)

Actions #9

Updated by Anonymous over 4 years ago

Actions #10

Updated by dalley over 4 years ago

  • Sprint/Milestone changed from Pulp 3.x RPM (Katello 3.16) to Pulp RPM 3.3.0
Actions #11

Updated by dalley over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF