Problem:
I’m experiencing issues with synchronizing and publishing BaseOS repositories for Rocky Linux and AlmaLinux via Pulp. When I attempt to sync the repository with autopublish
enabled, it fails with an error related to generating metadata. If I disable autopublish
, the sync completes, but a manual publication attempt afterward produces a similar error.
Expected outcome:
- Sync with
--autopublish
:
autopublish
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulpcore/tasking/tasks.py", line 76, in _execute_task
result = func(*args, **kwargs)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 568, in synchronize
repo_version = dv.create() or repo.latest_version()
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulpcore/plugin/stages/declarative_version.py", line 161, in create
loop.run_until_complete(pipeline)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulpcore/app/models/repository.py", line 1233, in __exit__
repository.on_new_version(self)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulp_rpm/app/models/repository.py", line 260, in on_new_version
tasks.publish(
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulp_rpm/app/tasks/publishing.py", line 400, in publish
generate_repo_metadata(
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulp_rpm/app/tasks/publishing.py", line 574, in generate_repo_metadata
pkg.time_file = repo_pkg_times[package.pk]
- Manual publication after sync with
--no-autopublish
no-autopublish
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulpcore/tasking/tasks.py", line 76, in _execute_task
result = func(*args, **kwargs)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulp_rpm/app/tasks/publishing.py", line 400, in publish
generate_repo_metadata(
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulp_rpm/app/tasks/publishing.py", line 574, in generate_repo_metadata
pkg.time_file = repo_pkg_times[package.pk]
- Cleanup
Even after performing anpulp orphan cleanup
by deleting all content and artifacts from the repository, the error reoccurs on the next sync and publish attempt.
Before that all repositories were synchronized fine, it’s hard for me to determine when everything broke, but most likely after pulpcore update from 3.22 to 3.60, but not a sure thing.
Pulpcore version:
{
"component": "core",
"version": "3.60.0",
"package": "pulpcore",
"module": "pulpcore.app",
"domain_compatible": true
}
Pulp plugins installed and their versions:
{
"component": "python",
"version": "3.12.3",
"package": "pulp-python",
"module": "pulp_python.app",
"domain_compatible": true
},
{
"component": "rpm",
"version": "3.27.1",
"package": "pulp-rpm",
"module": "pulp_rpm.app",
"domain_compatible": true
},
{
"component": "certguard",
"version": "3.60.0",
"package": "pulpcore",
"module": "pulp_certguard.app",
"domain_compatible": true
},
{
"component": "file",
"version": "3.60.0",
"package": "pulpcore",
"module": "pulp_file.app",
"domain_compatible": true
},
{
"component": "deb",
"version": "3.4.0",
"package": "pulp_deb",
"module": "pulp_deb.app",
"domain_compatible": false
},
{
"component": "maven",
"version": "0.8.1",
"package": "pulp-maven",
"module": "pulp_maven.app",
"domain_compatible": false
}
Operating system - distribution and version:
alma9