Content-view with Solve Dependency enabled takes too long to publish in Red Hat Satellite.
Environment
- Red Hat Satellite 6
Issue
Content-viewpublish task is running for too long.Content-viewpublish task is "waiting for Pulp to finish the task".Solve Dependenciesparameter is enabled in theContent-view.
Resolution
-
Check the running tasks details in the
Satellite.# su - postgres -c "psql -d foreman -c 'select label,count(label),state from foreman_tasks_tasks where state <> '\''stopped'\'' and label not in ('\''Actions::Katello::EventQueue::Monitor'\'', '\''Actions::Candlepin::ListenOnCandlepinEvents'\'') group by label,state;'" -
If too many task are running in the
Satellite, then wait for the tasks to complete or cancel the tasks in theSatellite.Satellite GUI >> Monitor >> Tasks >> Cancel -
Now check the
Content-viewdetails, If theSolve Dependenciesparameter is enabled then its an expected result as the publish task will take much longer times the normal publish tasks.Satellite GUI >> Content >> Content-Views >> Select CV >> Details -
To speedup the publish task in the Satellite, unchecked the
Solve Dependenciesparameter as "false" in theContent-view, and then publish a new version.Satellite GUI >> Content >> Content-Views >> Select CV >> Publish a new Version
For more KB articles/solutions related to Red Hat Satellite 6.x Content View Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Content View Issues
Root Cause
- In the
Content-viewtheSolve Dependenciesparameter is enabled, hence the publish task will take much more time to get completed. Its an expected result and the task is still running and "waiting for Pulp to finish the task" in theSatellite.
Diagnostic Steps
-
The below command will show the
Content-viewpublish task as running.# su - postgres -c "psql -d foreman -c 'select label,count(label),state from foreman_tasks_tasks where state <> '\''stopped'\'' and label not in ('\''Actions::Katello::EventQueue::Monitor'\'', '\''Actions::Candlepin::ListenOnCandlepinEvents'\'') group by label,state;'" ----------------------------------------+-------+----------- label | count | state ----------------------------------------+-------+----------- Actions::Katello::ContentView::Publish | 1 | running Actions::Katello::SyncPlan::Run | 1 | scheduled SendExpireSoonNotifications | 1 | scheduled CreatePulpDiskSpaceNotifications | 1 | scheduled -
Also in the
DynFlow consolewe can see the below logs details:35: Actions::Pulp::Repository::CopyAllUnits (waiting for Pulp to finish the task) [ 2096.67s / 46.92s ] Cancel 99: Actions::Pulp3::Repository::MultiCopyContent (checking Pulp task status) [ 12270.55s / 4923.45s ] Cancel
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.