Problem:
I started the first 2 Pulp3 migration steps suggested here Foreman :: Plugin Manuals Step 2 stops with an error.
Running Prepare content for Pulp 3
================================================================================
Prepare content for Pulp 3: [FAIL]
Failed executing foreman-rake katello:pulp3_migration, exit status 1:
Migration failed, You will want to investigate: https://wzvx20.zv.uni-wuerzburg.de/foreman_tasks/tasks/9669c986-fdde-46c2-b592-13eb130fe109
rake aborted!
ForemanTasks::TaskError: Task 9669c986-fdde-46c2-b592-13eb130fe109: PulpcoreClient::ApiError: Error message: the server returns an error
HTTP status code: 403
Response headers: {"date"=>"Wed, 18 Nov 2020 16:14:14 GMT", "server"=>"gunicorn/20.0.4", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, PATCH, DELETE, HEAD, OPTIONS", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"63", "via"=>"1.1 wzvx20.zv.uni-wuerzburg.de", "connection"=>"close"}
Response body: {"detail":"You do not have permission to perform this action."}
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.0/lib/katello/tasks/pulp3_migration.rake:17:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => katello:pulp3_migration
(See full trace by running task with --trace)
--------------------------------------------------------------------------------
Scenario [Prepare content for Pulp 3] failed.
The following steps ended up in failing state:
[content-prepare]
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="content-prepare"
Expected outcome:
Success
Foreman and Proxy versions:
Katello 3.17 and dependent packages
Foreman and Proxy plugin versions:
Distribution and version:
cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
I’m having the same error:
Running Prepare content for Pulp 3
Prepare content for Pulp 3: [FAIL]
Failed executing foreman-rake katello:pulp3_migration, exit status 1:
Migration failed, You will want to investigate: https://theforeman.mccg.net/foreman_tasks/tasks/1767baf4-ef22-4219-a4c1-6683ed12a92b
rake aborted!
ForemanTasks::TaskError: Task 1767baf4-ef22-4219-a4c1-6683ed12a92b: PulpcoreClient::ApiError: Error message: the server returns an error
HTTP status code: 403
Response headers: {“date”=>“Tue, 08 Dec 2020 21:25:48 GMT”, “server”=>“gunicorn/20.0.4”, “content-type”=>“application/json”, “vary”=>“Accept,Cookie”, “allow”=>“GET, PATCH, DELETE, HEAD, OPTIONS”, “x-frame-options”=>“SAMEORIGIN”, “content-length”=>“63”, “via”=>“1.1 theforeman.mccg.net”, “connection”=>“close”}
Response body: {“detail”:“You do not have permission to perform this action.”}
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.1/lib/katello/tasks/pulp3_migration.rake:17:in block (2 levels) in <top (required)>' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in <top (required)>’
Tasks: TOP => katello:pulp3_migration
(See full trace by running task with --trace)