Description of problem: By default, when openshift_metrics_cassandra_storage_type=dynamic, the metrics will use the default storageclass. There is no way to deploy metrics with non-default storage class. It is better to use an inventory variable to specify the storageclass. The candiate variables are openshift_metrics_cassandra_storage_type=storageclassname, openshift_metrics_cassandra_storage_class=storageclassname Version-Release number of selected component (if applicable): 3.7 How reproducible: Always Steps to Reproduce: 1) There are multiple storageclass, try to deploy metrics with non-default storageclass. Actual results: The openshift-admin must change the default storageclass before deploy metrics Expected results: There are some variables to specify the storageclass name
@Matt, Could we fix it in v3.7.z?
@anli: we could fix it in v3.7.z, this should be a fairly simple change to how ansible does things @snegrea: will you have time to look into this soon?
*** Bug 1561799 has been marked as a duplicate of this bug. ***
There's an undocumented variable to tell it what storage class to use: openshift_metrics_cassanda_pvc_storage_class_name . https://github.com/openshift/openshift-ansible/blob/master/roles/openshift_metrics/tasks/generate_cassandra_pvcs.yaml#L44
Also note the variable name is spelled 'openshift_metrics_cassanda_pvc_storage_class_name' in the code, it should probably be changed to 'openshift_metrics_cassandra_pvc_storage_class_name' with the corrected spelling of 'cassandra' .
Commits pushed to master at https://github.com/openshift/openshift-docs https://github.com/openshift/openshift-docs/commit/cee64799b583a29cb14bdeb1ed3efba9c287fa21 Bug 1522388 Add openshift_metrics_cassandra_storage_class_name variable and description https://github.com/openshift/openshift-docs/commit/4eaaf7bf6034259eb6d1adda21d406ecc0e5bcab Merge pull request #10045 from bmcelvee/BZ1522388 Bug 1522388 Add openshift_metrics_cassandra_storage_class_name variable and description
@john, Yes, It is doc issue.