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

Parameterized temp dir used during a tarball install. #173

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

robnk23
Copy link
Contributor

@robnk23 robnk23 commented Nov 10, 2023

What type of PR is this?

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

During a tarball install the rke2 executable will be run from a temporary directory created in the system default temp directroy (usually /tmp), which means the install will fail when /tmp is mounted with the noexec option.

This PR parameterizes the path to the parent directory of the temporary directory that gets created by adding the tarball_temp_dir variable, while leaving it to the system default if tarball_temp_dir is not specified.

Which issue(s) this PR fixes:

Fixes #172

Special notes for your reviewer:

N/A

Testing

Tested performing tarball installs with tarball_temp_dir undefined and defined to point to a path other than the system default temp dir.

Release Notes

Parameterized tmp dir used during a tarball install.

@zackbradys
Copy link
Member

CC: @zackbradys @clemenko

Copy link

@dweomer dweomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (but I am not a pythonista nor ansible expert)

@zackbradys
Copy link
Member

I saw in previous PRs that the tests may not be working correctly? @mddamato @dgvigil?

@mddamato
Copy link
Contributor

We fixed them. The tests should be working now. We'll take a look.

@mddamato
Copy link
Contributor

fixed the tests in #176, once that's merged we can re-test and merge

@mddamato
Copy link
Contributor

mddamato commented Nov 29, 2023

@robnk23 could you rebase onto the new main? Never mind, I rebased for you

@mddamato mddamato merged commit 1c0df9a into rancherfederal:main Nov 29, 2023
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parameterize Temporary Directory used during Tarball Install
4 participants