mirror of
https://github.com/ansible/awx.git
synced 2026-03-16 16:37:30 -02:30
when sharing paths use little z
* AWX_ISOLATION_SHOW_PATHS will be shared between containers. Strange file not found error can crop up when concurrently accessing shared directories between multiple containers that are bind mounted with big Z. So make sure we use little z.
This commit is contained in:
@@ -855,7 +855,9 @@ class BaseTask(object):
|
||||
if settings.AWX_ISOLATION_SHOW_PATHS:
|
||||
params['container_volume_mounts'] = []
|
||||
for this_path in settings.AWX_ISOLATION_SHOW_PATHS:
|
||||
params['container_volume_mounts'].append(f'{this_path}:{this_path}:Z')
|
||||
# Using z allows the dir to mounted by multiple containers
|
||||
# Uppercase Z restricts access (in weird ways) to 1 container at a time
|
||||
params['container_volume_mounts'].append(f'{this_path}:{this_path}:z')
|
||||
return params
|
||||
|
||||
def build_private_data(self, instance, private_data_dir):
|
||||
|
||||
Reference in New Issue
Block a user