Regression: images ship with modified configuration file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs |
In Progress
|
High
|
Thomas Bechtold | ||
cloud-init (Ubuntu) |
Fix Released
|
High
|
Alberto Contreras | ||
Focal |
Fix Released
|
High
|
Unassigned | ||
Impish |
Won't Fix
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
High
|
Thomas Bechtold | ||
Focal |
In Progress
|
High
|
Thomas Bechtold | ||
Impish |
Won't Fix
|
Undecided
|
Unassigned | ||
Jammy |
Fix Committed
|
High
|
Thomas Bechtold |
Bug Description
This cloud image:
build_name: server
serial: 20220411.2
...ships with a "user-modified" /etc/ssh/
It looks like this is being done here: https:/
User impact: this messes up automation; it is a common use of cloud images for users to automate their server deployments which generally involves running a dist-upgrade and then bootstrapping some kind of configuration management system.
As well as during an upgrade between releases, this will happen if openssh-server needs to change its /etc/ssh/
Workaround: users can use something like: apt-get update && UCF_FORCE_CONFOLD=1 apt-get -y dist-upgrade. Note that to avoid prompts in various other cases users should also set DEBIAN_
Background:
This has happened multiple times before. Please put CI in place to avoid this regressing again. See bug 1485685, bug 1581044, bug 1581046, bug 1323772, bug 1747464.
This needs to be backported to >= Focal so upgrades from Focal to Jammy do not result in the ucf prompt.
[Test Plan]
1) build image (eg. with ubuntu-
2) check that there is no modification for /etc/ssh/
$ ucfq openssh-server
3) check that the new configuration file under /etc/ssh/
[Where problems could occur]
Password authentication could be enabled after that change because sshd does not read the new configuration for whatever reason. This can be checked with "sudo sshd -T|grep passwordauthent
Related branches
- Utkarsh Gupta: Approve
- Robby Pocase (community): Approve
- Canonical Foundations Team: Pending requested
-
Diff: 26 lines (+10/-1)2 files modifieddebian/changelog (+7/-0)
live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot (+3/-1)
- Utkarsh Gupta: Approve
- Robert C Jennings (community): Approve
- Philip Roche (community): Approve
- Alberto Contreras (community): Approve
- Chloé Smith (community): Approve
-
Diff: 30 lines (+14/-1)2 files modifieddebian/changelog (+8/-0)
live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot (+6/-1)
- Robie Basak: Approve
-
Diff: 26 lines (+8/-3)2 files modifieddebian/changelog (+7/-0)
live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot (+1/-3)
- Robie Basak: Approve
-
Diff: 30 lines (+7/-4)2 files modifieddebian/changelog (+6/-1)
live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot (+1/-3)
- Utkarsh Gupta: Approve
-
Diff: 26 lines (+10/-1)2 files modifieddebian/changelog (+7/-0)
live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot (+3/-1)
- Utkarsh Gupta: Approve
- Philip Roche (community): Approve
- Gauthier Jolly (community): Approve
-
Diff: 26 lines (+10/-1)2 files modifieddebian/changelog (+7/-0)
live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot (+3/-1)
summary: |
- Regression: images ship with modified conffiles + Regression: images ship with modified configuration file |
Changed in cloud-images: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in cloud-images: | |
assignee: | nobody → Thomas Bechtold (toabctl) |
status: | Triaged → In Progress |
no longer affects: | cloud-images/focal |
affects: | cloud-images → livecd-rootfs |
no longer affects: | livecd-rootfs/trunk |
Changed in livecd-rootfs (Ubuntu): | |
importance: | Undecided → High |
status: | New → Fix Committed |
assignee: | nobody → Thomas Bechtold (toabctl) |
no longer affects: | livecd-rootfs (Ubuntu) |
no longer affects: | livecd-rootfs (Ubuntu Focal) |
no longer affects: | livecd-rootfs (Ubuntu Impish) |
no longer affects: | livecd-rootfs (Ubuntu Jammy) |
Changed in livecd-rootfs (Ubuntu): | |
assignee: | nobody → Thomas Bechtold (toabctl) |
status: | New → In Progress |
importance: | Undecided → High |
Changed in livecd-rootfs (Ubuntu): | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in livecd-rootfs (Ubuntu Jammy): | |
status: | New → In Progress |
assignee: | nobody → Thomas Bechtold (toabctl) |
tags: |
added: verification-needed-jammy removed: verification-done-jammy |
tags: | added: regression-proposed |
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → High |
Changed in cloud-init (Ubuntu): | |
assignee: | nobody → Alberto Contreras (aciba) |
Changed in cloud-init (Ubuntu): | |
status: | New → In Progress |
Changed in livecd-rootfs (Ubuntu): | |
status: | Fix Released → In Progress |
Changed in livecd-rootfs (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in cloud-init (Ubuntu Impish): | |
status: | New → Won't Fix |
Changed in livecd-rootfs (Ubuntu Impish): | |
status: | New → Won't Fix |
Changed in livecd-rootfs (Ubuntu Jammy): | |
importance: | Undecided → High |
Changed in cloud-init (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in cloud-init (Ubuntu Jammy): | |
importance: | Undecided → High |
Changed in livecd-rootfs (Ubuntu Jammy): | |
status: | Triaged → Fix Committed |
Changed in livecd-rootfs (Ubuntu Focal): | |
assignee: | nobody → Thomas Bechtold (toabctl) |
status: | New → In Progress |
Changed in cloud-init (Ubuntu Jammy): | |
status: | New → Fix Released |
Changed in cloud-init (Ubuntu Focal): | |
status: | New → Fix Released |
Could you provide which of the cloud-images? The build info doesn't let us know which clouds to triage, as each cloud has different configurations
Regression is also a bit of a misnomer -- based on the description, and bugs, I'd say this has been a problem for at least 7 years (based on the ticket ages, and when the bug was introduced). There hasn't been a change to that file since commit 928a79a
"Add hooks and includes."
So this has probably popped up in every release in some fashion, _unless_ ufc or another package changed that re-introduced a bug. ufc was called out in a few places as being a possible cause.
Looking at the specific config, for Focal forward, CPC should move the configuration from /etc/sshd/ sshd_config to /etc/sshd/ sshd_config. d/ files. that should prevent issues related
CPC will go through as many products as we can to ensure the upgrade path is viable and doesn't have any issues.