Could not calculate errata status /no packake info/ Foreman 2.0/Katello 3.15

Problem:
After upgrade to Foreman 2.0/Katello 3.15 all my newly registered hosts checkin successfully but have no package info and thus could not calculate errata. I know there are upgradeable packages and errata that could be applied.

On servers I have two version of katello packages, latest, and one before that.

rpm -qa | grep katello

katello-host-tools-3.5.1-2.el7.noarch
katello-host-tools-tracer-3.5.1-2.el7.noarch
katello-host-tools-fact-plugin-3.5.3-1.el7.noarch
katello-ca-consumer-smartproxy.domain.local-1.0-1.noarch
katello-agent-3.5.1-2.el7.noarch

And also

rpm -qa | grep katello

katello-host-tools-3.5.3-1.el7.noarch
katello-host-tools-fact-plugin-3.5.1-2.el7.noarch
katello-agent-3.5.3-1.el7.noarch
katello-host-tools-tracer-3.5.3-1.el7.noarch
katello-ca-consumer-smartproxy.domain.local-1.0-1.noarch

Just for troubleshooting I reverted back to older versions of katello-agent packages on some, but remains the same.
Older servers that were enrolled during older Foreman 1.24/Katello 3.14 show upgreadable packages and applicable errata on content hosts page. But that data could be out of date. The new ones, no matter which katello-agent packages are locally installed show 0 upgreadable packages and errata.

When running

yum clean all
katello-package-upload -f

I see on foreman server that the host has successfully reported on Content Hosts > hostname > Last checkin
However all sections, packages, bugs, errata show 0 on content hosts page.

On servers side this is the status

subscription-manager config

[server]
hostname = smartproxy.domain.local
insecure = [0]
no_proxy =
port = 8443
prefix = /rhsm
proxy_hostname =
proxy_password =
proxy_port =
proxy_scheme = [http]
proxy_user =
server_timeout = [180]
ssl_verify_depth = [3]

[rhsm]
auto_enable_yum_plugins = [1]
baseurl = https://smartproxy.domain.local/pulp/repos
ca_cert_dir = [/etc/rhsm/ca/]
consumercertdir = [/etc/pki/consumer]
entitlementcertdir = [/etc/pki/entitlement]
full_refresh_on_yum = 1
inotify = [1]
manage_repos = [1]
package_profile_on_trans = 1
pluginconfdir = [/etc/rhsm/pluginconf.d]
plugindir = [/usr/share/rhsm-plugins]
productcertdir = [/etc/pki/product]
repo_ca_cert = /etc/rhsm/ca/katello-server-ca.pem
repomd_gpg_url =
report_package_profile = [1]

[rhsmcertd]
autoattachinterval = [1440]
certcheckinterval = [240]
disable = [0]
splay = [1]

[rhsmd]
processtimeout = [300]

[logging]
default_log_level = [INFO]

- Default value in use

subscription-manager list --consumed

±------------------------------------------+
Consumed Subscriptions
±------------------------------------------+
Subscription Name: centos7
Provides: centos7
SKU: 690352833467
Contract:
Account:
Serial: 8784028741592716916
Pool ID: 8af4a69271eaa7250171eeda35580038
Provides Management: No
Active: True
Quantity Used: 1
Service Type:
Roles:
Service Level:
Usage:
Add-ons:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 05/07/2020
Ends: 12/01/2049
Entitlement Type: Physical

I also tried installing/removing a package to see if that would get package info

Expected outcome:

On content hosts page to see upgradeable packages and applicable errata.

Foreman and Proxy versions:
2.0
Foreman and Proxy plugin versions:
Katello 3.15
Distribution and version:
CentOS 7
Other relevant data:
I’ve disabled goferd on servers for the same reason everyone does it, eating to much RAM, and I’m switching to remote execution. For the purpose of troubleshooting this I’ve enabled it, but still no luck.
I’ve also tried promoting a new a version of content view and re-syncing smart proxies. Tasks finish fine, but still no change on content hosts page.

yum repolist

Loaded plugins: enabled_repos_upload, fastestmirror, package_upload, product-id, search-disabled-repos, subscription-
: manager, tracer_upload
Loading mirror speeds from cached hostfile
repo id repo name status
!organization_centos7_base base 10070
!organization_centos7_epel epel 13259
!organization_centos7_extras extras 392
!organization_centos7_intrepo intrepo 121
!organization_centos7_updates updates 240
repolist: 24082
Uploading Enabled Repositories Report
Loaded plugins: fastestmirror, product-id, subscription-manager

Running on Foreman console

ForemanTasks.sync_task(Actions::Katello::Host::RecalculateErrataStatus)

Also, finished without issues but no change on Content Hosts page

I’ve caught an error in logs:

2020-05-13T12:02:23 [E|bac|] PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "katello_host_installed_packages_h_id_ip_id"
DETAIL:  Key (host_id, installed_package_id)=(1349, 0) already exists.
: INSERT INTO katello_host_installed_packages (installed_package_id, host_id) VALUES (147674, 1349), (147835, 1349), (148032, 1349), (31, 1349), (61, 1349), (73, 1349), (85, 1349), (103, 1349), (164, 1349), (171, 1349), (223, 1349), (313, 1349), (323, 1349), (403, 1349), (508, 1349), (520, 1349), (641, 1349), (675, 1349), (715, 1349), (716, 1349), (735, 1349), (777, 1349), (782, 1349), (792, 1349), (795, 1349), (800, 1349), (804, 1349), (806, 1349), (818, 1349), (823, 1349), (831, 1349), (835, 1349), (854, 1349), (859, 1349), (860, 1349), (861, 1349), (862, 1349), (863, 1349), (864, 1349), (866, 1349), (870, 1349), (904, 1349), (918, 1349), (926, 1349), (927, 1349), (928, 1349), (932, 1349), (937, 1349), (959, 1349), (985, 1349), (987, 1349), (1007, 1349), (1016, 1349), (1020, 1349), (1029, 1349), (1031, 1349), (1042, 1349), (1047, 1349), (1055, 1349), (1058, 1349), (1061, 1349), (1062, 1349), (1064, 1349), (1104, 1349), (1114, 1349), (1117, 1349), (1122, 1349), (1132, 1349), (1137, 1349), (1140, 1349), (1142, 1349), (1147, 1349), (1149, 1349), (1152, 1349), (1175, 1349), (1186, 1349), (1233, 1349), (1629, 1349), (1639, 1349), (1655, 1349), (1686, 1349), (1692, 1349), (1736, 1349), (1745, 1349), (1941, 1349), (1959, 1349), (1972, 1349), (1975, 1349), (2022, 1349), (2029, 1349), (2077, 1349), (2078, 1349), (2092, 1349), (2105, 1349), (2106, 1349), (2107, 1349), (2109, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349), (0, 1349) (ActiveRecord::RecordNotUnique)
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:75:in `async_exec'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:75:in `block (2 levels) in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:74:in `block in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:579:in `block (2 levels) in log'
/opt/rh/rh-ruby25/root/usr/share/ruby/monitor.rb:226:in `mon_synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:578:in `block in log'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:569:in `log'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:73:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.0.1/app/models/katello/concerns/host_managed_extensions.rb:205:in `block (2 levels) in sync_package_associations'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.0.1/app/models/katello/concerns/host_managed_extensions.rb:204:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.0.1/app/models/katello/concerns/host_managed_extensions.rb:204:in `block in sync_package_associations'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.0.1/app/lib/katello/util/support.rb:97:in `active_record_retry'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.0.1/app/models/katello/concerns/host_managed_extensions.rb:186:in `sync_package_associations'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.0.1/app/models/katello/concerns/host_managed_extensions.rb:109:in `import_package_profile'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.0.1/app/lib/actions/katello/host/upload_package_profile.rb:44:in `upload'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.0.1/app/lib/actions/katello/host/upload_profiles.rb:76:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.0.1/app/lib/actions/katello/host/upload_profiles.rb:72:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.15.0.1/app/lib/actions/katello/host/upload_profiles.rb:72:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action.rb:563:in `block (3 levels) in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/rails_executor_wrap.rb:14:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/rails_executor_wrap.rb:13:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action/progress.rb:31:in `with_progress_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action/progress.rb:17:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_request_id.rb:15:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_request_id.rb:49:in `restore_current_request_id'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_request_id.rb:15:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_timezone.rb:15:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_timezone.rb:44:in `restore_curent_timezone'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_timezone.rb:15:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_user.rb:15:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_user.rb:44:in `restore_curent_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_user.rb:15:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_taxonomies.rb:15:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_taxonomies.rb:45:in `restore_current_taxonomies'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_taxonomies.rb:15:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:32:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/middleware/world.rb:31:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action.rb:562:in `block (2 levels) in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action.rb:561:in `catch'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action.rb:561:in `block in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action.rb:475:in `block in with_error_handling'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action.rb:475:in `catch'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action.rb:475:in `with_error_handling'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action.rb:556:in `execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/action.rb:285:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:18:in `block (2 levels) in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/execution_plan/steps/abstract.rb:167:in `with_meta_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:17:in `block in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:32:in `open_action'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:16:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/director.rb:68:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/executors/sidekiq/worker_jobs.rb:11:in `block (2 levels) in perform'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/executors.rb:12:in `run_user_code'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/executors/sidekiq/worker_jobs.rb:9:in `block in perform'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/executors/sidekiq/worker_jobs.rb:25:in `with_telemetry'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/executors/sidekiq/worker_jobs.rb:8:in `perform'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/executors/sidekiq/serialization.rb:27:in `perform'
[ sidekiq ]
[ concurrent-ruby ]

Seems to be a bug in new version discussed here Tasks ending with warnings after Katello 3.15 upgrade

hi @matemikulic, yes that thread is relevant. There are instructions there to apply a patch to resolve the issue. Otherwise you’d have to wait till 3.15, which is probably a ~week away from release.

Hey Justin. Thanks for confirming and even more for the fix itself. :slight_smile:
I’m just concerned will this break seamless upgrade on the next version? Or should I revert the change before that upgrade? Or the patch is not that invasive?

It should be a seamless upgrade. You won’t need to remove it before upgrading or anything. A normal upgrade will work just fine.

Excellent, thank you.