Switching specified content over to pulp 3 [FAIL]
Failed executing foreman-rake katello:pulp3_content_switchover, exit status 1:
ERROR: at least one Erratum record has migrated_pulp3_href NULL value
I have checked in the foreman postgres database:
foreman=# select count(*) from katello_errata where migrated_pulp3_href is null;
count
-------
12651
(1 row)
foreman=# select count(*) from katello_errata where migrated_pulp3_href is not null;
count
-------
0
(1 row)
So it seems none of my errata have been migrated during the prepare run…
No. I have never applied any fixes regarding that issue, nor any others.
Instead I have removed one repository with the duplicate name from the content view, republished and removed all old versions before that run as a workaround.
Yes, those are the 8 CV repos which don‘t get migrated. I have temporarily removed one of those repos to avoid the issue and ran migrate & switchover which then lead to the error in this topic (because switchover stops at the first error it finds instead of showing all errors). All repositories had been migrated but errata was and is incomplete.
After it failed and I have started this topic, I have put the repository back into the content view because I need it. My last prepare run and the stats are with the repository in there.
To be sure, I have just removed one of the two repositories with the identical name from the content view, published and promoted and removed all old versions. After another prepare it looks like this:
# foreman-maintain content migration-stats
Running Retrieve Pulp 2 to Pulp 3 migration statistics
================================================================================
Retrieve Pulp 2 to Pulp 3 migration statistics:
============Migration Summary================
Migrated/Total RPMs: 140656/140656
Migrated/Total errata: 53010/60999
Migrated/Total repositories: 1371/1371
Estimated migration time based on yum content: 2 hours, 17 minutes
Errata migration is still not complete and unchanged to before.
ids containing a total of 61038 ids, which is the number of total errata. Stats:
[root@foreman k202081]# foreman-maintain content migration-stats
Running Retrieve Pulp 2 to Pulp 3 migration statistics
================================================================================
Retrieve Pulp 2 to Pulp 3 migration statistics:
============Migration Summary================
Migrated/Total RPMs: 140676/140676
Migrated/Total errata: 61038/61038
Migrated/Total repositories: 1371/1371
Estimated migration time based on yum content: 2 hours, 17 minutes
Note: ensure there is sufficient storage space for /var/lib/pulp/published to triple in size before starting the migration process.
Check the size of /var/lib/pulp/published with 'du -sh /var/lib/pulp/published/'
[OK]
--------------------------------------------------------------------------------
I’ll make another snapshot of the vm and then try the switchover again…
Yes. Multiple times. Usually followed by a deleted_orphaned_content. So, that bug may be the reason for these problems. Switchover is successful. Now waiting for the installer rerun to complete.
Ran into this now as well, Katello 3.18.5. RPMs and Repos were successful, but errata was incomplete and failed. I never did a reset. Running this ‘alternate’ method of importing the data resolved it. Curious as to what this does differently than the ‘regular’ import process. Thanks!