Bug 2049990 - must-gather: must-gather is logging errors about upstream only namespaces
Summary: must-gather: must-gather is logging errors about upstream only namespaces
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Logging
Version: 4.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.10.1
Assignee: João Vilaça
QA Contact: Debarati Basu-Nag
URL:
Whiteboard:
Depends On:
Blocks: 2086898
TreeView+ depends on / blocked
 
Reported: 2022-02-03 00:42 UTC by Debarati Basu-Nag
Modified: 2022-05-18 20:27 UTC (History)
5 users (show)

Fixed In Version: hco-bundle-registry-container-v4.10.1-6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2086898 (view as bug list)
Environment:
Last Closed: 2022-05-18 20:26:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt must-gather pull 130 0 None Merged Remove from collection namespaces of plain Kubernetes installations 2022-03-06 08:07:17 UTC
Github kubevirt must-gather pull 131 0 None Merged [release-4.10] Remove from collection namespaces of plain Kubernetes installations 2022-03-06 08:07:17 UTC
Red Hat Product Errata RHSA-2022:4668 0 None None None 2022-05-18 20:27:18 UTC

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


Note You need to log in before you can comment on or make changes to this bug.