After upgrading to Foreman 1.24.2 and foreman-salt 13.2.0, salt execution report stopped working.
Report should be loaded from Salt to Foreman by the cron job.
Foreman and Proxy versions:
Distribution and version:
CentOS Linux release 7.7.1908 (Core)
Other relevant data:
After each run, the following error is printed in the log:
Traceback (most recent call last):
File “/usr/sbin/upload-salt-reports”, line 151, in
File “/usr/sbin/upload-salt-reports”, line 129, in upload
File “/usr/sbin/upload-salt-reports”, line 69, in write_last_uploaded
TypeError: must be unicode, not str
A workarround is to patch line 69 of /usr/sbin/upload-salt-reports
After this patch, the upload work again. I think this is a regression from a Python 3 support of the code that is not compatible with python 2.
Nope. I haven’t seen anything in the Foreman Salt plugin Documentation.
Unless you are referring into building a reactor that would listen to any hightstate event and would then execute the script /usr/sbin/upload-salt-reports ?