cloud-init is broken by cloud-init-base package on do-release-upgrade to plucky
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| cloud-init (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
| Focal |
Invalid
|
Undecided
|
Unassigned | ||
| Jammy |
Invalid
|
Undecided
|
Unassigned | ||
| Noble |
Fix Released
|
Undecided
|
Unassigned | ||
| Oracular |
Fix Released
|
Undecided
|
Unassigned | ||
| Plucky |
Fix Released
|
Critical
|
Unassigned | ||
Bug Description
[ Impact ]
Cloud-init is currently broken on `do-release-
plucky, cloud-init's packaging has been broken out into multiple binary
packages:
- cloud-init-base contains almost all of what used to be cloud-init
minus some dependencies that aren't needed everywhere
- Additional cloud-specific packages will be made that contain
cloud-init-base + the dependencies needed for that cloud
- cloud-init now depends on cloud-init-base + all extra cloud-specific
dependencies.
This allows the cloud-init package to be essentially identical to what
the cloud-init package contained before with the advantage of being
able to install only `cloud-init-base` on systems that don't need
everything required by `cloud-init`'s full dependencies.
When making this change, the following was initially added to
`cloud-init-base` package on plucky:
Breaks: cloud-init (<= 24.4~3+
Replaces: cloud-init (<= 24.4~3+
However, this doesn't work. Since cloud-init get's SRUed in full, the
version numbers will always need to increase. Furthermore, this means
`cloud-init-base` can potentially break and replace the version of
cloud-init on plucky being upgraded.
Instead, we can fix this problem by adding the following to currently
supported released series:
Provides: cloud-init-base
while adding the following to the current devel release:
Replaces: cloud-init (<< [version]), cloud-init-base
[ Test Plan ]
- Launch an instance and upgrade to the proposed version. Verify that after upgrade cloud-init works without error and that no apt errors occurred.
- Launch an instance and do-release-upgrade to the next release. Verify that after upgrade, cloud-init works without and that no apt errors occurred.
- After the do-release-upgrade, list all cloud-init* packages installed and ensure expected ownership of files.
[ Where problems could occur ]
There could still be hidden errors that won't be unmasked until upgrading to a later version of cloud-init or upgrading from a newer version than specified in the "Replaces" line. However, since "Replaces:" is version gated, we would still have the opportunity to fix any new problem at that time.
[ Other Info ]
Adding `Replaces: cloud-init` to devel was the originally proposed solution, but Julian Klode suggested the current approach.
[ Original Description]
This crash happened on the upgrade from oracular to plucky.
ProblemType: Package
DistroRelease: Ubuntu 25.04
Package: cloud-init-base 24.4-0ubuntu1
ProcVersionSign
Uname: Linux 6.11.0-13-generic x86_64
ApportVersion: 2.31.0-0ubuntu1
Architecture: amd64
CasperMD5CheckR
Date: Sat Dec 21 14:20:25 2024
ErrorMessage: Versuch, »/etc/cloud/
InstallationDate: Installed on 2024-10-15 (67 days ago)
InstallationMedia: Ubuntu-Cinnamon 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827)
PackageArchitec
Python3Details: /usr/bin/
PythonDetails: N/A
RelatedPackageV
dpkg 1.22.11ubuntu3
apt 2.9.16
SourcePackage: cloud-init
Title: package cloud-init-base 24.4-0ubuntu1 failed to install/upgrade: Versuch, »/etc/cloud/
UpgradeStatus: Upgraded to plucky on 2024-12-21 (0 days ago)
| description: | updated |
| summary: |
- package cloud-init-base 24.4-0ubuntu1 failed to install/upgrade: - Versuch, »/etc/cloud/cloud.cfg« zu überschreiben, welches auch in Paket - cloud-init 24.4-0ubuntu1~24.10.1 ist + cloud-init is broken by cloud-init-base package on do-release-upgrade to + plucky |
| Changed in cloud-init (Ubuntu): | |
| status: | Confirmed → Triaged |
| importance: | Undecided → Critical |
| Changed in cloud-init (Ubuntu Plucky): | |
| milestone: | none → ubuntu-25.04 |
| Changed in cloud-init (Ubuntu Focal): | |
| status: | New → Invalid |
| Changed in cloud-init (Ubuntu Jammy): | |
| status: | New → Invalid |
| description: | updated |

Status changed to 'Confirmed' because the bug affects multiple users.