Foreman 2.5.3, Katello 4.1.1 on CentOS 7
The CentOS 8.4 BaseOS sync got an error tonight:
Actions::Pulp3::Repository::CreatePublication
...
PulpRpmClient::ApiError: Error message: the server returns an error
HTTP status code: 400
Response headers: {"date"=>"Wed, 21 Jul 2021 00:36:22 GMT", "server"=>"gunicorn", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, POST, HEAD, OPTIONS", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"67", "correlation-id"=>"7df0e419-ebfb-4a1a-a0a5-3bc0c271493b", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 foreman.dkrz.de", "connection"=>"close"}
Response body: {"repository_version":["Invalid hyperlink - Incorrect URL match."]}
/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.13.3/lib/pulp_rpm_client/api_client.rb:83:in `call_api'
/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.13.3/lib/pulp_rpm_client/api/publications_rpm_api.rb:79:in `create_with_http_info'
/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.13.3/lib/pulp_rpm_client/api/publications_rpm_api.rb:28:in `create'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/services/katello/pulp3/repository.rb:214:in `create_publication'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/lib/actions/pulp3/repository/create_publication.rb:15:in `invoke_external_task'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/action/polling.rb:84:in `initiate_external_action'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/action/polling.rb:19:in `run'
...
and
Actions::Katello::Repository::IndexContent
...
PulpRpmClient::ApiError: Error message: the server returns an error
HTTP status code: 400
Response headers: {"date"=>"Wed, 21 Jul 2021 00:36:23 GMT", "server"=>"gunicorn", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, POST, HEAD, OPTIONS", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"112", "correlation-id"=>"7df0e419-ebfb-4a1a-a0a5-3bc0c271493b", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 foreman.dkrz.de", "connection"=>"close"}
Response body: ["URI /pulp/api/v3/publications/rpm/rpm/d44e483c-977c-48c1-93b7-9e26e64e7874/ not found for repositoryversion."]
/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.13.3/lib/pulp_rpm_client/api_client.rb:83:in `call_api'
/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.13.3/lib/pulp_rpm_client/api/content_packages_api.rb:236:in `list_with_http_info'
/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.13.3/lib/pulp_rpm_client/api/content_packages_api.rb:130:in `list'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/services/katello/pulp3/pulp_content_unit.rb:93:in `content_unit_list'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/services/katello/pulp3/pulp_content_unit.rb:106:in `fetch_content_list'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/services/katello/pulp3/pulp_content_unit.rb:75:in `block (2 levels) in pulp_units_batch_for_repo'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/services/katello/pulp3/pulp_content_unit.rb:69:in `loop'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/services/katello/pulp3/pulp_content_unit.rb:69:in `block in pulp_units_batch_for_repo'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/models/katello/concerns/pulp_database_unit.rb:162:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/models/katello/concerns/pulp_database_unit.rb:162:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/models/katello/concerns/pulp_database_unit.rb:162:in `import_for_repository'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1/app/models/katello/repository.rb:904:in `block (2 levels) in index_content'
...
As itâs involving the BaseOS repo and I now have issues updating systemd from baseos to the latest version, I guess it could be related:
# dnf update --nobest
...
Problem: The operation would result in removing the following protected packages: systemd, systemd-udev
...
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
systemd x86_64 239-45.el8 ORG_centos8_BaseOS_x86_64 3.6 M
systemd x86_64 239-45.el8_4.2 ORG_centos8_BaseOS_x86_64 3.6 M
systemd-libs x86_64 239-45.el8 ORG_centos8_BaseOS_x86_64 1.1 M
systemd-libs x86_64 239-45.el8_4.2 ORG_centos8_BaseOS_x86_64 1.1 M
systemd-pam x86_64 239-45.el8 ORG_centos8_BaseOS_x86_64 468 k
systemd-pam x86_64 239-45.el8_4.2 ORG_centos8_BaseOS_x86_64 469 k
systemd-udev x86_64 239-45.el8 ORG_centos8_BaseOS_x86_64 1.4 M
systemd-udev x86_64 239-45.el8_4.2 ORG_centos8_BaseOS_x86_64 1.4 M
See also Katello 4.1 and Rocky Linux 8 - not ready for prime time yet it seems