Bug 1801368

Summary: Fix Prometheus statefulset crash loop on kubernetes v1.17.0
Product: OpenShift Container Platform Reporter: Paul Gier <pgier>
Component: MonitoringAssignee: Paul Gier <pgier>
Status: CLOSED NOTABUG QA Contact: Junqi Zhao <juzhao>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.3.zCC: alegrand, anpicker, erooth, juzhao, kakkoyun, lcosic, mloibl, pkrupa, surbania
Target Milestone: ---   
Target Release: 4.3.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1801358 Environment:
Last Closed: 2020-03-11 07:24:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1801358    
Bug Blocks:    

Description Paul Gier 2020-02-10 18:03:32 UTC
+++ This bug was initially created as a clone of Bug #1801358 +++

Description of problem:
Due to an issue in how Kubernetes v0.17.0 validates PVCs (https://github.com/kubernetes/kubernetes/issues/87583), the prometheus operator could not successfully create prometheus stateful sets (https://github.com/coreos/prometheus-operator/issues/2950).

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

Prometheus operator 0.36.0 and earlier.

How reproducible:

Always happens with certain config in kube 0.17.0

Steps to Reproduce:

Create a prometheus custom resource containing a volumeClaimTemplate containing either the apiVersion or Kind fields set to non-null values.