Skip to content

Commit 1c027c1

Browse files
Merge pull request #18863 from openshift-cherrypick-robot/cherry-pick-18779-to-release-3.9
Automatic merge from submit-queue. [release-3.9] sdn: fix CNI IPAM data dir This is an automated cherry-pick of #18779 /assign pravisankar
2 parents 9fd063a + dac0469 commit 1c027c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/network/node/metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func updateARPMetrics() {
167167

168168
func updatePodIPMetrics() {
169169
numAddrs := 0
170-
items, err := ioutil.ReadDir(hostLocalDataDir + "/networks/openshift-sdn/")
170+
items, err := ioutil.ReadDir(hostLocalDataDir + "/openshift-sdn/")
171171
if err != nil && os.IsNotExist(err) {
172172
// Don't log an error if the directory doesn't exist (eg, no pods started yet)
173173
return

pkg/network/node/node.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import (
4848

4949
const (
5050
openshiftCNIFile = "80-openshift-network.conf"
51-
hostLocalDataDir = "/var/lib/cni"
51+
hostLocalDataDir = "/var/lib/cni/networks"
5252
)
5353

5454
type osdnPolicy interface {

0 commit comments

Comments
 (0)