Skip to content

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

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

Open
MichaelThamm opened this issue Oct 4, 2024 · 0 comments
Open
Labels
kind/doc indicates a documentation change triaged issue has been triaged

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
@tmihoc tmihoc transferred this issue from juju/docs Feb 13, 2025
@jujubot jujubot added needs-kind issue is lacking a kind needs-triage issue is in need of triage labels Feb 13, 2025
@tmihoc tmihoc removed needs-kind issue is lacking a kind needs-triage issue is in need of triage labels Feb 13, 2025
@jujubot jujubot added needs-kind issue is lacking a kind needs-triage issue is in need of triage labels Feb 13, 2025
@tmihoc tmihoc added kind/doc indicates a documentation change and removed needs-kind issue is lacking a kind needs-triage issue is in need of triage labels Feb 13, 2025
@jujubot jujubot added the needs-triage issue is in need of triage label Feb 13, 2025
@jack-w-shaw jack-w-shaw added the triaged issue has been triaged label Mar 11, 2025
@jujubot jujubot removed the needs-triage issue is in need of triage label Mar 11, 2025
@tmihoc tmihoc removed their assignment Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/doc indicates a documentation change triaged issue has been triaged
Projects
None yet
Development

No branches or pull requests

4 participants