Bug 2103680

Summary: Setting disableNetworkDiagnostics: true does not persist when network-operator pod gets re-created
Product: OpenShift Container Platform Reporter: Marius Cornea <mcornea>
Component: NetworkingAssignee: Jaime CaamaƱo Ruiz <jcaamano>
Networking sub component: ovn-kubernetes QA Contact: Anurag saxena <anusaxen>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: akaris, opayne, pdiak, yliu1
Version: 4.11   
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the network Operator configuration `disableNetworkDiagnostics` stalls on Operator restart or reboot. As a result, network diagnostics deployment is present in the cluster after network Operator restarts or reboots even if it had been previously disabled with the `disableNetworkDiagnostics` configuration setting. With this update, network Operator configuration `disableNetworkDiagnostics` preserves on Operator restart or reboot. As a result, network diagnostics deployment is no longer present in the cluster after network Operator restarts or reboots if disabled with the `disableNetworkDiagnostics` configuration setting. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2103680[*BZ#2103680*])
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 19:51: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 Marius Cornea 2022-07-04 13:36:04 UTC
Description of problem:

Setting disableNetworkDiagnostics: true does not persist when network-operator pod gets re-created.

Version-Release number of selected component (if applicable):
4.11.0-rc.0

How reproducible:
100%

Steps to Reproduce:

1. $ oc patch network.operator.openshift.io/cluster  --patch '{"spec":{"disableNetworkDiagnostics":true}}' --type=merge
network.operator.openshift.io/cluster patched

2. $  oc -n openshift-network-operator delete pods network-operator-9b68954c6-bclx6
pod "network-operator-9b68954c6-bclx6" deleted


3. $ oc get network.operator.openshift.io cluster  -o json | jq .spec.disableNetworkDiagnostics
false


Actual results:
disableNetworkDiagnostics set to false, not set to true as configured in step 1

Expected results:
disableNetworkDiagnostics set to true

Additional info:

Attaching must-gather.

Comment 5 Marius Cornea 2022-08-23 09:44:15 UTC
Verified on 4.12.0-0.nightly-2022-08-23-031342:

Comment 8 errata-xmlrpc 2023-01-17 19:51: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 (Moderate: OpenShift Container Platform 4.12.0 bug fix and 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:7399