Inconsistencies between juju debug-hooks and "normal" hook environment

Merlijn Sebrechts merlijn.sebrechts at gmail.com
Tue Oct 6 10:04:52 UTC 2015


Hi


I'm developing a Charm that installs the Juju client, among other things.
I'm having some trouble getting this to work. When I use juju debug-hooks
and manually run the install hook, everything works fine. However, when the
hook is executed by Juju automatically, I get strange errors such as
"error: cannot determine juju home, required environment variables are not
set"

Both the debug-hooks and the normal hook environment execute as root.
However, a lot of env vars are different, like the home dir.

Debug-hooks:
echo ~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20151006/04f26506/attachment.html>


More information about the Juju mailing list