Bug 1951505 - Remove deprecated techPreviewUserWorkload field from CMO's configmap
Summary: Remove deprecated techPreviewUserWorkload field from CMO's configmap
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.8
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.8.0
Assignee: Damien Grisonnet
QA Contact: hongyan li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-20 09:56 UTC by Damien Grisonnet
Modified: 2021-07-27 23:02 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Removed functionality
Doc Text:
Remove deprecated techPreviewUserWorkload in favor of enableUserWorkload.
Clone Of:
Environment:
Last Closed: 2021-07-27 23:02:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-monitoring-operator pull 1126 0 None open Bug 1951505: Remove deprecated techPreviewUserWorkload 2021-04-20 09:58:13 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:02:26 UTC

Description Damien Grisonnet 2021-04-20 09:56:27 UTC
Description of problem:

The techPreviewUserWorkload field in CMO's configmap still allow users to configure user-workload-monitoring despite being deprecated since 4.6 and scheduled for removal in 4.8.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Junqi Zhao 2021-04-21 02:13:01 UTC
reproduced with 4.8.0-0.nightly-2021-04-20-135853, no resources created under openshift-user-workload-monitoring and could see the warning info in CMO pod
*********************
apiVersion: v1
kind: ConfigMap
metadata:
  name: cluster-monitoring-config
  namespace: openshift-monitoring
data:
  config.yaml: |
    techPreviewUserWorkload:
      enabled: true
*********************
# oc -n openshift-user-workload-monitoring get all
No resources found in openshift-user-workload-monitoring namespace.

# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep cluster-monitoring-operator | awk '{print $1}') -c cluster-monitoring-operator | grep techPreviewUserWorkload
W0421 02:01:09.013026       1 operator.go:605] User Workload Monitoring enabled via the deprecated 'techPreviewUserWorkload' setting in "openshift-monitoring/cluster-monitoring-config" configmap. Use the 'enableUserWorkload' setting instead.

Comment 4 Junqi Zhao 2021-04-21 02:27:35 UTC
checked with 4.8.0-0.nightly-2021-04-20-195442
# oc -n openshift-user-workload-monitoring get all
No resources found in openshift-user-workload-monitoring namespace.
# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep cluster-monitoring-operator | awk '{print $1}') -c cluster-monitoring-operator | grep techPreviewUserWorkload

Comment 7 errata-xmlrpc 2021-07-27 23:02:11 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.8.2 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:2438


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