Bug 2049990

Summary: must-gather: must-gather is logging errors about upstream only namespaces
Product: Container Native Virtualization (CNV) Reporter: Debarati Basu-Nag <dbasunag>
Component: LoggingAssignee: João Vilaça <jvilaca>
Status: CLOSED ERRATA QA Contact: Debarati Basu-Nag <dbasunag>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.10.0CC: cnv-qe-bugs, jvilaca, kmajcher, nunnatsa, stirabos
Target Milestone: ---   
Target Release: 4.10.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hco-bundle-registry-container-v4.10.1-6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2086898 (view as bug list) Environment:
Last Closed: 2022-05-18 20:26:57 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:
Bug Depends On:    
Bug Blocks: 2086898    

Description Debarati Basu-Nag 2022-02-03 00:42:00 UTC
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:

Comment 1 Krzysztof Majcher 2022-02-16 11:35:09 UTC
Joao, please reach out Nahshon for assistance with this one.

Comment 2 Nahshon Unna-Tsameret 2022-03-02 12:39:48 UTC
@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

Comment 3 Debarati Basu-Nag 2022-04-05 22:18:34 UTC
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

Comment 9 errata-xmlrpc 2022-05-18 20:26:57 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 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