Bug 1732154

Summary: Elasticsearch PVC's are missing storage-class when logging deployed with glusterfs persistence options
Product: OpenShift Container Platform Reporter: Luke Stanton <lstanton>
Component: LoggingAssignee: Jeff Cantrill <jcantril>
Status: CLOSED ERRATA QA Contact: Anping Li <anli>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: aos-bugs, mnunes, nnosenzo, rmeggins
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: openshift_logging_es_pvc_dynamic not being passed to role during pvc generation Consequence: template was not receiving storage class Fix: explicitly pass openshift_logging_es_pvc_dynamic Result: template gets storage class value and pvc is correctly generated
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-03 15:56:03 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 Luke Stanton 2019-07-22 19:38:36 UTC
Description of problem:

When deploying logging and specifying gluster as the dynamic storage provider, generated PVC's are missing storage-class.


Version-Release number of the following components:

* openshift-ansible-3.11.123
* ansible-2.6


How reproducible: Consistently


Steps to Reproduce:
1. Deploy logging using glusterfs dynamic storage for persistence

# +++++++++++++++++++++++
# Cluster Logging
# ++++++++++++++++++++++++
openshift_logging_install_logging: true
openshift_logging_es_cluster_size: 3
openshift_logging_elasticsearch_storage_type: pvc
openshift_logging_es_pvc_storage_class_name: glusterfs-registry
openshift_logging_es_pvc_size: 20Gi
openshift_logging_es_pvc_dynamic: true
openshift_logging_es_number_of_shards: 3
openshift_logging_es_number_of_replicas: 1
openshift_logging_es_nodeselector: {node-role.kubernetes.io/infra: "true"}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Actual results:

Playbook runs successfully. However, Elasticsearch PVC's are missing gluster storage-class reference, even though it was specified in the Ansible variables:

$ oc get pvc
NAME           STATUS    VOLUME    CAPACITY   ACCESS MODES   STORAGECLASS   AGE
logging-es-0   Pending                                                      1d
logging-es-1   Pending                                                      1d
logging-es-2   Pending                                                      1d


Expected results:

Elasticsearch PVC's would correctly reference gluster storage-class and bind automatically.

Comment 1 Jeff Cantrill 2019-08-05 20:22:25 UTC
*** Bug 1737605 has been marked as a duplicate of this bug. ***

Comment 3 Jeff Cantrill 2019-08-27 16:41:22 UTC
*** Bug 1745983 has been marked as a duplicate of this bug. ***

Comment 4 Anping Li 2019-08-28 08:34:48 UTC
The pvc can be create when use none default sc. Move to verified.
openshift3/ose-ansible:v3.11.

[311]$ oc get pvc
NAME           STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS      AGE
logging-es-0   Bound    pvc-e7ddf6b8-c96d-11e9-8b2f-0edabec3cc80   10Gi       RWO            bogus-glusterfs   4m
logging-es-1   Bound    pvc-0a0dce92-c96e-11e9-8b2f-0edabec3cc80   10Gi       RWO            bogus-glusterfs   3m
[311]$ oc get sc
NAME              PROVISIONER             AGE
bogus-glusterfs   kubernetes.io/aws-ebs   27m
gp2 (default)     kubernetes.io/aws-ebs   15m

Comment 6 errata-xmlrpc 2019-09-03 15:56:03 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, 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/RHBA-2019:2580