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*])
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.
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
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.