Bug 1895329

Summary: The infra index filled with warnings "WARNING: kubernetes.io/cinder built-in volume provider is now deprecated. The Cinder volume provider is deprecated and will be removed in a future release"
Product: OpenShift Container Platform Reporter: Saurabh Sadhale <ssadhale>
Component: StorageAssignee: Jan Safranek <jsafrane>
Storage sub component: Kubernetes QA Contact: Wei Duan <wduan>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aos-bugs, eparis, jokerman, jsafrane, piqin
Version: 4.5Keywords: Reopened
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1933624 (view as bug list) Environment:
Last Closed: 2021-02-24 15:31:26 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:
Bug Depends On:    
Bug Blocks: 1933624    

Description Saurabh Sadhale 2020-11-06 11:14:14 UTC
Description of problem:
The infra index is filled with WARNING messages as follows: 

WARNING: kubernetes.io/cinder built-in volume provider is now deprecated. The Cinder volume provider is deprecated and will be removed in a future release


Environment:
OCP 4.5.16 on OSP

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


How reproducible:
Always

Steps to Reproduce:
1. Install ClusterLogging on OSP
2. Check the infra index 

$ oc-es-exec es_util '--query=infra-indexname/_count?q=message:The+Cinder+volume+provider+is+deprecated+and+will+be+removed+in+a+future' | jq .count -r

111833647

Actual results:
The index has almost 20% lines with those log lines. It creates a lot of noise.

Expected results:
The warning messages should be removed as it creates issues when analyzing the logs via Kibana.

Additional info:

Comment 1 Jeff Cantrill 2020-11-06 15:06:49 UTC
This is not a logging bug but a log entry that was collected by the logging system.

Comment 4 Jan Safranek 2020-11-20 13:27:41 UTC
Upstream PR to log the warning only once per process: https://github.com/kubernetes/kubernetes/pull/96751

Comment 5 Jan Safranek 2020-12-04 15:00:35 UTC
Waiting for upstream to un-freeze

Comment 7 Wei Duan 2021-01-08 08:43:11 UTC
Verified pass on 4.7.0-0.nightly-2021-01-07-181010

Currently, we can see once at the begining of the kcm log: 
$ oc -n openshift-kube-controller-manager logs kube-controller-manager-wduan-0108a-mwgzt-master-1 | grep "is now deprecated"
W0108 03:01:01.575451       1 plugins.go:105] WARNING: openstack built-in cloud provider is now deprecated. Please use 'external' cloud provider for openstack: https://github.com/kubernetes/cloud-provider-openstack

Comment 13 errata-xmlrpc 2021-02-24 15:31:26 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.7.0 security, bug fix, and enhancement 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-2020:5633