Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DEBUG logging of duplicate pakcages #1021

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

quba42
Copy link
Collaborator

@quba42 quba42 commented Feb 27, 2024

closes #994

@quba42 quba42 added .bugfix CHANGES/<issue_number>.bugfix backport-3.0 labels Feb 27, 2024
@quba42 quba42 force-pushed the fix_dup_package_logging branch from 15c24cf to d23c657 Compare February 27, 2024 11:02
@quba42
Copy link
Collaborator Author

quba42 commented Feb 27, 2024

The following example:

NAME='mysql_duplicate_package_test'
REMOTE_OPTIONS=(
  --url=https://repo.mysql.com/apt/debian/
  --distribution=bookworm
  --architecture=amd64
  --policy=on_demand
)
pulp deb remote create --name=${NAME} ${REMOTE_OPTIONS[@]}
pulp deb repository create --name=${NAME} --remote=${NAME}
pulp deb repository sync --name=${NAME}

Now produces the following log output:

pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'mysql-client', 'version': '8.3.0-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-innovation', 'bookworm mysql-cluster-innovation'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'mysql-common', 'version': '8.0.36-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-8.0', 'bookworm mysql-cluster-8.0'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'libmysqlclient23', 'version': '8.3.0-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-innovation', 'bookworm mysql-cluster-innovation'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'mysql-testsuite', 'version': '8.3.0-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-innovation', 'bookworm mysql-cluster-innovation'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'mysql-server', 'version': '8.0.36-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-8.0', 'bookworm mysql-cluster-8.0'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'mysql-common', 'version': '8.3.0-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-innovation', 'bookworm mysql-cluster-innovation'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'libmysqlclient-dev', 'version': '8.3.0-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-innovation', 'bookworm mysql-cluster-innovation'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'mysql-testsuite', 'version': '8.0.36-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-8.0', 'bookworm mysql-cluster-8.0'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'libmysqlclient23-dbgsym', 'version': '8.3.0-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-innovation', 'bookworm mysql-cluster-innovation'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'libmysqlclient-dev', 'version': '8.0.36-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-8.0', 'bookworm mysql-cluster-8.0'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'mysql-client', 'version': '8.0.36-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-8.0', 'bookworm mysql-cluster-8.0'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'libmysqlclient21', 'version': '8.0.36-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-8.0', 'bookworm mysql-cluster-8.0'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'mysql-server', 'version': '8.3.0-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-innovation', 'bookworm mysql-cluster-innovation'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulp_deb.app.models.repository:DEBUG: New repository version is trying to add different versions, of package "{'package': 'libmysqlclient21-dbgsym', 'version': '8.0.36-1debian12', 'architecture': 'amd64'}", to each of the following distribution-component combinations "{'bookworm mysql-8.0', 'bookworm mysql-cluster-8.0'}"!
pulp [afe9cf4514d54bbb905dea53dc7bed52]: pulpcore.tasking.tasks:INFO: Task 018dea38-c0b9-7ad7-8d40-c20433d6a9e5 failed (Cannot create repository version since there are newly added packages with the same name, version, and architecture, but a different checksum. If the log level is DEBUG, you can find a list of affected packages in the Pulp log. You can often work around this issue by restricting syncs to only those distirbution component combinations, that do not contain colliding duplicates!)

@quba42 quba42 merged commit adabeae into pulp:main Feb 27, 2024
11 checks passed
Copy link

patchback bot commented Feb 27, 2024

Backport to 3.0: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.0/adabeae3ff7bdebe8508efac3dc504c84b10db85/pr-1021

Backported as #1024

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Feb 27, 2024
Fix DEBUG logging of duplicate pakcages

(cherry picked from commit adabeae)
Copy link

patchback bot commented Feb 27, 2024

Backport to 3.1: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.1/adabeae3ff7bdebe8508efac3dc504c84b10db85/pr-1021

Backported as #1025

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Feb 27, 2024
Fix DEBUG logging of duplicate pakcages

(cherry picked from commit adabeae)
@quba42 quba42 deleted the fix_dup_package_logging branch February 27, 2024 15:55
quba42 added a commit that referenced this pull request Feb 27, 2024
…7bdebe8508efac3dc504c84b10db85/pr-1021

[PR #1021/adabeae3 backport][3.0] Fix DEBUG logging of duplicate pakcages
quba42 added a commit that referenced this pull request Feb 27, 2024
…7bdebe8508efac3dc504c84b10db85/pr-1021

[PR #1021/adabeae3 backport][3.1] Fix DEBUG logging of duplicate pakcages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.bugfix CHANGES/<issue_number>.bugfix
Projects
None yet
2 participants