Error in promoting the content view in Red Hat Satellite 6.x
Environment
- Red Hat Satellite 6.x
Issue
- The
content view promotionthrows below error
Actions::Pulp::Repository::DistributorPublish
PLP0000: Failed to link metadata. See errors for more details
Resolution
- Do
regenerate the metadatafor the affected pulp id and try toresume the task. - The set of
commandsneed 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
POSTqueries willgenerate a pulp task id. - Use that
pulp task idto check the task status as these above taskswill not show upin theSatellite 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 nameas per your error details in thetasks exportreport.
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 metadatawill result into the above mentioned error. - The
below error detailscan 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.