Reopening: this bucket is still live, and the early reboot is Ubuntu's
own Raspberry Pi A/B boot service, not an external provisioning script.

Evidence (2026-12-05):
- The error tracker bucket has been at 133-191 reports/week and 4,772
  reports in calendar 2026 to date. On 2026-12-05 it was 133/week,
  rank 16 on 26.04. Samples: 177/200 arm64; cloud-init 26.2 is the
  dominant version; first seen in 25.10 (cloud-init 25.3).
- The journal quoted in comment #2 names piboot-try-reboot.service
  alongside cloud-init-local.service. piboot-try-reboot.service is
  WantedBy=sysinit.target with no ordering against
  cloud-init-local.service (which is Before=sysinit.target), and runs
  `piboot-try --reboot` whenever flash-kernel has left new boot assets
  in /boot/firmware/new -- that is, on the first boot after every
  kernel, initramfs or flash-kernel update. It reboots while
  cloud-init-local is still running, which is exactly the EPIPE path.
- A fresh Pi image has no new/state, so the A/B service does nothing;
  generic amd64/arm64 images do not ship piboot-try. That is why the
  original reproduction attempts failed.

Two fixes are needed:

1. cloud-init: guard the SocketSync.__exit__ sendall so a dead shim
   does not abort the remaining stages (the method's own contract says
   to suppress and carry on in a degraded state). Upstream issue:
   https://github.com/canonical/cloud-init/issues/7307
   PR: https://github.com/canonical/cloud-init/pull/7308

2. piboot-try: order piboot-try-reboot.service before
   cloud-init-local.service (or make it conflict with it) so the A/B
   reboot happens before the local stage starts. I will file a
   separate bug for that.

The same unguarded stream-socket code is in jammy-updates 26.1 and
noble-updates 26.2, so an SRU should cover those series too, not only
questing and resolute.

Reopening as New/Medium.


** Bug watch added: github.com/canonical/cloud-init/issues #7307
   https://github.com/canonical/cloud-init/issues/7307

** Changed in: cloud-init (Ubuntu)
       Status: Expired => New

** Changed in: cloud-init (Ubuntu)
   Importance: Low => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2146834

Title:
  /usr/bin/cloud-init:BrokenPipeError:/usr/bin/cloud-
  init@9:main:all_stages:__exit__

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2146834/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to