Importing manifest never completes and the Actions::Katello::Provider::ManifestImport task goes in planned-pending state on Red Hat Satellite 6.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.2.z.

Issue

  • Importing manifest takes a long time and never completes. The task Actions::Katello::Provider::ManifestImport goes in planned and pending state.

Resolution

  • Clean up the planned Actions::Katello::Provider::ManifestImport tasks:
# systemctl stop foreman-tasks
# foreman-rake foreman_tasks:cleanup TASK_SEARCH='label = Actions::Katello::Provider::ManifestImport' STATES=planned
# systemctl start foreman-tasks
  • Confirm that no Actions::Katello::Provider::ManifestImport task is now present in planned state:
# su - postgres -c "psql -d foreman -c 'select label,count(*),state from foreman_tasks_tasks where state = '\''planned'\'' group by label,state;'"
  • Restart the Satellite service:
# katello-service restart 
  • Now try to import manifest again on Satellite, go to Satellite web UI --> Content --> Red Hat Subscriptions --> Manage Manifest --> Click Choose File, select the manifest file you created, and click Open --> Upload.

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.