From 0aa368384c4aa8782936687e07d764ff78e326f7 Mon Sep 17 00:00:00 2001 From: Tamilmani Manoharan Date: Wed, 14 Jul 2021 12:09:38 -0700 Subject: [PATCH] updated lockdir to /var/run/azure-vnet --- platform/os_linux.go | 2 +- store/json_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/os_linux.go b/platform/os_linux.go index 0bbe78893a..0287d8f6a5 100644 --- a/platform/os_linux.go +++ b/platform/os_linux.go @@ -21,7 +21,7 @@ const ( // CNIRuntimePath is the path where CNI state files are stored. CNIRuntimePath = "/var/run/" // CNILockPath is the path where CNI lock files are stored. - CNILockPath = "/var/lock/azure-vnet/" + CNILockPath = "/var/run/azure-vnet/" // CNSRuntimePath is the path where CNS state files are stored. CNSRuntimePath = "/var/run/" // CNI runtime path on a Kubernetes cluster diff --git a/store/json_test.go b/store/json_test.go index aa6cfc36d3..bde3630d6d 100644 --- a/store/json_test.go +++ b/store/json_test.go @@ -231,7 +231,7 @@ func TestLockFilePath(t *testing.T) { lockFileName := store.GetLockFileName() if runtime.GOOS == "linux" { - if lockFileName != "/var/lock/azure-vnet/" + testLockFileName + ".lock" { + if lockFileName != "/var/run/azure-vnet/" + testLockFileName + ".lock" { t.Errorf("Not expected file lock name: %v", lockFileName) } } else {