Incoming and existing advisories have the same id and timestamp but different and intersecting package lists, and neither package list is a proper subset of the other. At least one of the advisories is wrong. Advisory id: <>

Problem:
almalinux 8 base repo does not sync. removed all repos containing erratas. again show that errata exists. but from UI I search and result is empty

Expected outcome:
synced

Foreman and Proxy versions:
2.3.5

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:
Incoming and existing advisories have the same id and timestamp but different and intersecting package lists, and neither package list is a proper subset of the other. At least one of the advisories is wrong. Advisory id: ALSA-2019:2720

logs

Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: pulp: rq.worker:ERROR: Traceback (most recent call last):
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/rq/worker.py”, line 936, in perform_job
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: rv = job.perform()
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/rq/job.py”, line 684, in perform
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: self._result = self._execute()
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/rq/job.py”, line 690, in _execute
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: return self.func(*self.args, **self.kwargs)
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py”, line 255, in synchronize
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: dv.create()
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py”, line 148, in create
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: loop.run_until_complete(pipeline)
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/pulpcore/app/models/repository.py”, line 795, in exit
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: repository.finalize_new_version(self)
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/pulp_rpm/app/models/repository.py”, line 247, in finalize_new_version
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: resolve_advisories(new_version, previous_version)
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/pulp_rpm/app/advisory.py”, line 90, in resolve_advisories
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: previous_advisory, added_advisory
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/pulp_rpm/app/advisory.py”, line 211, in resolve_advisory_conflict
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: ).format(previous_advisory.id)
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: pulp_rpm.app.exceptions.AdvisoryConflict: Incoming and existing advisories have the same id and timestamp but different and intersecting package lists, and neither package list is a proper subset of the other. At least one of the advisories is wrong. Advisory id: ALSA-2019:2720
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: Traceback (most recent call last):
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/rq/worker.py”, line 936, in perform_job
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: rv = job.perform()
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/rq/job.py”, line 684, in perform
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: self._result = self._execute()
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/rq/job.py”, line 690, in _execute
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: return self.func(*self.args, **self.kwargs)
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py”, line 255, in synchronize
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: dv.create()
Jun 30 10:02:11 myhostname pulpcore-worker-3[4220]: File “/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py”, line 148, in create

Hey @vusal_aliyev

Did this just start to happen suddenly or was it when you added almalinux 8 repos?
Would you consider upgrading your Foreman? It is a very old unsupported version. Some later fix might solve this.

I started then. I am not sure about exact reason. May be updated OS then caused this. I have installed it on CentOS7. Regarding update I am not sure if it will upgrade smoothly without issue. Because to match working version of it I tried many katello + foreman isntallation. That’s why don’t want to destroy working installation. Where can I find exact upgrade process with PoC done alredy?

It’s not clear that the cause here is a bug on Pulp’s side. See: 0000262: recurring issue: base and appstream repositories cannot be synchronized using pulp-rpm - AlmaLinux Bug Tracker

If it’s a bug on their side we can try to help, or if whatever the specific behavior is is “reasonable” and not completely broken we can maybe loosen the restriction, but I think this is contingent on figuring out what Alma Linux is doing with their advsiories.

I have upgraded foreman to latest version and issue appeared again. Then did full sync with content only, then sync only. resolved