Description of problem: Must-gather output shows "Error from server (NotFound): namespaces" for a few upstream only namespaces Version-Release number of selected component (if applicable): 4.10.0 How reproducible: 100% Steps to Reproduce: 1. Run must gather automated test: test_no_upstream_only_namespaces 2. 3. Actual results: Automation runs this command: oc adm must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8@sha256:e3bb1c448fb13cde927f4b7f4a200de6fab151928722e21aeabba1d127513874 --dest-dir=/tmp/pytest-c687a192-40f1-4651-b512-716f7ddf7bcc/must_gather0 -- gather &> /tmp/pytest-c687a192-40f1-4651-b512-716f7ddf7bcc/must_gather0/output.txt ==================== must-gather-w46bl] POD 2022-02-01T02:32:27.918592620Z Gathering data for ns/openshift-operator-lifecycle-manager... [must-gather-w46bl] POD 2022-02-01T02:32:27.936668107Z Error from server (NotFound): namespaces "cluster-network-addons" not found [must-gather-w46bl] POD 2022-02-01T02:32:27.948967203Z sh -c echo inspecting namespace $1 && oc adm inspect --dest-dir "${BASE_COLLECTION_PATH}" namespace $1 -- openshift-sriov-network-operator [must-gather-w46bl] POD 2022-02-01T02:32:27.955781499Z inspecting namespace openshift-sriov-network-operator [must-gather-w46bl] POD 2022-02-01T02:32:27.955781499Z Gathering data for ns/openshift-marketplace... [must-gather-w46bl] POD 2022-02-01T02:32:28.021425392Z Gathering data for ns/openshift-sdn... [must-gather-w46bl] POD 2022-02-01T02:32:28.029074201Z Gathering data for ns/openshift-cnv... [must-gather-w46bl] POD 2022-02-01T02:32:28.114026713Z Error from server (NotFound): namespaces "openshift-sriov-network-operator" not found [must-gather-w46bl] POD 2022-02-01T02:32:28.118535867Z sh -c echo inspecting namespace $1 && oc adm inspect --dest-dir "${BASE_COLLECTION_PATH}" namespace $1 -- kubevirt-web-ui [must-gather-w46bl] POD 2022-02-01T02:32:28.120699824Z inspecting namespace kubevirt-web-ui [must-gather-w46bl] POD 2022-02-01T02:32:28.323725119Z Error from server (NotFound): namespaces "kubevirt-web-ui" not found ========================= Expected results: Based on resolution of 1831061, no such errors should be displaying Additional info:
Joao, please reach out Nahshon for assistance with this one.
@jvilaca hi. In the gather_ns script make sure that these are the only NS that are collected. Please remove all the rest: "${INSTALLATION_NAMESPACE}" openshift-operator-lifecycle-manager openshift-marketplace openshift-sdn
Verified against CNV-v4.10.1-50. No error message seen for upstream namespaces kubevirt-web-ui, openshift-sriov-network-operator and cluster-network-addons. Automation passed 18:12:05 TEST: TestMustGatherCluster.test_no_upstream_only_namespaces STATUS: PASSED
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 Virtualization 4.10.1 Images security and bug fix 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:4668