cannot bootstrap, juju asks for credentials
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Snap |
Fix Released
|
High
|
Unassigned |
Bug Description
Freshly deployed Jammy machine, sunbeam bootstrap fails, I am not sure what is different in my environment
ubuntu@node6:~$ ll .local # no juju leftovers
ls: cannot access '.local': No such file or directory
ubuntu@node6:~$ sudo snap install openstack --channel yoga/edge --revision=50
openstack yoga from Canonical✓ installed
ubuntu@node6:~$ sudo addgroup $USER snap_daemon
Adding user `ubuntu' to group `snap_daemon' ...
Adding user ubuntu to group snap_daemon
Done.
logout/login
ubuntu@node6:~$ groups
ubuntu adm dialout cdrom floppy sudo audio dip video plugdev netdev lxd snap_daemon
ubuntu@node6:~$ openstack.sunbeam prepare-node-script | bash -x
++ whoami
+ USER=ubuntu
+ sudo snap connect openstack:ssh-keys
+ sudo addgroup ubuntu snap_daemon
The user `ubuntu' is already a member of `snap_daemon'.
+ newgrp snap_daemon
Generating public/private rsa key pair.
Your identification has been saved in /home/ubuntu/
Your public key has been saved in /home/ubuntu/
The key fingerprint is:
SHA256:
The key's randomart image is:
+---[RSA 4096]----+
| o=o*o+o. |
| . B *. ..|
| .o *. o o|
| . .o..+ o.|
| .S.. o o |
| o.+ o. |
| . *o .. +. |
| oooo+..o . |
| o=++o. oo.E |
+----[SHA256]-----+
# 10.244.40.223:22 SSH-2.0-
# 10.244.40.223:22 SSH-2.0-
# 10.244.40.223:22 SSH-2.0-
# 10.244.40.223:22 SSH-2.0-
# 10.244.40.223:22 SSH-2.0-
# 10.244.8.7:22 SSH-2.0-
# 10.244.8.7:22 SSH-2.0-
# 10.244.8.7:22 SSH-2.0-
# 10.244.8.7:22 SSH-2.0-
# 192.168.33.35:22 SSH-2.0-
# 192.168.33.35:22 SSH-2.0-
# 192.168.33.35:22 SSH-2.0-
# 192.168.33.35:22 SSH-2.0-
# 192.168.33.35:22 SSH-2.0-
# 192.168.35.7:22 SSH-2.0-
# 192.168.35.7:22 SSH-2.0-
# 192.168.35.7:22 SSH-2.0-
# 192.168.35.7:22 SSH-2.0-
192.168.35.7: Connection closed by remote host
# 192.168.36.7:22 SSH-2.0-
# 192.168.36.7:22 SSH-2.0-
192.168.36.7: Connection closed by remote host
# 10.244.8.7:22 SSH-2.0-
# 192.168.36.7:22 SSH-2.0-
# 192.168.36.7:22 SSH-2.0-
juju (3.2/beta) 3.2-beta3 from Canonical✓ installed
ubuntu@node6:~$ time openstack.sunbeam cluster bootstrap
Checking for presence of Juju ... done
Checking for presence of ssh-keys interface ... done
Checking if user ubuntu is member of group snap_daemon ... done
Checking for ~/.local/share directory for Juju ... done
Sunbeam Cluster not initialized
Bootstrapping Sunbeam cluster ... done
Bootstrapping Juju onto machine ... done
Creating user for machine in Juju ... done
Adding Juju controller to cluster database ... done
Adding Juju user to cluster database ... done
Saving bootstrap user credentials ... done
Save Juju user for local usage ... done
Error registering user node6.silo1.
Traceback (most recent call last):
File "/snap/
index = child.expect(
File "/snap/
return self.expect_
File "/snap/
return exp.expect_
File "/snap/
return self.timeout(e)
File "/snap/
raise exc
pexpect.
<pexpect.
command: /snap/openstack
args: ['/snap/
'MIG8Exxub2RlNi
VuYmVhbS1jb250c
buffer (last 100 chars): b'o1.lab0.
before (last 100 chars): b'o1.lab0.
after: <class 'pexpect.
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 20318
child_fd: 11
closed: False
timeout: 60
delimiter: <class 'pexpect.
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayaftertermi
searcher: searcher_re:
0: re.compile(b'Enter a new password')
1: re.compile(
2: re.compile(b'Enter a name for this controller')
3: EOF
Timeout exceeded.
<pexpect.
command: /snap/openstack
args: ['/snap/
'MIG8Exxub2RlNi
VuYmVhbS1jb250c
buffer (last 100 chars): b'o1.lab0.
before (last 100 chars): b'o1.lab0.
after: <class 'pexpect.
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 20318
child_fd: 11
closed: False
timeout: 60
delimiter: <class 'pexpect.
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayaftertermi
searcher: searcher_re:
0: re.compile(b'Enter a new password')
1: re.compile(
2: re.compile(b'Enter a name for this controller')
3: EOF
Registering Juju user using token ... failed
Error: Timeout exceeded.
<pexpect.
command: /snap/openstack
args: ['/snap/
buffer (last 100 chars): b'o1.lab0.
before (last 100 chars): b'o1.lab0.
after: <class 'pexpect.
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 20318
child_fd: 11
closed: False
timeout: 60
delimiter: <class 'pexpect.
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayaftertermi
searcher: searcher_re:
0: re.compile(b'Enter a new password')
1: re.compile(
2: re.compile(b'Enter a name for this controller')
3: EOF
real 3m57.105s
user 0m15.270s
sys 0m7.214s
# juju dirs exist now
ubuntu@node6:~$ ll .local/
total 12
drwxrwxr-x 3 ubuntu snap_daemon 4096 May 15 06:46 ./
drwxr-x--- 6 ubuntu ubuntu 4096 May 15 06:46 ../
drwxrwxr-x 3 ubuntu snap_daemon 4096 May 15 06:46 share/
ubuntu@node6:~$ ll .local/share/juju/
total 40
drwx------ 4 ubuntu ubuntu 4096 May 15 06:49 ./
drwxrwxr-x 3 ubuntu snap_daemon 4096 May 15 06:46 ../
-rw------- 1 ubuntu ubuntu 103 May 15 06:49 accounts.yaml
-rw------- 1 ubuntu ubuntu 4742 May 15 06:46 bootstrap-
-rw------- 1 ubuntu ubuntu 95 May 15 06:46 clouds.yaml
-rw------- 1 ubuntu ubuntu 2137 May 15 06:49 controllers.yaml
drwx------ 2 ubuntu ubuntu 4096 May 15 06:50 cookies/
-rw------- 1 ubuntu ubuntu 160 May 15 06:46 models.yaml
drwx------ 2 ubuntu ubuntu 4096 May 15 06:46 ssh/
tags: | added: cdo-qa |
ubuntu@node6:~$ juju clouds lab0.solutionsq a on sunbeam-controller:
please enter password for node6.silo1.
ubuntu@node6:~$ juju controllers
Use --refresh option with this command to see the latest information.
Controller Model User Access Cloud/Region Models Nodes HA Version lab0.solutionsq a login 1 - - (unknown)
sunbeam-controller* - node6.silo1.