Failed to download/Fetching data from another server and place it on Controller node in NFS mount point

Solution Verified - Updated -

Environment

  • Ansible Automation Platform 2.4.

Issue

  • Failed to download/Fetching data from another server and place it on Controller node in NFS mount point with error :
Error: lsetxattr /[NFS MOUNT POINT]: operation not supported
  • When execute job template for download/Fetching data from another server and place it on the Controller node in NFS mount point , the job template execution is successful and shows "changed" in the output, but the files are not inside the NFS mount point.

Resolution

1) The NFS mount point must be added to Paths to expose to isolated jobs to be mounted on the execution environment during the job execution :

AAP WebUI -> Administration -> Settings -> Jobs settings -> Edit -> Paths to expose to isolated jobs 

2) container_file_t SELinux context must be added when mounting the NFS share :

On /etc/fstab

[NFS SERVER:/[NFS SHARE]       /[NFS MOUNT POINT]     nfs     defaults,context="system_u:object_r:container_file_t:s0"       0 0

3) Remount the NFS mount point.

Root Cause

  • To mount paths to isolated jobs , they must have container_file_t SELinux context.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments