Skip to content

Commit f774716

Browse files
committed
Make configure-agent-env.service idempotent.
When the configure-agent-env.service service is restarted it will fail when it tries to create the directory /etc/kubernetes, leaving the system 'degraded' from systemd's perspective, this change adds the '-p' flag to mkdir to fail silently if the directory already exists. Change-Id: I79c3beebd790f2e7c787cf1c34be3c5a26cca2d0 Related-Bug: #1982872 (cherry picked from commit 64570c2)
1 parent 4d30bef commit f774716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magnum/drivers/k8s_fedora_coreos_v1/templates/fcct-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ storage:
124124
done
125125
126126
/usr/bin/update-ca-trust
127-
mkdir /etc/kubernetes/
127+
mkdir -p /etc/kubernetes/
128128
cp /etc/pki/tls/certs/ca-bundle.crt /etc/kubernetes/ca-bundle.crt
129129
130130
HTTP_PROXY="__HTTP_PROXY__"

0 commit comments

Comments
 (0)