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

Remove CUSTOM_VENV_PATHS from Controller API

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 2.3, 2.4
    • controller
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      1. What is the nature and description of the request?

      The CUSTOM_VENV_PATHS is still present in the Automation Controller API:

      "DEFAULT_EXECUTION_ENVIRONMENT": null,
      "CUSTOM_VENV_PATHS": [],
      "INSIGHTS_TRACKING_STATE": false,
      

      But, this parameter is not visible from Controller UI. The virtual environments were used in Ansible Automation Platform 1.2 and Ansible Tower 3.X but, they were replaced by the Execution Environments since Ansible Automation Platform 2.

      2. Why does the customer need this? (List the business requirements here)

      We have seen some cases which the customers were getting some issues, due to the CUSTOM_VENV_PATHS, as the following:

      rest_framework.exceptions.ValidationError: [ErrorDetail(string='/var/lib/awx/venv/ansible is not a valid path choice.', code='path_error')]
      2024-04-17 06:15:25,158 WARNING [6d0ce50cd2c54c06abb8aaad429843d0] awx.conf.settings The current value "['/var/lib/awx/venv/ansible', '/var/lib/awx/venv/ansible2100_core', '/var/lib/awx/venv/ansible2915_core', '/var/lib/awx/venv/ansible_admin', '/var/lib/awx/venv/ansible_python3']" for setting "CUSTOM_VENV_PATHS" is invalid.

       

      This happens due to the parameter still contains values in the API: 

          "CUSTOM_VENV_PATHS": [
              "/var/lib/awx/venv/ansible",
              "/var/lib/awx/venv/ansible2100_core",
              "/var/lib/awx/venv/ansible2915_core",
              "/var/lib/awx/venv/ansible_admin",
              "/var/lib/awx/venv/ansible_python3"
      

      If this value is removed, we could avoid some issues/errors due to this.

            chadwickferman Chad Ferman
            rhn-support-alfferna Alfonso Fernandez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: