Public bug reported: [ Impact ]
Cloud-init checks for IMDS connectivity before setting up an ephemeral network. In 24.4, this code was refactored to use a function that supported multiple URLs rather than just one. If this function fails, it logs an error, causing cloud-init to exit 2. On Hetzner, there are times it is expected that this connectivity check will fail, so it leads to cloud-init reporting error, even though no error has occurred. The fix is to remove the error and instead log at appropriate call points. [ Test Plan ] Since this has only been found on Hetzner and the cloud-init team has no Hetzner access, there is currently no known way to reliably reproduce this. We will ask the submitter to test the changes and rely on the unit test change. [ Where problems could occur ] Mulitple call points needed to be updated. If this was done wrong, we could inadvertently log errors (causing exit 2) where we shouldn't, or not log error where we should be. [ Other Info ] Upstream issue: https://github.com/canonical/cloud-init/issues/5971 Upstream PR: https://github.com/canonical/cloud-init/pull/5972 ** Affects: cloud-init (Ubuntu) Importance: Undecided Status: New ** Affects: cloud-init (Ubuntu Focal) Importance: Undecided Status: New ** Affects: cloud-init (Ubuntu Jammy) Importance: Undecided Status: New ** Affects: cloud-init (Ubuntu Noble) Importance: Undecided Status: New ** Affects: cloud-init (Ubuntu Oracular) Importance: Undecided Status: New ** Also affects: cloud-init (Ubuntu Jammy) Importance: Undecided Status: New ** Also affects: cloud-init (Ubuntu Oracular) Importance: Undecided Status: New ** Also affects: cloud-init (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: cloud-init (Ubuntu Noble) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2094857 Title: cloud-init exits 2 if IMDS connectivity fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2094857/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs