Description of problem: when installing the metrics stack, if you dont specify a PVC size, it defaults to 10Gi and provisions just fine. This: ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/openshift-metrics.yml -e openshift_metrics_install_metrics=True -e openshift_metrics_cassandra_storage_type=dynamic Gives you this: pvc-8ec379c3-7f78-11e7-8aea-525400fb09ec 10Gi RWO Delete Bound openshift-infra/metrics-cassandra-1 glusterfs-storage 5m Perfect.... however... This: ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/openshift-logging.yml -e openshift_logging_install_logging=True -e openshift_logging_es_pvc_dynamic=True -e Gives you this: Failed to provision volume with StorageClass "glusterfs-storage": glusterfs: create volume err: error creating volume Invalid volume size. When you add another parameter to explicitly set the PVC size, like this: ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/openshift-logging.yml -e openshift_logging_install_logging=True -e openshift_logging_es_pvc_dynamic=True -e openshift_logging_es_pvc_size=10Gi You get this (a proper install): pvc-6c03818e-7f7a-11e7-af65-525400fb09ec 10Gi RWO Delete Bound logging/logging-es-0 glusterfs-storage 2m There are too many inconsistencies between the metrics and the logging stacks and how they are configured. This ultimately needs to be cleaned up.... -Nick
https://github.com/openshift/openshift-ansible/pull/5184
Fixed in 3.6 with: openshift-ansible/pull/5185
Commits pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/2ad64aeaffa23854ecf96bd903f5a5a9f1284ee0 bug 1480878. Default pvc for logging https://github.com/openshift/openshift-ansible/commit/be513254b49822c18509debbd944437d1f93b162 Merge pull request #5184 from jcantrill/bz1480878_default_logging_pvc_size bug 1480878. Default pvc for logging
Has this been fixed in atomic-openshift-ansible for 3.6 or 3.7? Can we move this to ON_QA?
Using openshift-ansible-3.6.173.0.33., the pvc can be generated without openshift_logging_es_pvc_size. But the fix is in openshift-ansible, and openshift-ansible packages is not https://errata.devel.redhat.com/advisory/30362. We should open a new errata or attach to existing installer errata.
@scott, The fix is in openshift-ansible. could you move this bug to the proper installer errata?
sure
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-2017:2900