Bug 1985957

Summary: Backport ovnkube-trace requires iproute to be installed in the pod to 4.8.z
Product: OpenShift Container Platform Reporter: Christoph Stäbler <cstabler>
Component: NetworkingAssignee: Christoph Stäbler <cstabler>
Networking sub component: ovn-kubernetes QA Contact: Dan Brahaney <dbrahane>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aconstan, akaris, anusaxen, palonsor, zzhao
Version: 4.7   
Target Milestone: ---   
Target Release: 4.8.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1978137 Environment:
Last Closed: 2021-08-31 16:17:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1978137    
Bug Blocks: 1995910    

Comment 3 Dan Brahaney 2021-08-24 17:05:50 UTC
Working correctly in 4.8. Marking as verified.

❯ oc version
Client Version: 4.7.0-202107292319.p0.git.8b4b094.assembly.stream-8b4b094
Server Version: 4.8.0-0.nightly-2021-08-23-234834
Kubernetes Version: v1.21.1+9807387
❯ POD=$(oc get pods -n openshift-ovn-kubernetes -l app=ovnkube-master -o name | head -1 | awk -F '/' '{print $NF}')
❯ oc cp -n openshift-ovn-kubernetes $POD:/usr/bin/ovnkube-trace ovnkube-trace
Defaulting container name to northd.
tar: Removing leading `/' from member names
❯ chmod +x ovnkube-trace
❯ ./ovnkube-trace  -dst alertmanager-main-0 -dst-namespace openshift-monitoring -src alertmanager-main-0 -src-namespace openshift-monitoring -tcp
I0824 17:01:57.364564      75 ovs.go:96] Maximum command line arguments set to: 191102
I0824 17:01:57.364908      75 ovnkube-trace.go:446] Log level set to: 0
ovn-trace indicates success from alertmanager-main-0 to alertmanager-main-0 - matched on output to "openshift-monitoring_alertmanager-main-0"
I0824 17:02:03.174818      75 ovnkube-trace.go:727] ovn-trace indicates success from alertmanager-main-0 to alertmanager-main-0 - matched on output to "openshift-monitoring_alertmanager-main-0"
ovn-trace indicates success from alertmanager-main-0 to alertmanager-main-0 - matched on output to "openshift-monitoring_alertmanager-main-0"
I0824 17:02:03.881771      75 ovnkube-trace.go:769] ovn-trace indicates success from alertmanager-main-0 to alertmanager-main-0 - matched on output to "openshift-monitoring_alertmanager-main-0"
ovs-appctl ofproto/trace indicates success from alertmanager-main-0 to alertmanager-main-0 - matched on output:23

Final flow:
I0824 17:02:04.356071      75 ovnkube-trace.go:813] ovs-appctl ofproto/trace indicates success from alertmanager-main-0 to alertmanager-main-0 - matched on output:23

Final flow:
ovs-appctl ofproto/trace indicates success from alertmanager-main-0 to alertmanager-main-0 - matched on output:23

Final flow:
I0824 17:02:04.831137      75 ovnkube-trace.go:857] ovs-appctl ofproto/trace indicates success from alertmanager-main-0 to alertmanager-main-0 - matched on output:23

Final flow:
install ovn-detrace Output: Requirement already satisfied: ovs in /usr/lib64/python3.6/site-packages
Requirement already satisfied: pyOpenSSL in /usr/lib/python3.6/site-packages
Collecting sortedcontainers (from ovs)
  Downloading https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl
Requirement already satisfied: cryptography>=2.3 in /usr/lib64/python3.6/site-packages (from pyOpenSSL)
Requirement already satisfied: six>=1.5.2 in /usr/lib/python3.6/site-packages (from pyOpenSSL)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/lib64/python3.6/site-packages (from cryptography>=2.3->pyOpenSSL)
Requirement already satisfied: pycparser in /usr/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.3->pyOpenSSL)
Installing collected packages: sortedcontainers
Successfully installed sortedcontainers-2.4.0

install ovn-detrace Output: Requirement already satisfied: ovs in /usr/lib64/python3.6/site-packages
Requirement already satisfied: pyOpenSSL in /usr/lib/python3.6/site-packages
Requirement already satisfied: sortedcontainers in /usr/local/lib/python3.6/site-packages (from ovs)
Requirement already satisfied: cryptography>=2.3 in /usr/lib64/python3.6/site-packages (from pyOpenSSL)
Requirement already satisfied: six>=1.5.2 in /usr/lib/python3.6/site-packages (from pyOpenSSL)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/lib64/python3.6/site-packages (from cryptography>=2.3->pyOpenSSL)
Requirement already satisfied: pycparser in /usr/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.3->pyOpenSSL)

ovn-trace command Completed normally
❯ oc -n openshift-monitoring exec -it alertmanager-main-0 -- bash
Defaulting container name to alertmanager.
Use 'oc describe pod/alertmanager-main-0 -n openshift-monitoring' to see all of the containers in this pod.
bash-4.4$ ip a
bash: ip: command not found

Comment 5 errata-xmlrpc 2021-08-31 16:17:11 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 (OpenShift Container Platform 4.8.9 bug fix), 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-2021:3247