[ContentMigration] foreman-maintain content prepare failed

Having the same issue (“You do not have permission to perform this action.” when Pulp tasks are involved), so far a workaround I could find is:

  • Connect to the Pulp postgres database
  • Execute the following statement: UPDATE auth_user SET is_superuser = true WHERE id =1;

Without this, a curl HTTP call to the Pulp API, as admin, with the certs, would even fail like:
curl -v -u admin:$pulpAdminPassword https://my-foreman/pulp/api/v3/tasks/4324570c-549b-4796-aaf1-f585b7077077/ --cert /etc/pki/katello/certs/pulp-client.crt --key /etc/pki/katello/private/pulp-client.key | python -m json.tool

=> HTTP/1.1 403 Forbidden
{
“detail”: “You do not have permission to perform this action.”
}

2 Likes