Content-view with Solve Dependency enabled takes too long to publish in Red Hat Satellite.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6

Issue

  • Content-view publish task is running for too long.
  • Content-view publish task is "waiting for Pulp to finish the task".
  • Solve Dependencies parameter is enabled in the Content-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 the Satellite.

      Satellite GUI >> Monitor >> Tasks >> Cancel
    
  • Now check the Content-view details, If the Solve Dependencies parameter 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 Dependencies parameter as "false" in the Content-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-view the Solve Dependencies parameter 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 the Satellite.

Diagnostic Steps

  • The below command will show the Content-view publish 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 console we 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
    
SBR
Product(s)
Components
Category
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.