On Red Hat Satellite 6 Red Hat Repository selection hangs indefinitely on certain products.
Environment
- Red Hat Satellite 6.x
Issue
- When drilling down on certain products on the Enable Red Hat Repositories page, the spinner will not stop and the
Actions::Katello::Repository::ScanCdntask goes into a running state indefinitely.
Resolution
- Try to confirm whether there are any connection related issues,confirm that satellite is able to reach out to
cdn.redhat.comwithout any issue. - If satellite server is behind http proxy check for network connectivity.
- Once it's confirm that there are no network related issue,you can go ahead and try to clear any existing
Actions::Katello::Repository::ScanCdntask which is stuck inpausedstate by following this commands:
# service foreman-tasks stop
# foreman-rake console
ForemanTasks::Task.where(:label => "Actions::Katello::RepositorySet::ScanCdn", :state => "paused").map { |task| task.update_column(:state, "stopped") }
If there is any `running` state task for the same task lets stop the same by running:
ForemanTasks::Task.where(:label => "Actions::Katello::RepositorySet::ScanCdn", :state => "running").map { |task| task.update_column(:state, "stopped") }
# service foreman-tasks start
- After the above commands executed try to run the below command to restart pulp related services:
# for i in pulp_celerybeat pulp_resource_manager pulp_workers; do service $i stop; done
# for i in pulp_celerybeat pulp_resource_manager pulp_workers; do service $i start; done
Now confirm that all the services are up and running:
# hammer ping
# katello-service status
- Once the services are up,again try to enable the repositories.
For more KB articles/solutions related to Red Hat Satellite 6.x Repository Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Repository Issues.
Root Cause
- The satellite server was behind a proxy and it was facing some connectivity issues while try
SBR
Product(s)
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.