Project

Profile

Help

Issue #6229

Updated by dalley almost 5 years ago

Create 2 RPM repos 

 Create 2 RPM remotes pointing to: 

 * https://dl.fedoraproject.org/pub/fedora/linux/updates/30/Modular/x86_64/ 
 * https://dl.fedoraproject.org/pub/fedora/linux/updates/31/Modular/x86_64/ 

 Sync each repo with one of the remotes both repos 

 The second sync will fail with the following error: 


 ~~~ 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]: pulp: rq.worker:ERROR: ValueError: Cannot create repository version. More than one rpm.package content with the duplicate values for name, epoch, version, release, arch. 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]: Traceback (most recent call last): 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", line 884, in perform_job 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       rv = job.perform() 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 664, in perform 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       self._result = self._execute() 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 670, in _execute 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       return self.func(*self.args, **self.kwargs) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py", line 152, in synchronize 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       dv.create() 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulpcore/pulpcore/plugin/stages/declarative_version.py", line 149, in create 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       loop.run_until_complete(pipeline) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulpcore/pulpcore/app/models/repository.py", line 784, in __exit__ 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       repository.finalize_new_version(self) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/models/repository.py", line 117, in finalize_new_version 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       resolve_module_packages(new_version, previous_version) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/modulemd.py", line 44, in resolve_module_packages 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       version.add_content(Package.objects.filter(pk__in=packages_to_add)) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulpcore/pulpcore/app/models/repository.py", line 580, in add_content 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       _("Cannot create repository version. {msg}").format(msg=", ".join(error_messages)) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]: ValueError: Cannot create repository version. More than one rpm.package content with the duplicate values for name, epoch, version, release, arch. 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]: Traceback (most recent call last): 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py", line 884, in perform_job 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       rv = job.perform() 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 664, in perform 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       self._result = self._execute() 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py", line 670, in _execute 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       return self.func(*self.args, **self.kwargs) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py", line 152, in synchronize 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       dv.create() 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulpcore/pulpcore/plugin/stages/declarative_version.py", line 149, in create 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       loop.run_until_complete(pipeline) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulpcore/pulpcore/app/models/repository.py", line 784, in __exit__ 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       repository.finalize_new_version(self) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/models/repository.py", line 117, in finalize_new_version 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       resolve_module_packages(new_version, previous_version) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/modulemd.py", line 44, in resolve_module_packages 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       version.add_content(Package.objects.filter(pk__in=packages_to_add)) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:     File "/home/vagrant/devel/pulpcore/pulpcore/app/models/repository.py", line 580, in add_content 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]:       _("Cannot create repository version. {msg}").format(msg=", ".join(error_messages)) 
 Feb 26 16:06:05 pulp3-source-fedora31.localhost.example.com rq[239405]: ValueError: Cannot create repository version. More than one rpm.package content with the duplicate values for name, epoch, version, release, arch. 

 ~~~

Back