New CloudStack DS_MAYBE result causing inadvertent cloud-init runs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Focal |
Fix Released
|
Critical
|
Unassigned | ||
Jammy |
Fix Released
|
Critical
|
Unassigned | ||
Lunar |
Fix Released
|
Critical
|
Unassigned | ||
Mantic |
Fix Released
|
Critical
|
Unassigned |
Bug Description
=== Begin SRU Template ===
[Impact]
In 23.3, ds-identify automatically returns CloudStack to be DS_MAYBE on VMWare and Xen instances. On instances running on VMWare and Xen that have never identified a datasource, this causes cloud-init to run for the first time where it would have otherwise been disabled.
The fix is to revert https:/
[Test Case]
* Create a VMWare instance that will be detected as DataSourceNone
* Verify that the instance does not attempt to detect the CloudStack datasource
Since it may not be possible to "naturally" get DataSourceNone, the following procedure will also work:
- Launch VMware vSphere instance
- For affected systems, ensure cloud-init version at 23.3.1-0ubuntu1 (with variable series suffix)
- For fixed systems, ensure cloud-init is using proposed
- Remove 'VMware' from /etc/cloud/
- Run `cloud-init clean --logs && rm -rf /run/cloud-init/*` # This is to simulate a fresh boot
- Run `/lib/systemd/
- On affected systems, ensure /run/cloud-
- On fixed systems, ensure /run/cloud-
- Run `cloud-init init`
- On affected systems, logs will contain `Seeing if we can get any data from <class 'cloudinit.
- On fixed systems, logs will not contain `DataSourceClou
[Regression Potential]
This will cause problems for anybody already using the new behavior. Otherwise, since this is a revert of a commit adding new behavior, I don't see any other regression potential.
[Other info]
Upstream bug: https:/
Changed in cloud-init (Ubuntu Mantic): | |
importance: | Undecided → Critical |
Changed in cloud-init (Ubuntu Lunar): | |
importance: | Undecided → Critical |
Changed in cloud-init (Ubuntu Jammy): | |
importance: | Undecided → Critical |
Changed in cloud-init (Ubuntu Focal): | |
importance: | Undecided → Critical |
description: | updated |
Changed in cloud-init (Ubuntu Jammy): | |
status: | Fix Committed → Fix Released |
status: | Fix Released → Fix Committed |
Changed in cloud-init (Ubuntu Lunar): | |
status: | Fix Committed → Fix Released |
status: | Fix Released → Fix Committed |
tags: |
added: verification-done-focal verification-done-jammy removed: verification-needed-focal verification-needed-jammy |
Upstream commit landed for this revert https:/ /github. com/canonical/ cloud-init/ commit/ d0f00bd54649e52 7d69ad597cbcad6 efa8548e58 expected in 23.3.3 Mantic/ Lunar/Jammy/ Focal