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

Set tempdir to a directory under ~/ #1185

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

freyes
Copy link
Member

@freyes freyes commented Feb 19, 2024

When juju 3.x is used (installed from a snap in strict confinement) the temporary directory of the system (e.g. /tmp) can't be read by 'juju', this is used by zaza-openstack-tests to write testing policy files among other transitory files that are passed to juju's CLI.

This change moves Python's default temporary file to ~/tmp unless overriden by the environment variable TEST_TMPDIR.

When juju 3.x is used (installed from a snap in strict confinement) the
temporary directory of the system (e.g. /tmp) can't be read by 'juju',
this is used by zaza-openstack-tests to write testing policy files
among other transitory files that are passed to juju's CLI.

This change moves Python's default temporary file to ~/tmp unless
overriden by the environment variable TEST_TMPDIR.
@freyes freyes marked this pull request as draft February 19, 2024 14:04
@freyes
Copy link
Member Author

freyes commented Feb 19, 2024

Testing this change at the gate with this gerrit change - https://review.opendev.org/c/openstack/charm-keystone/+/908183

@freyes freyes requested a review from ajkavanagh February 19, 2024 14:06
@freyes
Copy link
Member Author

freyes commented Feb 19, 2024

Keeping this as draft until the Keystone patch passes the CI

@ajkavanagh ajkavanagh merged commit 63487a8 into openstack-charmers:master Feb 20, 2024
3 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.

2 participants