Problem:
After a lot of problems with my last attempt to get to pulp3 & Katello 4.0 I reverted my servers to a snapshot before, making sure it’s all updated to the latest 3.18.2 and 2.3.3.
I just ran prepare the first time on this server and got an error I have never seen before:
# foreman-maintain content prepare
Running Prepare content for Pulp 3
================================================================================
Prepare content for Pulp 3:
Starting task.
2021-04-27 22:02:45 +0200: Migrating rpm content to Pulp 3 erratum 3004/55940
Migration failed, You will want to investigate: https://foreman.dkrz.de/foreman_tasks/tasks/dc5bd233-15e3-404a-a2e2-f5475ca0ae84
rake aborted!
ForemanTasks::TaskError: Task dc5bd233-15e3-404a-a2e2-f5475ca0ae84: Katello::Errors::Pulp3Error: No declared artifact with relative path ".treeinfo" for content "<DistributionTree: pk=25dc05be-79d5-41da-9e69-67959db7cb51>"
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.2.1/lib/katello/tasks/pulp3_migration.rake:33: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)
[FAIL]
Failed executing foreman-rake katello:pulp3_migration, exit status 1
--------------------------------------------------------------------------------
Scenario [Prepare content for Pulp 3] failed.
As far as I can see in the pulpcore database, the distribution tree 25dc05be is CentOS 8 Stream.
pulpcore=# select * from rpm_distributiontree where content_ptr_id = '25dc05be-79d5-41da-9e69-67959db7cb51';
content_ptr_id | header_version | release_name | release_short | release_version | release_is_layered | base_product_name | base_product_short | base_product_version | arch | build_timestamp | instimage | mainimage | discnum | totaldiscs
--------------------------------------+----------------+---------------+---------------+-----------------+--------------------+-------------------+--------------------+----------------------+--------+-----------------+-----------+-----------+---------+------------
25dc05be-79d5-41da-9e69-67959db7cb51 | 1.2 | CentOS Stream | CentOS-Stream | 8 | f | | | | x86_64 | 0 | | | |
Funny enough, in my previous attempts I didn’t get this error. Maybe it’s related to the latest updates to pulpcore like python3-pulp-2to3-migration-0.11.0-1.el7.noarch which wasn’t installed at the time of the snapshot, yet.
Expected outcome:
Successful migration preparation.
Foreman and Proxy versions:
Foreman 2.3.3, Katello 3.18.2
Distribution and version:
CentOS Linux release 7.9.2009 (Core)