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

Pebble Error cannot create directory: permission denied when pushing file to container on Juju 3.5.1 #921

Open
NohaIhab opened this issue Jun 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@NohaIhab
Copy link
Contributor

NohaIhab commented Jun 5, 2024

Bug Description

On Juju 3.5.1

This issue is blocking the deployment and the CI for some CKF charms.
As reported in this Juju 3.5.1 bug, our charms are not able to push files with pebble to the workload container with the error:

ops.pebble.PathError: permission-denied - cannot create directory: mkdir <dir_name>: permission denied

where <dir_name> is different for every charm, depending on what file it is attempting to push.

It looks like pebble does not have permissions to write files to workload containers.

This bug is known to affect the following charms, where the CI is failing in the corresponding PRs:

  • jupyter-ui PR
  • kfp-profile-controller PR
  • kfp-persistence PR (same PR as kfp-profile-controller)

In our CI, we have Juju pinned to 3.5/stable, and for the Juju snap 3.5/stable is pinned to 3.5.1:

snap info juju | grep 3.5/stable
tracking:     3.5/stable
  3.5/stable:    3.5.1             2024-05-30 (27225)  99MB -

i.e. we have 3.5.1 in all of our CI at the moment of creating this issue.

The CI was seen to fail in main for the listed charms. Similarly, we expect this to break in the track/<version> branches.

To Reproduce

  1. Install Juju 3.5/stable
  2. Install microk8s 1.25-strict/stable
  3. Bootstrap controller and add model
  4. Deploy one of the charms mentioned in the description from latest/edge
  5. Check the debug logs with juju debug-log --replay

Environment

juju 3.5.1
charms channel: latest/edge

Relevant Log Output

jupyter-ui: https://pastebin.canonical.com/p/2XJmKhdKrn/
kfp-persistence: https://pastebin.canonical.com/p/5zT8qk6bBS/
kfp-profile-controller: https://pastebin.canonical.com/p/vv9MwYN9y5/

Additional Context

No response

@NohaIhab NohaIhab added the bug Something isn't working label Jun 5, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-5806.

This message was autogenerated

@NohaIhab NohaIhab changed the title Pebble Error cannot create directory: permission denied on pushing file to container with Juju 3.5.1 Pebble Error cannot create directory: permission denied when pushing file to container on Juju 3.5.1 Jun 5, 2024
@NohaIhab
Copy link
Contributor Author

NohaIhab commented Jun 5, 2024

Temporary fix

After discussing with the team, we agreed that in order to unblock we can modify the CI of the affected charms as follows:

  1. Set the juju agent version to 3.5.0 where this bug does not exist, by setting bootstrap-options in the actions-operator step to "--agent-version 3.5.0"
  2. Add a comment on the agent version change to revert this once the juju bug is released to 3.5/stable

DnPlas added a commit to canonical/notebook-operators that referenced this issue Jun 5, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #373
DnPlas added a commit to canonical/kfp-operators that referenced this issue Jun 5, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #373
DnPlas added a commit to canonical/kfp-operators that referenced this issue Jun 5, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #498
DnPlas added a commit to canonical/kfp-operators that referenced this issue Jun 5, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #498
DnPlas added a commit to canonical/kfp-operators that referenced this issue Jun 5, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #498
DnPlas added a commit to canonical/notebook-operators that referenced this issue Jun 5, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #373
DnPlas added a commit to canonical/notebook-operators that referenced this issue Jun 5, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #373
DnPlas added a commit to canonical/kfp-operators that referenced this issue Jun 5, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #498
DnPlas added a commit to canonical/kfp-operators that referenced this issue Jun 5, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #498
DnPlas added a commit to canonical/notebook-operators that referenced this issue Jun 11, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #373
DnPlas added a commit to canonical/notebook-operators that referenced this issue Jun 11, 2024
This commit ensures the controller is bootstrapped with version 3.5.0 instead of the default
as we have found issues with it.
This is a workaround for canonical/bundle-kubeflow#921.

Fixes #373
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant