我可以引導,但看不到 juju 狀態。
Error details:
no instances found
當我 juju --debug --show-log 和我引導 MAAS 時會出現此情況,但它顯示環境已經引導。
Juju -- devops distilled
https://juju.ubuntu.com/
Juju provides easy, intelligent service orchestration on top of environments
such as Amazon EC2, HP Cloud, OpenStack, MaaS, or your own local machine.
Basic commands:
juju init generate boilerplate configuration for juju environments
juju bootstrap start up an environment from scratch
juju deploy deploy a new service
juju add-relation add a relation between two services
juju expose expose a service
juju help bootstrap more help on e.g. bootstrap command
juju help commands list all commands
juju help glossary glossary of terms
juju help topics list all help topics
Provider information:
juju help azure use on Windows Azure
juju help ec2 use on Amazon EC2
juju help hpcloud use on HP Cloud
juju help local use on this computer
juju help openstack use on OpenStack
2013-11-12 13:28:49 INFO juju supercommand.go:286 command finished
這是調試-v狀態
2013-11-12 13:33:52 DEBUG juju.provider.maas environprovider.go:33 opening environment "maas".
2013-11-12 13:33:52 DEBUG juju state.go:160 waiting for DNS name(s) of state server instances []
2013-11-12 13:33:52 DEBUG juju state.go:165 error getting state instances: no instances found
2013-11-12 13:33:52 ERROR juju supercommand.go:282 Unable to connect to environment "".
Please check your credentials or use 'juju bootstrap' to create a new environment.
Error details:
no instances found
答案1
您可能沒有 DNS 來存取 Juju Boostrap 節點。
您在 MaaS 設定頁面的「網路配置」下的「新節點的預設域」中設定了什麼?
的輸出是什麼cat /etc/resolv.conf
?
您的 MaaS 伺服器的 IP 位址是什麼?
如果我對 DNS 問題的看法是正確的,那麼您需要運行sudo nano /etc/resolvconf/resolv.conf.d/head
,然後輸入行nameserver <ip_of_your_maas_server>
,保存文件,運行sudo resolvconf -u
,然後再次嘗試 juju status 命令。