我已经在 maas 中添加了两个节点,它们都处于就绪状态。我还创建了文件“environments.yaml”,并在该文件中输入了以下几行
environments:
maas:
type: maas
maas-server: 'http://192.168.216.129:80/MAAS'
maas-oauth: '${W8QsbnRnV9UZWa28rn:he6edDat92ntkDqCEd:ubRPgpbGpvTHxK9zWNyJ2EgaK6QS5QRa}'
admin-secret: 'nothing'
default-series: precise
但之后当我输入“juju bootstrap”命令时,出现以下错误
2012-08-10 01:38:48,519 INFO Bootstrapping environment 'maas' (origin: distro type: maas)...
Bootstrap aborted because file storage is not writable: The supplied storage credentials were not accepted by the server
2012-08-10 01:38:49,721 ERROR Bootstrap aborted because file storage is not writable: The supplied storage credentials were not accepted by the server
答案1
在 Django 设置文件中有一个名为的设置MEDIA_ROOT
。它需要指向运行 MAAS 的用户有权写入的目录。
答案2
在我看来,这似乎是 maas-oauth 凭证的错误。据我所知,应该是:
W8QsbnRnV9UZWa28rn:he6edDat92ntkDqCEd:ubRPgpbGpvTHxK9zWNyJ2EgaK6QS5QRa
没有 ${...},而是
${W8QsbnRnV9UZWa28rn:he6edDat92ntkDqCEd:ubRPgpbGpvTHxK9zWNyJ2EgaK6QS5QRa}