Bug 1480878 - Metrics deploys without specifying a PVC size, Logging does not....
Metrics deploys without specifying a PVC size, Logging does not....
Status: NEW
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jeff Cantrill
Xia Zhao
Depends On:
  Show dependency treegraph
Reported: 2017-08-12 12:31 EDT by Nicholas Nachefski
Modified: 2017-08-12 12:31 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nicholas Nachefski 2017-08-12 12:31:36 EDT
Description of problem:

when installing the metrics stack, if you dont specify a PVC size, it defaults to 10Gi and provisions just fine.

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...


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....


Note You need to log in before you can comment on or make changes to this bug.