Warum kann Juju keine Verbindung zur Umgebung herstellen?

Warum kann Juju keine Verbindung zur Umgebung herstellen?

Ich kann den Bootstrap durchführen, aber ich kann den Juju-Status nicht sehen.

Error details: 

    no instances found

Dies wird angezeigt, wenn ich „juju --debug --show-log“ verwende und MAAS bootstrappe, aber es zeigt an, dass die Umgebung bereits gebootet ist.

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

Dies ist der Debug-V-Status

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

Antwort1

Es sieht so aus, als ob Ihr DNS nicht funktioniert, um zum Juju-Boostrap-Knoten zu gelangen.

Was haben Sie in MaaS für „Standarddomäne für neue Knoten“ unter „Netzwerkkonfiguration“ auf der Einstellungsseite von MaaS eingestellt?

Was ist die Ausgabe von cat /etc/resolv.conf?

Wie lautet die IP-Adresse Ihres MaaS-Servers?

Wenn ich richtig liege und vermute, dass der DNS das Problem ist, müssen Sie ausführen sudo nano /etc/resolvconf/resolv.conf.d/headund anschließend die Zeile eingeben nameserver <ip_of_your_maas_server>, die Datei speichern, ausführen sudo resolvconf -uund dann den Befehl „juju status“ erneut versuchen.

verwandte Informationen