Installation failed when Subiquity installs SSH server on noble
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Olivier Gayot | ||
subiquity |
Fix Released
|
Critical
|
Olivier Gayot |
Bug Description
I'm trying to install Ubuntu Server 24.04 using today's daily + changes related to deb822. I'm using the following curtin revision:
https:/
Subiquity fails when installing openssh-server. Unfortunately, the logs do not help much to understand what's going on:
Mar 08 13:39:08 ubuntu-server subiquity_
Mar 08 13:39:08 ubuntu-server subiquity_
Mar 08 13:39:08 ubuntu-server subiquity_
Mar 08 13:39:08 ubuntu-server subiquity_
Mar 08 13:39:08 ubuntu-server subiquity_
Mar 08 13:39:08 ubuntu-server subiquity_
I've added more logs to see what happens (see https:/
Mar 08 14:51:10 ubuntu-server subiquity_
[...]
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
Mar 08 14:51:10 ubuntu-server subiquity_
After adding set -x to the postinst script, we see that it is the call to systemctl daemon-reload which causes the failure:
+ [ -d /run/systemd/system ]
+ systemctl daemon-reload
Failed to connect to bus: No data available
+ cleanup
+ [ /tmp/tmp.iebuhpLhg7 ]
+ rm -f /tmp/tmp.iebuhpLhg7
+ [ ]
dpkg: error processing package openssh-server (--configure):
installed openssh-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I think it is a regression introduced by https:/
Related branches
- Dan Bungert: Approve
- Server Team CI bot: Approve (continuous-integration)
- Chris Peterson: Approve
-
Diff: 115 lines (+80/-1)2 files modifiedcurtin/util.py (+29/-1)
tests/unittests/test_util.py (+51/-0)
description: | updated |
description: | updated |
Changed in subiquity: | |
importance: | Undecided → High |
description: | updated |
Changed in curtin: | |
status: | New → Confirmed |
Changed in subiquity: | |
status: | New → Confirmed |
Changed in curtin: | |
assignee: | nobody → Olivier Gayot (ogayot) |
Changed in subiquity: | |
status: | Confirmed → In Progress |
assignee: | nobody → Olivier Gayot (ogayot) |
Changed in subiquity: | |
status: | In Progress → Triaged |
status: | Triaged → Fix Committed |
tags: | removed: foundations-todo |
I tried with https:/ /code.launchpad .net/~mitchella ugustin/ curtin/ +git/curtin- 1/+merge/ 461730 + https:/ /code.launchpad .net/~mitchella ugustin/ curtin/ +git/curtin/ +merge/ 460960 reverted and it passes. We need to understand what's the correct approach now.