Problem:
Having just upgraded from Katello 3.14 to 3.15 I’ve started seeing 2 sorts of tasks ending with a warning state.
Namely:
“Package Profile Update” tasks, ending with something like:
ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint “katello_host_installed_packages_h_id_ip_id”
DETAIL: Key (host_id, installed_package_id)=(957, 0) already exists.
: INSERT INTO katello_host_installed_packages (installed_package_id, host_id) VALUES (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957), (0, 957),
“Synchronise repository” tasks ending with:
NameError: undefined local variable or method `finalize' for #<Actions::Katello::Repository::Sync:0x000000001827bb00>
Did you mean? finalize_step
Expected outcome:
Repository sync and package profile update tasks complete successfully.
Foreman and Proxy versions:
foreman-2.0.0-1.el7.noarch
foreman-proxy-2.0.0-1.el7.noarch
Foreman and Proxy plugin versions:
# rpm -qa|sort|grep katello
foreman-installer-katello-2.0.0-1.el7.noarch
katello-3.15.0.1-1.el7.noarch
katello-certs-tools-2.6.0-1.el7.noarch
katello-client-bootstrap-1.7.4-1.el7.noarch
katello-common-3.15.0.1-1.el7.noarch
katello-debug-3.15.0.1-1.el7.noarch
katello-default-ca-1.0-1.noarch
katello-repos-3.15.0.1-1.el7.noarch
katello-selinux-3.1.1-1.el7.noarch
katello-server-ca-1.0-1.noarch
pulp-katello-1.0.3-1.el7.noarch
tfm-rubygem-hammer_cli_katello-0.21.0-2.el7.noarch
tfm-rubygem-katello-3.15.0.1-1.el7.noarch
Distribution and version:
CentOS 7
Other relevant data: