Bug 2065577
| Summary: | user with user-workload-monitoring-config-edit role can not create user-workload-monitoring-config configmap | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Junqi Zhao <juzhao> |
| Component: | Monitoring | Assignee: | Joao Marcal <jmarcal> |
| Status: | CLOSED ERRATA | QA Contact: | Junqi Zhao <juzhao> |
| Severity: | low | Docs Contact: | Brian Burt <bburt> |
| Priority: | medium | ||
| Version: | 4.10 | CC: | amuller, anpicker, bburt, spasquie |
| Target Milestone: | --- | ||
| Target Release: | 4.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Before this update, when user-workload-monitoring was enabled the user-workload-monitoring-config configmap would not be created by default this caused a user with user-workload-monitoring-config-edit role to not be able to configure UWM or create it. With this update, the configmap user-workload-monitoring-config is now created by default which resolves the issue.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-10 10:54:40 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: | |||
|
Description
Junqi Zhao
2022-03-18 08:59:23 UTC
# oc -n openshift-user-workload-monitoring get role user-workload-monitoring-config-edit -oyaml apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: creationTimestamp: "2022-03-17T23:19:13Z" name: user-workload-monitoring-config-edit namespace: openshift-user-workload-monitoring resourceVersion: "8704" uid: 6455ea58-4ffb-43d2-ac34-5ac2bbbc43dd rules: - apiGroups: - "" resourceNames: - user-workload-monitoring-config resources: - configmaps verbs: - '*' It makes senses since the create operation can't target a specific resource. One option would be for CMO to create an empty user-workload-monitoring-config-edit configmap if none exists. We can also scope down the "user-workload-monitoring-config" role to allow only "patch", "get", "list", watch" and "update" verbs. 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 (Important: OpenShift Container Platform 4.11.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-2022:5069 |