From 6ad5da946415c37f2a844bf345f562eea24a6401 Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Tue, 24 Dec 2024 08:28:06 +1100 Subject: [PATCH] feat: [sc-117738] detect "plugin/forward: no nameservers found" from support bundles (#1664) * add CoreDNS nameserver check analyzer * Update cluster-support-bundle.yaml --------- Co-authored-by: ada mancini --- .../troubleshoot/cluster-support-bundle.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/operator/charts/embedded-cluster-operator/troubleshoot/cluster-support-bundle.yaml b/operator/charts/embedded-cluster-operator/troubleshoot/cluster-support-bundle.yaml index 78cddc5ef..f14f6efd8 100644 --- a/operator/charts/embedded-cluster-operator/troubleshoot/cluster-support-bundle.yaml +++ b/operator/charts/embedded-cluster-operator/troubleshoot/cluster-support-bundle.yaml @@ -150,3 +150,15 @@ spec: - pass: when: "false" message: "OpenEBS Local Provisioner is provisioning PVs" + - textAnalyze: + checkName: "CoreDNS nameserver configuration" + regex: "no nameservers found" + ignoreIfNoFiles: true + fileName: podlogs/coredns/coredns-*/coredns.log + outcomes: + - fail: + when: "true" + message: "CoreDNS reported missing nameserver configuration. Ensure /etc/resolv.conf has at least 1 'nameserver' configured" + - pass: + when: "false" + message: "CoreDNS found valid nameserver configuration"