Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enabler][Research] Ensure modules use 'remote_tmp' directory when set #1749

Open
1 task done
fernandofloresg opened this issue Oct 15, 2024 · 0 comments
Open
1 task done
Assignees
Labels
Enabler Enabler task Needs Triage Issue need assessment by a team member(s)

Comments

@fernandofloresg
Copy link
Collaborator

Is there an existing issue for this?

  • There are no existing issues.

Enabler description

During my last development task #1481 I noticed that uses of tempfile will not use the environment variable TMP, TMPDIR or ANSIBLE_REMOTE_TMP.

In that task, I only fixed zos_copy code, but doing a simple search I noticed other modules are using the same library.

Screenshot 2024-10-15 at 12 16 59 PM

This enabler task is to validate which modules are not honoring the ansible_remote_tmp variable and instead create temporary files under other locations, size the task(s) and assign a priority.

The initial module list seems to be:

  • zos_job_submit.
  • zos_script.
  • zos_unarchive.
  • module_utils/data_set (We need to check which modules use this, most likely zos_data_set).
  • module_utils/encode (We need to check which modules, again, at least zos_encode).
  • module_utils/template
  • zos_fetch
  • zos_mount
  • zos_tso_command

Do test these with another user that is not BXPROOT, change the permissions that are in the remote tmp directory to not be able to write/read in/from it.

Ansible module

No response

@fernandofloresg fernandofloresg added Enabler Enabler task Needs Triage Issue need assessment by a team member(s) labels Oct 15, 2024
@richp405 richp405 added Needs Triage Issue need assessment by a team member(s) and removed Needs Triage Issue need assessment by a team member(s) labels Oct 15, 2024
@richp405 richp405 added this to the [Q4] [2024] Enablers milestone Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enabler Enabler task Needs Triage Issue need assessment by a team member(s)
Projects
Status: No status
Development

No branches or pull requests

3 participants