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

Documentation: Create a plugin - unable to reproduce steps with snap #3520

Open
MichaelThamm opened this issue Oct 4, 2024 · 0 comments
Open

Comments

@MichaelThamm
Copy link

MichaelThamm commented Oct 4, 2024

Docs page: https://juju.is/docs/juju/manage-plugins
Docs source: https://discourse.charmhub.io/t/how-to-manage-plugins/2203

Issue

When following the Create a Juju Plugin, I was not able to get the plugin named juju-ip (from the example) to be picked up by Juju so I can run juju ip ....

which juju
/snap/bin/juju

juju version
3.5.4-genericlinux-amd64

whoami
ubuntu

ls -l /usr/local/bin/juju-ip     
-rwxr-xr-x 1 ubuntu ubuntu 242 Oct  2 17:02 /usr/local/bin/juju-ip
juju ip 0
ERROR juju: "ip" is not a juju command. See "juju --help".
juju-ip 0                   
null

Resolution

The reason this happens is due to strict snap confinement and running /snap/juju/current/bin/juju ip works but feels weird.

Improvement

The docs should be updated to warn that this does not work with the Juju snap and if the argument is that it does, what is the recommended approach?

@MichaelThamm MichaelThamm changed the title Documentation: Create a plugin - unable to reproduce steps Documentation: Create a plugin - unable to reproduce steps with snap Oct 4, 2024
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