cloud-init cloud-config for ssh broken in jammy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Fix Committed
|
High
|
Thomas Bechtold | ||
Focal |
New
|
Undecided
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[impact]
cloud-config overrides via cloud-init for ssh do no longer work. Eg.
#cloud-config
ssh_pwauth: True
doesn't enable password authentication anymore.
The reason is that https:/
This bug needs only fixing in Jammy and Focal because the fix is correct in > Jammy. Jammy has this bug already in the -updates pocket but Focal only has the wrong fix in its git branch.
[test plan]
* build an image with the proposed fix
* use a cloud-init cloud-config data to enable ssh password auth (which is disabled by default)
* check after image boot with "sshd -T" if password authentication is enabled
* make sure that the file written by cloud-init in /etc/ssh/
[ Where problems could occur ]
The change does rename a single file to have correct ordering between the prebuilt cloud images and cloud-init. There are edge-cases where this could create problems but those are acceptable:
- rebuilt images based on the Ubuntu image which try to delete 10-cloudimg-
But in general this is a bug fix for the changes introduced in LP:#1968873
Related branches
- Utkarsh Gupta: Approve
- Alberto Contreras (community): Approve
- Philip Roche (community): Approve
- Canonical Foundations Team: Pending requested
-
Diff: 14 lines (+4/-1)1 file modifiedlive-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot (+4/-1)
- Utkarsh Gupta: Approve
- Philip Roche (community): Approve
- Gauthier Jolly (community): Approve
- Alberto Contreras (community): Approve
- Canonical Foundations Team: Pending requested
-
Diff: 29 lines (+11/-1)2 files modifieddebian/changelog (+7/-0)
live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot (+4/-1)
description: | updated |
Changed in cloud-images: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Thomas Bechtold (toabctl) |
description: | updated |
description: | updated |
description: | updated |
Changed in cloud-images: | |
status: | In Progress → Fix Committed |
An upload of livecd-rootfs to jammy-proposed has been rejected from the upload queue for the following reason: "needs to be accompanied in same SRU cycle with fix for LP: #2049723".