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


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:


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.)


Possibly related to:

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