Public bug reported:
cloud-init: 25.2-0ubuntu1~22.04.1
How to reproduce:
Run the following snippet to launch two LXD instances with different
images respectively
====
for image in 8ddf83176547 b9058323395b; do
lxc launch -e "ubuntu:$image" "c-$image" \
-c user.user-data='#cloud-config
bootcmd: ["echo CLOUD-INIT BOOTCMD RUN ✅"]
runcmd: ["echo CLOUD-INIT RUNCMD RUN ✅"]
'
lxc exec "c-$image" -- bash -x -c '
timeout 120 cloud-init status --wait
cloud-init status --long
tail -1 /var/log/cloud-init-output.log
grep ✅ /var/log/cloud-init-output.log
'
done
====
With the 8ddf83176547 image (20251001), cloud-init is successfully run. However
with the b9058323395b image (20251017), cloud-init runs the "init" and
"init-local" phase, but not "modules-config" and "modules-final" phases
somehow. Please note that the cloud-init version is the same as
25.2-0ubuntu1~22.04.1 in the two instances so it may not be a regression in the
cloud-init itself but somewhere else.
# cat /run/cloud-init/status.json
{
"v1": {
"datasource": "DataSourceLXD",
"init": {
"errors": [],
"finished": 2.12,
"recoverable_errors": {},
"start": 1.63
},
"init-local": {
"errors": [],
"finished": 0.88,
"recoverable_errors": {},
"start": 0.71
},
"modules-config": {
"errors": [],
"finished": null,
"recoverable_errors": {},
"start": null
},
"modules-final": {
"errors": [],
"finished": null,
"recoverable_errors": {},
"start": null
},
"stage": null
}
}
[output]
Launching c-8ddf83176547
+ timeout 120 cloud-init status --wait
.....................................status: done
+ cloud-init status --long
status: done
extended_status: done
boot_status_code: enabled-by-generator
last_update: Thu, 01 Jan 1970 00:00:09 +0000
detail: DataSourceLXD
errors: []
recoverable_errors: {}
+ tail -1 /var/log/cloud-init-output.log
Cloud-init v. 25.2-0ubuntu1~22.04.1 finished at Wed, 05 Nov 2025 10:11:57
+0000. Datasource DataSourceLXD. Up 9.46 seconds
+ grep ✅ /var/log/cloud-init-output.log
CLOUD-INIT BOOTCMD RUN ✅
CLOUD-INIT RUNCMD RUN ✅
Launching c-b9058323395b
+ timeout 120 cloud-init status --wait
..............................................................................................................................................................................................................................................................................................
....................................................................................................................................................................................Received
signal 15 resulting in exit. Cause:
Filename: /usr/lib/python3/dist-packages/cloudinit/cmd/status.py
Function: handle_status_args
Line number: 248
Filename: /usr/lib/python3/dist-packages/cloudinit/cmd/main.py
Function: sub_main
Line number: 1450
Filename: /usr/lib/python3/dist-packages/cloudinit/cmd/main.py
Function: main
Line number: 1320
+ cloud-init status --long
status: running
extended_status: running
boot_status_code: enabled-by-generator
last_update: Thu, 01 Jan 1970 00:00:02 +0000
detail: DataSourceLXD
errors: []
recoverable_errors: {}
+ tail -1 /var/log/cloud-init-output.log
+----[SHA256]-----+
+ grep ✅ /var/log/cloud-init-output.log
CLOUD-INIT BOOTCMD RUN ✅
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: cloud-init 25.2-0ubuntu1~22.04.1
ProcVersionSignature: Ubuntu 6.14.0-34.34~24.04.1-generic 6.14.11
Uname: Linux 6.14.0-34-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.10
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudID: lxd
CloudName: lxd
CloudPlatform: lxd
CloudSubPlatform: LXD socket API v. 1.0 (/dev/lxd/sock)
Date: Wed Nov 5 10:17:16 2025
PackageArchitecture: all
ProcEnviron:
TERM=screen-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug jammy uec-images
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130710
Title:
regression: modules-config doesn't run on jammy
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2130710/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs