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

jenkins user can't run commands from snaps #59

Open
dannf opened this issue Mar 15, 2019 · 0 comments
Open

jenkins user can't run commands from snaps #59

dannf opened this issue Mar 15, 2019 · 0 comments

Comments

@dannf
Copy link
Contributor

dannf commented Mar 15, 2019

The scalebot-jenkins charm is layered on top of the jenkins charm. It uses an internal juju controller to deploy tests. Now that the jenkins charm supports bionic, we've been updating scalebot-jenkins to bionic as well. One change we need to make is to use the juju snap internally instead of the deb. This caused things to break:

ubuntu@ip-10-230-186-23:~$ sudo su - jenkins
jenkins@ip-10-230-186-23:~$ juju
cannot create user data directory: /var/lib/jenkins/snap/juju/6849: Not a directory

Turns out the root cause here is that /var/lib/jenkins is a symlink, see LP: #1620771 for details.

This could be fixed by having the charm use a bind mount instead of a symlink - manually making this change after deploy WFM:

ubuntu@ip-10-230-186-23:~$ sudo su - jenkins
jenkins@ip-10-230-186-23:~$ juju
Usage: juju [help] <command>

Summary:
[...]
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

No branches or pull requests

1 participant