Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2398  / 2 Years ago, thu, march 10, 2022, 2:42:49

Trusty : 14.04



Trying to bootstrap JUJU using maas environment using juju -v --debug bootstrap -e maas but the process gets stuck in the lines shown below and finally times out.



My maas nodes are in ready state. When I tried to execute the ssh command in the system shell of the MAAS host and I was able to connect successfully.



I do not understand why juju does not proceed even if the ssh is successful. I have tried this with juju 1.18.x [stable] as well as 1.19.x [devel]



The following is the log trace..



Lot of logs....



2014-06-30 13:29:44 DEBUG juju.utils.ssh ssh_openssh.go:122 running: ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication no" -i /home/dcadmin/.juju/ssh/juju_id_rsa -i /home/dcadmin/.ssh/id_rsa [email protected] /bin/bash
2014-06-30 13:29:46 DEBUG juju.utils.ssh ssh_openssh.go:122 running: ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication no" -i /home/dcadmin/.juju/ssh/juju_id_rsa -i /home/dcadmin/.ssh/id_rsa [email protected] /bin/bash


Can anyone please help.



Thanks,
Prasanna


More From » ssh

 Answers
0

This issue is fixed if we put a hack. I found it while searching for this problem and it actually worked.



But seriously would never advice to use this in production.



The get around this issue follow the following steps:




  1. First check if you can log into each of the MAAS child nodes using password less ssh.

  2. Create directory /var/lib/juju

  3. Change the ownership of the directory to ubuntu:ubuntu

  4. Create a text file /var/lib/juju/nonce.txt with content - user-admin:bootstrap



Start bootstrap again.


[#24359] Friday, March 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sigtestim

Total Points: 298
Total Questions: 108
Total Answers: 106

Location: Bermuda
Member since Thu, Apr 20, 2023
1 Year ago
;