Bug 1549491

Summary: Should store the CNI ipam files into /var/lib/cni/networks/openshift-sdn dir
Product: OpenShift Container Platform Reporter: Meng Bo <bmeng>
Component: NetworkingAssignee: Dan Williams <dcbw>
Status: CLOSED ERRATA QA Contact: Meng Bo <bmeng>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.9.0CC: aos-bugs, bbennett
Target Milestone: ---Keywords: Regression
Target Release: 3.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-28 14:30:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Meng Bo 2018-02-27 09:19:01 UTC
Description of problem:
After the changes in https://github.com/openshift/origin/pull/18404, the CNI ipam files are stored in /var/lib/cni/openshift-sdn. The "networks" is missing in the path. We were using /var/lib/cni/networks/openshift-sdn for a long time and no reason to change it.
And as the host-local plugin code in cni repo, it should be stored in /var/lib/cin/networks/ by default as well. https://github.com/containernetworking/plugins/blob/master/plugins/ipam/host-local/backend/disk/backend.go#L30


Version-Release number of selected component (if applicable):
v3.9.0-0.53.0

How reproducible:
always

Steps to Reproduce:
1. Setup multinode env
2. Try to create a pod 
3. Check the IPAM file location

Actual results:
The ipam files are stored under /var/lib/cni/openshift-sdn

Expected results:
Should be stored in /var/lib/cni/networks/openshift-sdn

Additional info:

Comment 1 Dan Williams 2018-02-28 20:09:21 UTC
Fixed by https://github.com/openshift/origin/pull/18779

Comment 3 Meng Bo 2018-03-07 02:57:50 UTC
Checked on ocp v3.9.3, the fix was not included in the build.

3.9 PR https://github.com/openshift/origin/pull/18863

Comment 4 Meng Bo 2018-03-09 03:19:13 UTC
Tested on v3.9.4, the ip files are stored in correct path.

Comment 7 errata-xmlrpc 2018-03-28 14:30:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0489