Content migration: pulp: pulp_2to3_migration.app.plugin.content:WARNING: On_demand content cannot be migrated without an entry in the lazy catalog, pulp2 unit

Hi Sajha,

The migration fails with below errors.

foreman-maintain content prepare
Running Prepare content for Pulp 3
================================================================================
Prepare content for Pulp 3:
Checking for valid Katello configuraton.
Starting task.
2021-08-12 08:42:47 +0200: Migrating distribution content to Pulp 3 1/7Migration failed, You will want to investigate: https://suct2v832.pontus.kpn.org/foreman_tasks/tasks/c1c74276-d873-4243-8f92-c0d623a830ea
rake aborted!
ForemanTasks::TaskError: Task c1c74276-d873-4243-8f92-c0d623a830ea: Katello::Errors::Pulp3Error: 'NoneType' object has no attribute 'url'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.4/lib/katello/tasks/pulp3_migration.rake:39:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.3/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.

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"

Regards,

Jan Gerrit