Problem:
Product repository view and sync fails with error: undefined method `mirroring_policy’
tail -f /var/log/foreman/production.log
2022-02-14T11:17:01 [I|app|0fe1b411] Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.3.0/app/views/katello/api/v2/products/show.json.rabl within katello/api/v2/layouts/resource
2022-02-14T11:17:01 [E|app|4e1bdd3c] ActionView::Template::Error: undefined method mirroring_policy' for #<Katello::RootRepository:0x0000000018d483d0> 4e1bdd3c | Did you mean? mirror_on_sync 4e1bdd3c | /opt/theforeman/tfm/root/usr/share/gems/gems/activemodel-6.0.3.7/lib/active_model/attribute_methods.rb:432:in
method_missing’
Actions::Katello::Repository::Sync
NoMethodError: undefined method `mirroring_policy’ for #Katello::RootRepository:0x0000000015b88750
Did you mean? mirror_on_sync
Foreman and Proxy plugin versions:
Foreman: 3.1.1-1
Katello 4.3.0-1
Distribution and version:
CentOS Linux release 7.9.2009 (Core)