From fd50feb258d2635bd6bde5df94b387b7d62c6e09 Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Tue, 26 Mar 2019 12:21:53 +0100 Subject: [PATCH] bwrap/runner: Add /etc/ssh in bind mounted folder /etc/ssh is currently not bound when run into bwrap, this leads to error like "Bad owner or permissions on /etc/ssh/ssh_config.d/05-redhat.conf" since it cannot access this file. https://github.com/ansible/awx/pull/3391 was done pre runner integration. Fixes: https://github.com/ansible/awx/issues/3392 Signed-off-by: Yanis Guenane --- awx/main/tasks.py | 1 + awx/main/tests/unit/test_tasks.py | 1 + 2 files changed, 2 insertions(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 0349d23aa6..b7f405bb47 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -818,6 +818,7 @@ class BaseTask(object): 'process_isolation_hide_paths': [ settings.AWX_PROOT_BASE_PATH, '/etc/tower', + '/etc/ssh', '/var/lib/awx', '/var/log', settings.PROJECTS_ROOT, diff --git a/awx/main/tests/unit/test_tasks.py b/awx/main/tests/unit/test_tasks.py index c9aaa6b057..903b2f29fd 100644 --- a/awx/main/tests/unit/test_tasks.py +++ b/awx/main/tests/unit/test_tasks.py @@ -452,6 +452,7 @@ class TestGenericRun(): for p in [settings.AWX_PROOT_BASE_PATH, '/etc/tower', + '/etc/ssh', '/var/lib/awx', '/var/log', settings.PROJECTS_ROOT,