为什么 Juju 无法连接环境?

为什么 Juju 无法连接环境?

我可以引导,但看不到 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 命令。

相关内容