[ContentMigration] migration fails with error "Katello::Errors::Pulp3Error: 'NoneType' object has no attribute 'cast'"

Problem: content migration fails with error “Katello::Errors::Pulp3Error: ‘NoneType’ object has no attribute ‘cast’”

Expected outcome: pulp2 content migrated to pulp3 (yum)

Foreman and Proxy versions:

  • foreman 2.3.1
  • katello 3.18

Other relevant data:
foreman-maintain content switchover gives:
Running Switch support for certain content from Pulp 2 to Pulp 3

Switch support for certain content from Pulp 2 to Pulp 3:
Performing final content migration before switching content [FAIL]
Failed executing foreman-rake katello:pulp3_migration, exit status 1:
enabled
Migration failed, You will want to investigate: https://stg-katello/foreman_tasks/tasks/18b2029a-71e6-4df3-aa90-0c68983ac48b
rake aborted!
ForemanTasks::TaskError: Task 18b2029a-71e6-4df3-aa90-0c68983ac48b: Katello::Errors::Pulp3Error: ‘NoneType’ object has no attribute ‘cast’
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0/lib/katello/tasks/pulp3_migration.rake:31: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)
Starting task.
2020-12-30 16:12:41 +0100: Initial Migration steps complete.

Scenario [Switch support for certain content from Pulp 2 to Pulp 3] failed.

Smart-Proxy services show: “yum (supported, but overridden to use Pulp 2)”

How to proceed?

1 Like

I think I’m seeing the exact same issue

Hi,
me too.
Katello version: 3.18.0

Same here in Katello version: 3.18.1 :frowning:

Anyone reading these things?