Cannot create a Jammy-based controller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Harry Pidcock |
Bug Description
I am seeing that a Bionic-based or Focal-based Juju client cannot create a Jammy-based controller:
16:01:58 DEBUG juju.provider.maas maas2instance.go:89 "virt-node-01" has addresses ["local-
16:01:59 DEBUG juju.provider.
16:02:04 DEBUG juju.provider.
I have tried configuring /etc/ssh_config to no avail.
summary: |
- Bionic-based client cannot create a Jammy-based controller + Cannot create a Jammy-based controller |
description: | updated |
Changed in juju: | |
status: | New → Confirmed |
Changed in juju: | |
importance: | Undecided → High |
milestone: | none → 2.9-next |
status: | Confirmed → Triaged |
Changed in juju: | |
assignee: | nobody → Harry Pidcock (hpidcock) |
milestone: | 2.9-next → 2.9.33 |
status: | Triaged → In Progress |
Changed in juju: | |
status: | Fix Committed → Fix Released |
I can confirm the problem when trying to bootstrap the controller on a LXD host:
$ juju bootstrap --debug --bootstrap- series= jammy --config default- series= jammy localhost overlord common bootstrap.go:647 connection attempt for 172.17.40.162 failed: Unable to negotiate with 172.17.40.162 port 22: no matching host key type found. Their offer: rsa-sha2- 512,rsa- sha2-256
...
13:52:11 DEBUG juju.provider.
If at that point, one goes into the forming controller and mangles sshd_config:
cat << EOF >> /etc/ssh/ sshd_config
HostKey /etc/ssh/ ssh_host_ dsa_key ssh_host_ rsa_key ssh_host_ ecdsa_key ssh_host_ ed25519_ key 512,rsa- sha2-256, ssh-rsa, ssh-dss
HostKey /etc/ssh/
HostKey /etc/ssh/
HostKey /etc/ssh/
HostKeyAlgorithms rsa-sha2-
EOF
ssh-keygen -A
systemctl restart ssh
The bootstrapping will resume but will run into issues with clashing DSS key:
13:56:10 INFO cmd bootstrap.go:415 Connected to 172.17.40.162 unix.go: 575 Fetching agent: curl -sSfw 'agent binaries from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz <[https:/ /streams. canonical. com/juju/ tools/agent/ 2.9.29/ juju-2. 9.29-linux- arm64.tgz]> g2e17a0d6- 0ubuntu1~ 22.04.5 running 'init-local' at Thu, 05 May 2022 13:52:02 +0000. Up 4.93 seconds. g2e17a0d6- 0ubuntu1~ 22.04.5 running 'init' at Thu, 05 May 2022 13:52:04 +0000. Up 7.70 seconds. +++++++ +++++++ +++++++ +++++++ +++Net device info+++ +++++++ +++++++ +++++++ +++++++ +++++++ + --+---- --+---- ------- ------- ------- ----+-- ------- ------+ ------- -+----- ------- ------- + --+---- --+---- ------- ------- ------- ----+-- ------- ------+ ------- -+----- ------- ------- + 3eff:fec2: 31a7/64 | . | link | 00:16:3e:c2:31:a7 | --+---- --+---- ------- ------- ------- ----+-- ------- ------+ ------- -+----- ------- ------- + +++++++ +++++++ +++++++ ++Route IPv4 info+++ +++++++ +++++++ +++++++ ++++++ -+----- ------- -+----- ------- -+----- ------- -----+- ------- ---+--- ----+ -+----- ------- -+----- ------- -+----- ------- -----+- ------- ---+--- ----+ -+----- ------- -+----- ------- -+----- ------- -----+- ------- ---+--- ----+
13:56:10 INFO juju.cloudconfig userdatacfg_
13:56:10 INFO cmd bootstrap.go:485 Running machine configuration script...
Cloud-init v. 22.1-14-
Cloud-init v. 22.1-14-
ci-info: +++++++
ci-info: +------
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +------
ci-info: | eth0 | True | 172.17.40.162 | 255.255.255.0 | global | 00:16:3e:c2:31:a7 |
ci-info: | eth0 | True | fe80::216:
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
ci-info: | lo | True | ::1/128 | . | host | . |
ci-info: +------
ci-info: +++++++
ci-info: +------
ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
ci-info: +------
ci-info: | 0 | 0.0.0.0 | 172.17.40.1 | 0.0.0.0 | eth0 | UG |
ci-info: | 1 | 172.17.40.0 | 0.0.0.0 | 255.255.255.0 | eth0 | U |
ci-info: | 2 | 172.17.40.1 | 0.0.0.0 | 255.255.255.255 | eth0 | UH |
ci-info: +------
ci-info: +++++++++++++...