Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coreos-base/afterburn: do not start coreos-metadata.service on qemu
QEMU is not supported by Afterburn, let's add an extra-check to be sure that the service will not run on this platform. On cloud-init provisioned system, units are wrote in '/etc' after a certain moment, if a unit takes precedence on one in '/usr' the one in '/usr' would have certainly already started. That's the case for 'coreos-metadata.service' (wrote in '/etc' by cloud-init but already available in '/usr'). ``` $ journalctl -u coreos-metadata.service Sep 29 07:37:57 localhost systemd[1]: Starting coreos-metadata.service - Flatcar Metadata Agent... Sep 29 07:37:57 localhost coreos-metadata[1266]: Error: failed to run Sep 29 07:37:57 localhost coreos-metadata[1266]: Caused by: Sep 29 07:37:57 localhost coreos-metadata[1266]: 0: fetching metadata from provider Sep 29 07:37:57 localhost coreos-metadata[1266]: 1: unknown provider 'qemu' Sep 29 07:37:57 localhost systemd[1]: coreos-metadata.service: Main process exited, code=exited, status=1/FAILURE Sep 29 07:37:57 localhost systemd[1]: coreos-metadata.service: Failed with result 'exit-code'. Sep 29 07:37:57 localhost systemd[1]: Failed to start coreos-metadata.service - Flatcar Metadata Agent. Sep 29 07:37:58 core1 systemd[1]: coreos-metadata.service: Scheduled restart job, restart counter is at 1. Sep 29 07:37:58 core1 systemd[1]: Stopped coreos-metadata.service - QEMU metadata agent. Sep 29 07:37:58 core1 systemd[1]: Starting coreos-metadata.service - QEMU metadata agent... Sep 29 07:37:58 core1 systemd[1]: coreos-metadata.service: Deactivated successfully. Sep 29 07:37:58 core1 systemd[1]: Finished coreos-metadata.service - QEMU metadata agent. ``` Signed-off-by: Mathieu Tortuyaux <[email protected]>
- Loading branch information