1 votes

Erreur de démarrage de l'environnement juju maas, crypto/rsa : erreur de vérification

J'ai démarré l'environnement juju pour maas. Il fonctionnait bien mais mon noeud bootstrapped s'est formaté à cause du démarrage réseau. J'ai alors retiré juju et supprimé le répertoire des environnements et réinstallé juju mais il ne donne pas d'erreur comme ci-dessous. S'il vous plaît aidez-moi je ne suis pas en mesure de résoudre le problème.

2014-09-18 12:12:11 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:11 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:11 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:12 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:13 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:13 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:13 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:14 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:15 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:15 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:15 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:16 DEBUG juju.mongo open.go:101 TLS handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\"")
2014-09-18 12:12:16 INFO juju.worker.peergrouper initiate.go:71 finished MaybeInitiateMongoServer
2014-09-18 12:12:16 ERROR juju.cmd supercommand.go:323 cannot initiate replica set: can't dial mongo to initiate replicaset: no reachable servers
ERROR bootstrap failed: subprocess encountered error code 1
Stopping instance...
Bootstrap failed, destroying environment
ERROR subprocess encountered error code 1

1voto

dimitern Points 2015

Si vous avez supprimé votre $HOME/.juju/ qui contient toutes les clés SSH et les certificats que juju a générés, sans détruire également votre environnement juju, vous ne pourrez plus accéder à l'environnement à partir de juju, car les informations d'identification et les clés sont perdues.

Ce que je recommande, c'est de démarrer un nouvel environnement sur votre MAAS, en utilisant des nœuds correctement mis en service (dans l'état "Ready"). De cette façon, les nœuds ne seront pas configurés pour un démarrage PXE et démarreront à partir du disque local à la place (par exemple, si vous les redémarrez, ils ne seront pas effacés mais fonctionneront comme prévu).

0voto

Daniel Bidwell Points 351

J'ai donc remis en service tous mes serveurs, vidé le répertoire .juju, à l'exception de mes environnements.yaml, et j'obtiens toujours "TLS handshake failed : x509 : certificate signed by unknown authority (possibly because of "crypto/rsa : verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"maas\")".

Que devez-vous faire de plus pour remettre les choses à zéro ? Effacer complètement le serveur maas et le réinstaller ? J'obtiens ceci lorsque j'essaie de démarrer. Il allume la machine commandée sans démarrage pxe et commence à lui parler, puis obtient l'erreur handshake failed.

OK, j'ai effectué un destory-environment juju, remis en service mon serveur client, et changé le nom de mon environnement juju et cela semble avoir réglé le problème. Maintenant, passons au suivant.

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X