我正在尝试从本地存储库运行 juju deploy:
juju deploy --repository=charms local:precise/stack
当我这样做时,我收到以下消息:
WARNING failed to load charm at "/home/eduard/charms/precise/hooks": open /home/eduard/charms/precise/hooks/metadata.yaml: no such file or directory
WARNING failed to load charm at "/home/eduard/charms/precise/hooks": open /home/eduard/charms/precise/hooks/metadata.yaml: no such file or directory
Added charm "local:precise/stack-48" to the environment.
魅力正在正常运行,但我喜欢这个广告Quu不再继续出现。
我提前感谢你的帮助
答案1
看来您的目录中有一个名为“hooks”的目录,Juju 正在尝试将其加载为 Charm,但失败了。如果您删除该目录或移动它,则此警告应该会消失。在不知道堆栈 Charm 的结构的情况下,需要将此 hooks 目录放入 stacks 目录中。树应如下所示:
/主页/eduard/charms/precise
stacks/
hooks/
<hook files>
metadata.yaml
readme.md
... other files