Bootstrap freezes - jammy controller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On Juju v3.0-beta1 (revision 829bda9), I cannot bootstrap a Jammy controller.
```
$ juju bootstrap lxd c --bootstrap-series jammy
```
freezes on the step
```
Attempting to connect to 10.67.163.115:22
```
and hangs for ~20 mins before timing out.
Looking at the logs (/var/log) inside the LXD container, I see stuff like this:
```
...
Jun 28 04:55:28 juju-19c090-0 systemd[1]: Started Session 881 of User ubuntu.
Jun 28 04:55:28 juju-19c090-0 systemd[1]: session-881.scope: Deactivated successfully.
Jun 28 04:55:33 juju-19c090-0 systemd[1]: Started Session 882 of User ubuntu.
Jun 28 04:55:33 juju-19c090-0 systemd[1]: session-882.scope: Deactivated successfully.
Jun 28 04:55:38 juju-19c090-0 systemd[1]: Started Session 883 of User ubuntu.
Jun 28 04:55:39 juju-19c090-0 systemd[1]: session-883.scope: Deactivated successfully.
...
```
auth.log contains a bit more detail:
```
Jun 28 04:55:49 juju-19c090-0 systemd-
Jun 28 04:55:49 juju-19c090-0 sshd[12338]: Received disconnect from 10.67.163.1 port 59208:11: disconnected by user
Jun 28 04:55:49 juju-19c090-0 sshd[12338]: Disconnected from user ubuntu 10.67.163.1 port 59208
Jun 28 04:55:49 juju-19c090-0 sshd[12285]: pam_unix(
Jun 28 04:55:49 juju-19c090-0 systemd-
Jun 28 04:55:49 juju-19c090-0 systemd-
Jun 28 04:55:54 juju-19c090-0 sshd[12341]: Accepted publickey for ubuntu from 10.67.163.1 port 59210 ssh2: RSA SHA256:
Jun 28 04:55:54 juju-19c090-0 sshd[12341]: pam_unix(
```
I found this (possibly relevant) section in the cloud-init.log:
```
2022-06-28 05:10:30,389 - subp.py[DEBUG]: Running command ['/var/
/runcmd'] with allowed return codes [0] (shell=False, capture=False)
2022-06-28 05:10:30,412 - subp.py[DEBUG]: Unexpected error while running command.
Command: ['/var/
Exit code: 2
Reason: -
Stdout: -
Stderr: -
2022-06-28 05:10:30,412 - cc_scripts_
cripts in /var/lib/
2022-06-28 05:10:30,412 - handlers.py[DEBUG]: finish: modules-
IL: running config-scripts-user with frequency once-per-instance
2022-06-28 05:10:30,413 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit
.config.
ser.py'>) failed
2022-06-28 05:10:30,413 - util.py[DEBUG]: Running module scripts-user (<module 'cloudinit.c
onfig.cc_
r.py'>) failed
Traceback (most recent call last):
File "/usr/lib/
les
ran, _r = cc.run(
File "/usr/lib/
return self._runners.
File "/usr/lib/
results = functor(*args)
File "/usr/lib/
subp.
File "/usr/lib/
raise RuntimeError(
RuntimeError: Runparts: 1 failures (runcmd) in 1 attempted commands
```
Bootstrapping works fine with a focal controller.
Changed in juju: | |
status: | New → Incomplete |
Hi Jordan,
I tried to reproduce this bug on develop branch (3.0-beta2), looks like there is no such problem.
https:/ /pastebin. ubuntu. com/p/YwsVmcBjQ S/