Pulp 2 to 3 migration fails

Problem:

Pulp 2 to 3 migration fails

Expected outcome:

Pulp 2 to 3 migration does not fail

Foreman and Proxy versions:

foreman-2.3.5-1.el7.noarch
katello-3.18.5-1.el7.noarch
foreman-proxy-2.3.5-1.el7.noarch

Foreman and Proxy plugin versions:

Distribution and version:

CentOS Linux release 7.9.2009 (Core)

Other relevant data:

Hi,

I still can’t upgrade my pulp2 to pulp3 under Katello. I have tried several times, thinking that one day a package update might solve it. This time the error is different:

Pulp2to3MigrationClient::ApiError: Error message: the server returns an error
HTTP status code: 404
Response headers: {"date"=>"Tue, 21 Sep 2021 12:53:15 GMT", "server"=>"gunicorn/20.0.4", "content-type"=>"text/html; charset=UTF-8", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"77", "via"=>"1.1 katello.a.space.corp", "connection"=>"close"}
Response body: <h1>Not Found</h1><p>The requested resource was not found on this server.</p>

From /var/log/messages

Sep 21 12:45:36 katello pulpcore-api: - - [21/Sep/2021:12:45:36 +0000] "GET /pulp/api/v3/status HTTP/1.1" 301 0 "-" "rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.9p229"
Sep 21 12:45:36 katello pulpcore-api: - - [21/Sep/2021:12:45:36 +0000] "GET /pulp/api/v3/status/ HTTP/1.1" 200 2414 "-" "rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.9p229"
Sep 21 12:45:36 katello qdrouterd: ROUTER_CORE (info) [C7][L121473] Link detached: del=0 presett=0 psdrop=0 acc=0 rej=0 rel=0 mod=0 delay1=0 delay10=0 blocked=no
Sep 21 12:45:36 katello qdrouterd: ROUTER_CORE (info) [C52912][L121472] Link detached: del=0 presett=0 psdrop=0 acc=0 rej=0 rel=0 mod=0 delay1=0 delay10=0 blocked=no
Sep 21 12:45:36 katello pulpcore-api: pulp: django.request:WARNING: Not Found: /pulp/api/v3/migration-plans/

Help is highly appreciated. :slight_smile:

Hi @Oliver_Weinmann

Do you have the python3-pulp-2to3-migration package installed?

Hi,

yes the package is installed:

[root@katello ~]# rpm -qa | grep python3-pulp-2to3-migration
python3-pulp-2to3-migration-0.11.4-1.el7.noarch

It is really strange. I have the feeling the upgrade fails every time with a different error. I rebooted the katello host and currently the upgrade is running for over 10 minutes. I will wait and see if it completes this time.

[root@katello ~]# foreman-maintain content prepare
Running Prepare content for Pulp 3
================================================================================
Prepare content for Pulp 3:
Rubocop not loaded.
API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
Checking for valid Katello configuraton.
Starting task.
2021-09-28 10:48:57 +0000: Content migration starting. These steps may take a while to complete. Refer to `foreman-maintain content migration-stats` for an estimate.

2021-09-28 11:02:58 +0000: Pre-migrating Pulp 2 erratum content (detail info) 86258/88996

Of course it failed again after 20 minutes. I wonder If I’m affected by this bug:

https://pulp.plan.io/issues/8275

We do have SLES 15 repos. I will try to remove the repos and re-try the upgrade.

Ok, I removed all SLES 15.x repos and all debian repos, but the upgrade still fails… Now I get the error:

ForemanTasks::TaskError: Task 5ad0f9a2-266b-4cc9-84b2-b29c614c5496: Katello::Errors::Pulp3Error: cursor "_django_curs_140420167436096_227" does not exist

I have no clue how to further debug this. :frowning: