Verified on 6.9.2 snap 1.0. 1.) Install pulp-admin-client. # pulpversion=`rpm -q pulp-server --qf %{v}` # yum install pulp-admin-client-${pulpversion} pulp-rpm-admin-extensions.noarch --disableplugin=foreman-protector 2.) Get pulp repo id. # pulpAdminPassword=$(grep ^default_password /etc/pulp/server.conf | cut -d' ' -f2) # pulp-admin -u admin -p $pulpAdminPassword rpm repo list +----------------------------------------------------------------------+ RPM Repositories +----------------------------------------------------------------------+ Id: d6d9bc5f-515f-4e8c-b7af-c53b5b926247 Display Name: Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64 Description: None Content Unit Counts: Erratum: 527 Rpm: 1381 Yum Repo Metadata File: 1 3.) Delete repo from pulp. # pulp-admin -u admin -p $pulpAdminPassword rpm repo delete --repo-id d6d9bc5f-515f-4e8c-b7af-c53b5b926247 This command may be exited via ctrl+c without affecting the request. [\] Running... Repository [d6d9bc5f-515f-4e8c-b7af-c53b5b926247] successfully deleted 4.) Run foreman-rake command. # foreman-rake katello:correct_repositories COMMIT=true Processing Repository 1/1: Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64 (1) Repository 1 Missing Recreating 1 5.) Verify that repo is present. # pulp-admin -u admin -p $pulpAdminPassword repo list +----------------------------------------------------------------------+ Repositories +----------------------------------------------------------------------+ Id: d6d9bc5f-515f-4e8c-b7af-c53b5b926247 Display Name: Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64 Description: None Content Unit Counts: 6.) Re-sync from Satellite UI, then verify that content is back in pulp: # pulp-admin -u admin -p $pulpAdminPassword repo list +----------------------------------------------------------------------+ Repositories +----------------------------------------------------------------------+ Id: d6d9bc5f-515f-4e8c-b7af-c53b5b926247 Display Name: Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64 Description: None Content Unit Counts: Erratum: 527 Rpm: 1381 Yum Repo Metadata File: 1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Satellite 6.9.2 Async Bug Fix Update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:2074