Bug 1951505

Summary: Remove deprecated techPreviewUserWorkload field from CMO's configmap
Product: OpenShift Container Platform Reporter: Damien Grisonnet <dgrisonn>
Component: MonitoringAssignee: Damien Grisonnet <dgrisonn>
Status: CLOSED ERRATA QA Contact: hongyan li <hongyli>
Severity: low Docs Contact:
Priority: medium    
Version: 4.8CC: alegrand, anpicker, erooth, hongyli, juzhao, kakkoyun, lcosic, pkrupa
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Removed functionality
Doc Text:
Remove deprecated techPreviewUserWorkload in favor of enableUserWorkload.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:02:11 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 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