Bug 2035969 - "ip a " shows "Error: Peer netns reference is invalid" after create test pods
Summary: "ip a " shows "Error: Peer netns reference is invalid" after create test pods
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 4.10.0
Assignee: Peter Hunt
QA Contact: Sunil Choudhary
URL:
Whiteboard:
Depends On:
Blocks: 2042451 2043180
TreeView+ depends on / blocked
 
Reported: 2021-12-29 00:24 UTC by huirwang
Modified: 2022-08-15 15:33 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2042451 2043180 (view as bug list)
Environment:
Last Closed: 2022-03-10 16:36:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github cri-o cri-o pull 5529 0 None Merged namespace: drop and replace stop method 2022-01-18 21:36:15 UTC
Github cri-o cri-o pull 5550 0 None Merged [release-1.23] namespace: drop and replace stop method 2022-01-18 21:36:22 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:36:59 UTC

Description huirwang 2021-12-29 00:24:58 UTC
Description of problem:
After create some test pods, execute "ip a" on sdn pod, will find many errors "Error: Peer netns reference is invalid"

Version-Release number of selected component (if applicable):
4.10.0-0.nightly-2021-12-23-153012

How reproducible:
Frequently

Steps to Reproduce:
1. Create some test pods
oc exec sdn-vcjzd -n openshift-sdn  --container=sdn -i -- bash -c ip addr show if460


veth03979c80

STDERR:
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.

2. 

3.

Actual results:


Expected results:
No above errors

Additional info:

Comment 4 Peter Hunt 2022-01-05 16:35:31 UTC
I believe this is a consequence of the fix for https://bugzilla.redhat.com/show_bug.cgi?id=2003193. There may be files in /var/run/netns that have been unmounted as namespaces but remain as files.

From the sound of it, this behavior is unacceptable? if so, I would deem this a blocker. Unfortunately, this has already been backported to 4.9 as well

Comment 5 Peter Hunt 2022-01-05 18:25:43 UTC
fixed by a 4.10 variant of the attached PR

Comment 9 Sunil Choudhary 2022-01-21 09:42:18 UTC
Tested on 4.10.0-0.nightly-2022-01-20-082726. 

Created and deleted test pods. Checked from sdn pod by listing the interface.

$ oc get clusterversion
NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.10.0-0.nightly-2022-01-20-082726   True        False         70m     Cluster version is 4.10.0-0.nightly-2022-01-20-082726

Comment 13 errata-xmlrpc 2022-03-10 16:36:47 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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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/RHSA-2022:0056


Note You need to log in before you can comment on or make changes to this bug.