Bug 1684352

Summary: [Monitoring] statefulset prometheus-k8s/alertmanager-main should not use default for creationTimestamp/status after attaching PVs
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: RFEAssignee: Christian Heidenreich <cvogel>
Status: CLOSED NOTABUG QA Contact: Xiaoli Tian <xtian>
Severity: low Docs Contact:
Priority: low    
Version: 4.1.0CC: aos-bugs, cvogel, erooth, fbranczy, jokerman, minden, mloibl, mmccomas, surbania
Target Milestone: ---Keywords: RFE
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-21 09:53:00 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 2019-03-01 03:33:35 UTC
Description of problem:
This RFE is from https://bugzilla.redhat.com/show_bug.cgi?id=1679500#c8
after attaching PVs for cluster monitoring, statefulset prometheus-k8s/alertmanager-main use default time for creationTimestamp/status after attaching PVs, see below, default creationTimestamp is 1970-01-01T00:00:00Z, default phase is phase: Pending

# oc -n openshift-monitoring get statefulset prometheus-k8s -oyaml | grep -i pending -B14
    type: RollingUpdate
  volumeClaimTemplates:
  - metadata:
      creationTimestamp: 1970-01-01T00:00:00Z
      name: prometheus-k8s-db
    spec:
      accessModes:
      - ReadWriteOnce
      dataSource: null
      resources:
        requests:
          storage: 4Gi
      storageClassName: gp2
    status:
      phase: Pending

Version-Release number of selected component (if applicable):
4.0.0-0.nightly-2019-02-27-213933

How reproducible:
Always

Steps to Reproduce:
1. Attach PV for cluster monitoring and check statefulset prometheus-k8s/alertmanager-main info
2.
3.

Actual results:
statefulset prometheus-k8s/alertmanager-main use default for creationTimestamp/status after attaching PVs

Expected results:
creationTimestamp should be the PV creation time
status should be phase: Bound

Additional info: