Problem:
Update to 2.4.0 with Katello 4.0 fails with this message:
Upgrade Step 2/3: katello:correct_puppet_environments. This may take a long while.
Processing Puppet Environment 1/4: 3-8-default-v20_0-puppet-ff4590c3-68ae-4507-8c76-8c0e305e30bf (37)
Failed upgrade task: katello:correct_puppet_environments, see logs for more information.
=============================================
Upgrade Step 3/3: katello:clean_backend_objects. This may take a long while.
Failed upgrade task: katello:clean_backend_objects, see logs for more information.
If I run the command on its own I get this output:
foreman-rake katello:correct_puppet_environments All operations will be skipped. Re-run with COMMIT=true to perform corrections. Processing Puppet Environment 1/4: 3-8-default-v20_0-puppet-ff4590c3-68ae-4507-8c76-8c0e305e30bf (37) rake aborted! Cannot find repository type puppet, is it enabled? /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.0/app/models/katello/concerns/smart_proxy_extensions.rb:226:in `pulp3_repository_type_support?' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.0/app/models/katello/concerns/smart_proxy_extensions.rb:197:in `pulp3_support?' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.0/lib/katello/tasks/repository.rake:140:in `repo_exists?' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.0/lib/katello/tasks/repository.rake:81:in `block (3 levels) in <top (required)>' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/batches.rb:70:in `block (2 levels) in find_each' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/batches.rb:70:in `each' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/batches.rb:70:in `block in find_each' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/batches.rb:136:in `block in find_in_batches' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/batches.rb:238:in `block in in_batches' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/batches.rb:222:in `loop' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/batches.rb:222:in `in_batches' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/batches.rb:135:in `find_in_batches' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/batches.rb:69:in `find_each' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.0/lib/katello/tasks/repository.rake:79:in `with_index' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.0/lib/katello/tasks/repository.rake:79: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:correct_puppet_environments (See full trace by running task with --trace)
Expected outcome:
Installer upgrades to 2.4.0 with Katello 4.0.
Foreman and Proxy versions:
Foreman 2.4.0
Katello 4.0
Proxies are on 2.2.2 and Katello 3.17, except one which I installed too early with 2.4.0 and Katello 4.0
Distribution and version:
CentOS 7 with patches from Februar/March
Other relevant data:
Basic installation after following the documentation on theforeman.org.