[Satellite 6 ] tasks are queueing up and sync repos from CDN delaying
Environment
Red Hat Satellite or Proxy
6.x
Issue
- Satellite 6 tasks tasks are queuing up and never sync repositories from CDN properly.
- Satellite server rebooted accidentally and after that CDN sync is delaying
Resolution
- Please check if there is any sync plan configured. If yes, check the sync plan is executing
sudo su - postgres -c "psql -d foreman -c 'select label,count(label),state,result from foreman_tasks_tasks where state <> '\''stopped'\'' group by label,state,result ORDER BY label;'"
- If sync plan is executing , please wait and monitor the task if it is successful
- You can check the configured sync plan by hammer :
hammer -u <admin_user> -p <password> sync-plan list --organization-id id
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
- Due to a pre-configured sync plan, the satellite kicks off syncing all the repositories. Customer tried to sync repositories at the sametime manually. As a result, the new sync request get in the queue and has to wait until the previous sync completed.
Diagnostic Steps
- Check the running task :
# sudo su - postgres -c "psql -d foreman -c 'select label,count(label),state,result from foreman_tasks_tasks where state <> '\''stopped'\'' group by label,state,result ORDER BY label;'"
label | count | state | result
------------------------------------------------+-------+---------+---------
Actions::Candlepin::ListenOnCandlepinEvents | 1 | paused | error
Actions::Candlepin::ListenOnCandlepinEvents | 1 | running | pending
Actions::Katello::EventQueue::Monitor | 1 | running | pending
Actions::Katello::Host::GenerateApplicability | 1 | paused | error
Actions::Katello::Host::UploadPackageProfile | 4 | running | pending
Actions::Katello::Repository::MetadataGenerate | 5 | paused | error
Actions::Katello::Repository::ScheduledSync | 1052 | running | pending <==
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.
Comments