workaround for host deploy failure (get_events)

Hi, Incase you face an error during host deploy, and see these messages in the journal: gunicorn-3[30567]: File "/usr/lib/python3.6/site-packages/runner_service/services/jobs.py", line 181, in get_events gunicorn-3[30567]: _events = os.listdir(event_dir) gunicorn-3[30567]: FileNotFoundError: [Errno 2] No such file or directory: '/.../share/ovirt-engine/ansible-runner-service-project/artifacts/175b5662-62b8-11ea-af39-144f8a9f8bed/job_events' 'Till Martin's fix is released, please execute the following steps: 1. sudo vi /usr/lib/python3.6/site-packages/ansible_runner/runner.py 2. edit the file with these changes: https://github.com/ansible/ansible-runner/pull/425/files 3. sudo systemctl restart ansible-runner-service Thanks, Dana

Hi, an easier workaround is to install the newest version of ansible-runner https://cbs.centos.org/koji/packageinfo?packageID=7439 Martin On Mon, Mar 23, 2020 at 1:44 PM Dana Elfassy <delfassy@redhat.com> wrote:
Hi, Incase you face an error during host deploy, and see these messages in the journal: gunicorn-3[30567]: File "/usr/lib/python3.6/site-packages/runner_service/services/jobs.py", line 181, in get_events gunicorn-3[30567]: _events = os.listdir(event_dir) gunicorn-3[30567]: FileNotFoundError: [Errno 2] No such file or directory: '/.../share/ovirt-engine/ansible-runner-service-project/artifacts/175b5662-62b8-11ea-af39-144f8a9f8bed/job_events'
'Till Martin's fix is released, please execute the following steps: 1. sudo vi /usr/lib/python3.6/site-packages/ansible_runner/runner.py 2. edit the file with these changes: https://github.com/ansible/ansible-runner/pull/425/files 3. sudo systemctl restart ansible-runner-service
Thanks, Dana
participants (2)
-
Dana Elfassy
-
Martin Necas