Created attachment 1811487 [details] Foreman log Description of problem: When applying a remediation (after workarounding https://bugzilla.redhat.com/show_bug.cgi?id=1990857 by doing `insights-client --register`), I get the following error: """ ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: No JSON object could be decoded Syntax Error while loading YAML. but found another document The error appears to be in '/tmp/d20210806-1217-4l3l6i/project/playbook.yml': line 3, column 1, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: All templates successfully validated --- ^ here Exit status: 4 """ Relevant part of foreman log in attachments. Version-Release number of selected component (if applicable): Satellite 6.10.0 snap 12.0 How reproducible: Always Steps to Reproduce: 1. Configure cloud connector, have a remediable host and inventory uploaded 2. Make sure Satellite is registered (insights-client --register) 3. On CRC, create a remediation 4. Attempt to apply that remediation Actual results: Remediation fails with mentioned error Expected results: Successful remediation
Verified on Satellite 6.10.0 snap 14 After working around bug 1995540 with these steps: - installing rh-python36, - changing the '#!/usr/bin/python' to '#!/usr/bin/python3' in /usr/bin/insights-client, - copying the insights_client python library from python2.7 site-packages to python3.6 site-packages I am able to run a successful remediation without the syntax error, with the playbook log showing just the playbook log.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:4702