Error in promoting the content view in Red Hat Satellite 6.x

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.x

Issue

  • The content view promotion throws below error
Actions::Pulp::Repository::DistributorPublish

PLP0000: Failed to link metadata. See errors for more details

Resolution

  • Do regenerate the metadata for the affected pulp id and try to resume the task.
  • The set of commands need to perform as follows on Satellite terminal :
# PULP_PASS=$(cat /etc/pulp/server.conf  | grep ^default_password | awk '{print $2}')

# b="1-Centos-6-full-development-AFRL_DSRC-CentOS-6_X86_64-updates_x86_64"

# curl -u admin:$PULP_PASS -X POST -k -H "Content-Type: application/json" https://localhost/pulp/api/v2/repositories/${b}/actions/publish/ -d "{\"id\":\"${b}\",\"override_config\":{\"force_full\":true}}"
  • The above POST queries will generate a pulp task id.
  • Use that pulp task id to check the task status as these above tasks will not show up in the Satellite webui.
  • Use below command for this:
# curl -u admin:$PULP_PASS -X GET -k -H "Content-Type: application/json" https://localhost/pulp/api/v2/tasks/6f7edc32-264d-41a9-b74a-6731b0e2125d/ | python -m json.tool | grep -i state


(Replace 6f7edc32-264d-41a9-b74a-6731b0e2125d by the task id)
  • Note: Please do replace the repository name as per your error details in the tasks export report.
 For Example : 1-Centos-6-full-development-ABCD_ABCD-CentOS-6_X86_64-updates_x86_64  

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

  • Issue with the repository metadata will result into the above mentioned error.
  • The below error details can be observed in the tasks details.
Task: Actions::Pulp::Repository::DistributorPublish
Exception:

Katello::Errors::PulpError: PLP0000: Failed to link metadata.  See errors for more details.
SBR
Product(s)
Components
Category

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.