Bug 1985957 - Backport ovnkube-trace requires iproute to be installed in the pod to 4.8.z
Summary: Backport ovnkube-trace requires iproute to be installed in the pod to 4.8.z
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.8.z
Assignee: Christoph Stäbler
QA Contact: Dan Brahaney
URL:
Whiteboard:
Depends On: 1978137
Blocks: 1995910
TreeView+ depends on / blocked
 
Reported: 2021-07-26 11:08 UTC by Christoph Stäbler
Modified: 2021-08-31 16:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1978137
Environment:
Last Closed: 2021-08-31 16:17:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ovn-kubernetes pull 656 0 None None None 2021-08-12 09:08:54 UTC
Red Hat Product Errata RHBA-2021:3247 0 None None None 2021-08-31 16:17:41 UTC

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


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