From 02e4d426d5052a64fe4c976e1989930300671ed5 Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Fri, 9 Aug 2024 17:15:28 +0200 Subject: [PATCH 1/2] coreos-cloudinit: fix Equinix Metal cloudinit This has been raised on Slack: ``` Aug 08 19:03:33 shoot-79548-jlptk bash[1678]: 2024/08/08 19:03:33 Checking availability of "packet-metadata-service" Aug 08 19:04:03 shoot-79548-jlptk bash[1678]: 2024/08/08 19:04:03 Checking availability of "packet-metadata-service" Aug 08 19:04:33 shoot-79548-jlptk bash[1678]: 2024/08/08 19:04:33 Checking availability of "packet-metadata-service" Aug 08 19:05:03 shoot-79548-jlptk bash[1678]: 2024/08/08 19:05:03 Checking availability of "packet-metadata-service" Aug 08 19:05:33 shoot-79548-jlptk bash[1678]: 2024/08/08 19:05:33 Checking availability of "packet-metadata-service" Aug 08 19:06:03 shoot-79548-jlptk bash[1678]: 2024/08/08 19:06:03 Checking availability of "packet-metadata-service" Aug 08 19:06:09 shoot-79548-jlptk bash[1678]: 2024/08/08 19:06:09 No datasources available in time Aug 08 19:06:09 shoot-79548-jlptk systemd[1]: oem-cloudinit.service: Main process exited, code=exited, status=1/FAILURE Aug 08 19:06:09 shoot-79548-jlptk systemd[1]: oem-cloudinit.service: Failed with result 'exit-code'. Aug 08 19:06:09 shoot-79548-jlptk systemd[1]: Failed to start oem-cloudinit.service - Run cloudinit. ``` The check for metadata endpoint availability (`curl https://metadata.packet.net/`) returns a 404 so it fails. Signed-off-by: Mathieu Tortuyaux Signed-off-by: Jeremi Piotrowski --- ...dinit-1.14.0-r8.ebuild => coreos-cloudinit-1.14.0-r9.ebuild} | 0 .../coreos-base/coreos-cloudinit/coreos-cloudinit-9999.ebuild | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/{coreos-cloudinit-1.14.0-r8.ebuild => coreos-cloudinit-1.14.0-r9.ebuild} (100%) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-1.14.0-r8.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-1.14.0-r9.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-1.14.0-r8.ebuild rename to sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-1.14.0-r9.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-9999.ebuild index 5aaad9ccb5a..834af697934 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-cloudinit/coreos-cloudinit-9999.ebuild @@ -10,7 +10,7 @@ inherit git-r3 systemd toolchain-funcs udev coreos-go if [[ "${PV}" == 9999 ]]; then KEYWORDS="~amd64 ~arm64" else - EGIT_COMMIT="f78b9f7b484497c610c8a159aa971234d384d215" # flatcar-master + EGIT_COMMIT="f3aaab923de5075524780716635f25564b5e6934" # flatcar-master KEYWORDS="amd64 arm64" fi From 1f758fffd7ef9d487612f8ed589af5e5a84fb6bd Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Wed, 21 Aug 2024 10:56:22 +0200 Subject: [PATCH 2/2] changelog: Add entry for EM cloudinit fix Signed-off-by: Jeremi Piotrowski --- changelog/bugfixes/2024-08-21-cloudinit-equinix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/bugfixes/2024-08-21-cloudinit-equinix.md diff --git a/changelog/bugfixes/2024-08-21-cloudinit-equinix.md b/changelog/bugfixes/2024-08-21-cloudinit-equinix.md new file mode 100644 index 00000000000..1d5bb4ff97d --- /dev/null +++ b/changelog/bugfixes/2024-08-21-cloudinit-equinix.md @@ -0,0 +1 @@ +- Fixed oem-cloudinit.service on Equinix Metal. The availability check now uses the https://metadata.platformequinix.com/metadata endpoint. ([scripts#2222](https://github.com/flatcar/scripts/pull/2222))