From 0f6344c58f943244a3562162aee2cc36a9e8fe69 Mon Sep 17 00:00:00 2001 From: Alexander Noskov Date: Wed, 20 May 2020 16:05:18 -0500 Subject: [PATCH] Fix network issues on startup for cloud-init We need to rename 50-cloud-init.cfg to 50-cloud-init to configure network correctly. [1] [1] https://askubuntu.com/questions/853615/files-in-etc-network-interfaces-d-ignored-but-not-etc-network-interfaces-itse Closes: 241 Change-Id: I607129d3fdacc5682f98dc6dd77ddce64f4ff5e1 --- manifests/function/ephemeral/secret.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/function/ephemeral/secret.yaml b/manifests/function/ephemeral/secret.yaml index 19d11c73c..927c41342 100644 --- a/manifests/function/ephemeral/secret.yaml +++ b/manifests/function/ephemeral/secret.yaml @@ -108,3 +108,5 @@ stringData: - mount --bind /mnt/vda/var/lib/docker /var/lib/docker - mkdir -p /var/lib/docker-engine /mnt/vda/var/lib/docker-engine - mount --bind /mnt/vda/var/lib/docker-engine /var/lib/docker-engine + - mv /etc/network/interfaces.d/50-cloud-init.cfg /etc/network/interfaces.d/50-cloud-init + - systemctl restart networking