autoinstall ssh:install-server:false is misleading in 22.04

Bug #1974483 reported by ov2k
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
High
Unassigned
ubuntu-meta (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Confirmed
Undecided
Unassigned

Bug Description

With 22.04, openssh-server is baked into the image curtin copies to the target. The ssh:install-server key no longer controls whether openssh-server gets installed. It should be easy enough to have the bit of code that installs openssh-server when the key is true also remove it when the key is false.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Argh, openssh-server is not supposed to be baked into the image curtin copies :(

Changed in subiquity:
status: New → Triaged
importance: Undecided → High
Revision history for this message
ov2k (ov2k) wrote :

Then I should also point out that other things like ufw are also baked in. Those are the only two I've noticed so far, but I haven't been looking very hard.

tags: added: fr-2464
Changed in ubuntu-meta (Ubuntu Jammy):
milestone: none → ubuntu-22.04.1
Revision history for this message
Paride Legovini (paride) wrote :

Confirmed still happening on the Jammy 20220719 daily.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-meta (Ubuntu Jammy):
status: New → Confirmed
Changed in ubuntu-meta (Ubuntu):
status: New → Confirmed
tags: added: foundations-todo
Changed in ubuntu-meta (Ubuntu Jammy):
milestone: ubuntu-22.04.1 → ubuntu-22.04.2
Revision history for this message
Andreas Lindhé (lindhe) wrote :

It seems to me like `allow-pw: false` does not work either. Could that also be a side effect of 22.04 having the server built in?

Revision history for this message
Nobuto Murata (nobuto) wrote :

fwiw, this worked for me with 22.04 LTS ISO.

====
#cloud-config
autoinstall:
  version: 1
  identity:
    hostname: ubuntu-server
    username: ubuntu
    # password=ubuntu
    password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
  ssh:
    install-server: yes # https://launchpad.net/bugs/1974483
    allow-pw: no
====

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

This is fixed in the 23.10 dailies. I'm not sure it's really practical to fix this for the next 22.04 point release, unfortunately.

Changed in ubuntu-meta (Ubuntu):
status: Confirmed → Fix Released
Changed in subiquity:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.