patch: fix /tmp permissions for aws eks deployments - #400
Open
patriciareinoso wants to merge 10 commits into
Open
patch: fix /tmp permissions for aws eks deployments#400patriciareinoso wants to merge 10 commits into
patriciareinoso wants to merge 10 commits into
Conversation
patriciareinoso
marked this pull request as ready for review
August 19, 2026 13:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🏷️ Type of changes
📝 Description
The
/tmpdirectory has the wrong permissions when deployed in EKS or Canonical k8s.This PR sets the proper permissions for that directory for the k8s branch.
We need to protect the storage_attached event from
WorkloadExecErrorexception, otherwise we see:In my tests, the charms it is able to recover but ideally we should not see the storage-attached hook fail.
Note
Small fix in
execute_on_server, this function executed the command only in the leader unit.This was removed, and now it executes the command on the unit passed as parameter.
This function was only used in
test_check_max_taskswhich iterated on every unit🧪 Manual testing steps
Build and deploy on Canonical k8s
Manually deployed several times

🔬 Automated testing steps
/tmpin microk8s we may not see the difference but it more relevant when we migrate to Canonical K8s✅ Checklist