Foreman hosts are showing out of sync despite successful Ansible playbook runs

Problem:

My hosts are showing out of sync despite their Ansible roles being applied successfully.

Expected outcome:

If a host successfully applies an Ansible role, it transitions or remains in OK status.

Foreman and Proxy versions:

1.20.0-RC2

Foreman and Proxy plugin versions:

foreman-tasks 0.14.2
foreman_ansible 2.2.9
foreman_cockpit 2.0.3
foreman_column_view 0.4.0
foreman_hooks 0.3.15
foreman_memcache 0.1.1
foreman_remote_execution 1.6.4

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)

logs

Possibly related to:

https://community.theforeman.org/t/foreman-reports-are-not-being-updated-all-the-time-when-using-ansible-callback/11802/3

Our versions looked different so I opened up another ticket.

Seeing this error in the logs:

So if I click on a report I get this error message:

**Oops, we're sorry but something went wrong** undefined method `value' for nil:NilClass

I think this might be related to me running this command last night:

foreman-rake foreman_tasks:cleanup AFTER=7d TASK_SEARCH=*

Any way to fix this?

All set. The issue was on my end. I had added some callbacks for profiling playbooks and accidentally removed the foreman one.

1 Like