ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.1k stars 3.43k forks source link

Add Logging or Indicator when Facts Cache is Cleared #9798

Open jamesmarshall24 opened 3 years ago

jamesmarshall24 commented 3 years ago
ISSUE TYPE
SUMMARY

Add an indicator in Tower activity stream or in logging when fact caching for a host is cleared.

The meta module does not appear to be logged at all in the job_events endpoint, so there is no way to tell when they were cleared unless you confirm facts list is empty at the same time as checking ansible_facts_modified for the host. Otherwise, there is no record of the event.

wenottingham commented 3 years ago

This is already logged:

https://github.com/ansible/awx/blob/devel/awx/main/models/jobs.py#L894

Activity stream is the wrong place for this (you don't want 10000 entries for a large inventory

jamesmarshall24 commented 3 years ago

This is already logged:

https://github.com/ansible/awx/blob/devel/awx/main/models/jobs.py#L894

Activity stream is the wrong place for this (you don't want 10000 entries for a large inventory

@wenottingham Looks like this just goes to an external logger through the log aggregator? I'm not seeing an indicator of facts being cleared in the k8s/ocp logs at all.

wenottingham commented 3 years ago

Correct, it goes to the external logger under 'system tracking' category.

wenottingham commented 3 years ago

We could consider adding this to the service logs, but you can get this via external logging now.