Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-2043

`hub_shared_data_path` should work with all NFS shares

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description

      If the NFS share used with `hub_shared_data_path` is unable to be configured (the user/permissions can't be configured), then the installer mounts the NFS share as `root` to the rootless user's directory and so it ends up not having permission to create files in the following tasks:

      2025-03-31 20:40:15,330 p=1111111 u=root n=ansible | TASK [ansible.containerized_installer.automationhub : Create automation hub subdirectories] *********************************************
      ****************************************************
      2025-03-31 20:40:16,518 p=1111111 u=root n=ansible | failed: [host] (item=.gnupg) => {"ansible_loop_var": "item", "changed": false, "item": ".gnupg", "msg": "There was an issue creating /home/rootlessuser/aap/hub/data/.gnupg as requested: [Errno 13] Permission denied: b'/home/rootlessuser/aap/hub/data/.gnupg'", "path": "/home/rootlessuser/aap/hub/data/.gnupg"}
      2025-03-31 20:40:17,640 p=1111111 u=root n=ansible | failed: [host] (item=assets) => {"ansible_loop_var": "item", "changed": false, "item": "assets", "msg": "There was an issue creating /home/rootlessuser/aap/hub/data/assets as requested: [Errno 13] Permission denied: b'/home/rootlessuser/aap/hub/data/assets'", "path": "/home/rootlessuser/aap/hub/data/assets"}
      2025-03-31 20:40:18,734 p=1111111 u=root n=ansible | failed: [host] (item=media) => {"ansible_loop_var": "item", "changed": false, "item": "media", "msg": "There was an issue creating /home/rootlessuser/aap/hub/data/media as requested: [Errno 13] Permission denied: b'/home/rootlessuser/aap/hub/data/media'", "path": "/home/rootlessuser/aap/hub/data/media"}
      2025-03-31 20:40:19,874 p=1111111 u=root n=ansible | failed: [host] (item=scripts) => {"ansible_loop_var": "item", "changed": false, "item": "scripts", "msg": "There was an issue creating /home/rootlessuser/aap/hub/data/scripts as requested: [Errno 13] Permission denied: b'/home/rootlessuser/aap/hub/data/scripts'", "path": "/home/rootlessuser/aap/hub/data/scripts"}
      2025-03-31 20:40:21,194 p=1111111 u=root n=ansible | failed: [host] (item=tmp) => {"ansible_loop_var": "item", "changed": false, "item": "tmp", "msg": "There was an issue creating /home/rootlessuser/aap/hub/data/tmp as requested: [Errno 13] Permission denied: b'/home/rootlessuser/aap/hub/data/tmp'", "path": "/home/rootlessuser/aap/hub/data/tmp"}

      This can be worked around by pre-mounting the NFS mount in the same spot that the installation bundle will mount it to and chown the directory to the user that will be using it.

      Actual Behavior

      Installer isn't working with a more restrictive NFS share.

      Expected Behavior

      Installer should work with all NFS shares.

              dysilva Dylan Silva
              rhn-support-nabecker Nate Becker
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: