Questo contenuto non è disponibile nella lingua selezionata.
Chapter 11. Troubleshooting Network Observability
To assist in troubleshooting Network Observability issues, you can perform some troubleshooting actions.
11.1. Using the must-gather tool Copia collegamentoCollegamento copiato negli appunti!
You can use the must-gather tool to collect information about the Network Observability Operator resources and cluster-wide resources, such as pod logs,
FlowCollector
webhook
Procedure
- Navigate to the directory where you want to store the must-gather data.
Run the following command to collect cluster-wide must-gather resources:
$ oc adm must-gather --image-stream=openshift/must-gather \ --image=quay.io/netobserv/must-gather
11.2. Configuring network traffic menu entry in the OpenShift Container Platform console Copia collegamentoCollegamento copiato negli appunti!
Manually configure the network traffic menu entry in the OpenShift Container Platform console when the network traffic menu entry is not listed in Observe menu in the OpenShift Container Platform console.
Prerequisites
- You have installed OpenShift Container Platform version 4.10 or newer.
Procedure
Check if the
field is set tospec.consolePlugin.registerby running the following command:true$ oc -n netobserv get flowcollector cluster -o yamlExample output
apiVersion: flows.netobserv.io/v1alpha1 kind: FlowCollector metadata: name: cluster spec: consolePlugin: register: falseOptional: Add the
plugin by manually editing the Console Operator config:netobserv-plugin$ oc edit console.operator.openshift.io clusterExample output
... spec: plugins: - netobserv-plugin ...Optional: Set the
field tospec.consolePlugin.registerby running the following command:true$ oc -n netobserv edit flowcollector cluster -o yamlExample output
apiVersion: flows.netobserv.io/v1alpha1 kind: FlowCollector metadata: name: cluster spec: consolePlugin: register: trueEnsure the status of console pods is
by running the following command:running$ oc get pods -n openshift-console -l app=consoleRestart the console pods by running the following command:
$ oc delete pods -n openshift-console -l app=console- Clear your browser cache and history.
Check the status of Network Observability plugin pods by running the following command:
$ oc get pods -n netobserv -l app=netobserv-pluginExample output
NAME READY STATUS RESTARTS AGE netobserv-plugin-68c7bbb9bb-b69q6 1/1 Running 0 21sCheck the logs of the Network Observability plugin pods by running the following command:
$ oc logs -n netobserv -l app=netobserv-pluginExample output
time="2022-12-13T12:06:49Z" level=info msg="Starting netobserv-console-plugin [build version: , build date: 2022-10-21 15:15] at log level info" module=main time="2022-12-13T12:06:49Z" level=info msg="listening on https://:9001" module=server
11.3. Flowlogs-Pipeline does not consume network flows after installing Kafka Copia collegamentoCollegamento copiato negli appunti!
If you deployed the flow collector first with
deploymentModel: KAFKA
Procedure
Delete the flow-pipeline pods to restart them by running the following command:
$ oc delete pods -n netobserv -l app=flowlogs-pipeline-transformer
11.4. Failing to see network flows from both br-int and br-ex interfaces Copia collegamentoCollegamento copiato negli appunti!
br-ex` and
br-int
br-ex
br-int
br-ex
br-int
Manually remove the part in the
interfaces
excludeInterfaces
br-int
br-ex
Procedure
Remove the
field. This allows the agent to fetch information from all the interfaces. Alternatively, you can specify the Layer-3 interface for example,interfaces: [ 'br-int', 'br-ex' ]. Run the following command:eth0$ oc edit -n netobserv flowcollector.yaml -o yamlExample output
apiVersion: flows.netobserv.io/v1alpha1 kind: FlowCollector metadata: name: cluster spec: agent: type: EBPF ebpf: interfaces: [ 'br-int', 'br-ex' ]1 - 1
- Specifies the network interfaces.
11.5. Network Observability controller manager pod runs out of memory Copia collegamentoCollegamento copiato negli appunti!
You can increase memory limits for the Network Observability operator by editing the
spec.config.resources.limits.memory
Subscription
Procedure
-
In the web console, navigate to Operators
Installed Operators - Click Network Observability and then select Subscription.
From the Actions menu, click Edit Subscription.
Alternatively, you can use the CLI to open the YAML configuration for the
object by running the following command:Subscription$ oc edit subscription netobserv-operator -n openshift-netobserv-operator
Edit the
object to add theSubscriptionspecification and set the value to account for your memory requirements. See the Additional resources for more information about resource considerations:config.resources.limits.memoryapiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: netobserv-operator namespace: openshift-netobserv-operator spec: channel: stable config: resources: limits: memory: 800Mi1 requests: cpu: 100m memory: 100Mi installPlanApproval: Automatic name: netobserv-operator source: redhat-operators sourceNamespace: openshift-marketplace startingCSV: <network_observability_operator_latest_version>2
11.6. Troubleshooting Loki ResourceExhausted error Copia collegamentoCollegamento copiato negli appunti!
Loki may return a
ResourceExhausted
Procedure
-
Navigate to Operators
Installed Operators, viewing All projects from the Project drop-down menu. - In the Provided APIs list, select the Network Observability Operator.
Click the Flow Collector then the YAML view tab.
-
If you are using the Loki Operator, check that the value does not exceed 98 MiB.
spec.loki.batchSize -
If you are using a Loki installation method that is different from the Red Hat Loki Operator, such as Grafana Loki, verify that the Grafana Loki server setting is higher than the
grpc_server_max_recv_msg_sizeresourceFlowCollectorvalue. If it is not, you must either increase thespec.loki.batchSizevalue, or decrease thegrpc_server_max_recv_msg_sizevalue so that it is lower than the limit.spec.loki.batchSize
-
If you are using the Loki Operator, check that the
- Click Save if you edited the FlowCollector.
11.7. Resource troubleshooting Copia collegamentoCollegamento copiato negli appunti!
11.8. LokiStack rate limit errors Copia collegamentoCollegamento copiato negli appunti!
A rate-limit placed on the Loki tenant can result in potential temporary loss of data and a 429 error:
Per stream rate limit exceeded (limit:xMB/sec) while attempting to ingest for stream
You can update the LokiStack CRD with the
perStreamRateLimit
perStreamRateLimitBurst
Procedure
-
Navigate to Operators
Installed Operators, viewing All projects from the Project dropdown. - Look for Loki Operator, and select the LokiStack tab.
Create or edit an existing LokiStack instance using the YAML view to add the
andperStreamRateLimitspecifications:perStreamRateLimitBurstapiVersion: loki.grafana.com/v1 kind: LokiStack metadata: name: loki namespace: netobserv spec: limits: global: ingestion: perStreamRateLimit: 61 perStreamRateLimitBurst: 302 tenants: mode: openshift-network managementState: Managed- Click Save.
Verification
Once you update the
perStreamRateLimit
perStreamRateLimitBurst