Bug 1985082

Summary: namespace of monitoring rbac rules should not be hardcoded
Product: OpenShift Container Platform Reporter: Hemant Kumar <hekumar>
Component: StorageAssignee: Santosh Pillai <sapillai>
Storage sub component: Local Storage Operator QA Contact: Chao Yang <chaoyang>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs, chaoyang, jsafrane
Version: 4.9   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:40:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hemant Kumar 2021-07-22 19:29:16 UTC
If admin installs LSO in any namespace other than openshift-local-storage, the rbac rules we installed will be invalid.

Comment 1 Hemant Kumar 2021-08-27 13:51:49 UTC
*** Bug 1995079 has been marked as a duplicate of this bug. ***

Comment 5 Chao Yang 2021-09-08 09:16:49 UTC
Passed with local-storage-operator.4.9.0-202109071344

Installed LSO in namespace local-storage
oc exec -c diskmaker-discovery diskmaker-discovery-d8tmd -- curl -k -H "Authorization: Bearer $token"  https://10.128.2.14:9393/metrics | grep lso_discovery_disk_count
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6440    0  6440    0     0   273k      0 --:--:-- --:--:-- --:--:--  273k
# HELP lso_discovery_disk_count Total disks discovered by the Local Volume Discovery controller per node
# TYPE lso_discovery_disk_count gauge
lso_discovery_disk_count{nodeName="ip-10-0-148-195.us-east-2.compute.internal"} 5

Comment 7 errata-xmlrpc 2021-10-18 17:40:51 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 Container Platform 4.9.0 bug fix and security 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-2021:3759