Bug 1610569
| Summary: | Hawkular Metrics not using gluster | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Christian Hernandez <chernand> | ||||||||
| Component: | Hawkular | Assignee: | Ruben Vargas Palma <rvargasp> | ||||||||
| Status: | CLOSED NOTABUG | QA Contact: | Junqi Zhao <juzhao> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 3.10.0 | CC: | aos-bugs, jokerman, juzhao, mmccomas, rvargasp, sankarshan | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | 3.10.z | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2018-08-03 16:17:25 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: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 1471949 [details]
Playbook run with openshift_metrics_cassandra_storage_class_name var
Created attachment 1471950 [details]
Playbook run with openshift_metrics_cassandra_pvc_storage_class_name var
Hi Christian, In your inventory file, you need to set the variable "openshift_metrics_cassandra_storage_type" to "pv" if you want to set a class on the Cassandra PVC. The default value for that variable is "emptyDir", which is a non-persistent installation. Also, the correct name for the the pvc class variable is "openshift_metrics_cassandra_pvc_storage_class_name", not "openshift_metrics_cassandra_storage_class_name". there is probably a mistake in the documentation. This could also be caused by this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1600397, but you should still needs to set "openshift_metrics_cassandra_storage_type" to "pv". Okay...testing this config worked for me as expected
```
# Metrics
openshift_metrics_install_metrics=true
openshift_metrics_cassandra_pvc_size=20Gi
openshift_metrics_cassandra_storage_type=dynamic
openshift_metrics_cassandra_pvc_storage_class_name=glusterfs-storage-block
openshift_metrics_hawkular_nodeselector={'node-role.kubernetes.io/infra':'true'}
openshift_metrics_heapster_nodeselector={'node-role.kubernetes.io/infra':'true'}
openshift_metrics_cassandra_nodeselector={'node-role.kubernetes.io/infra':'true'}
```
Good to hear that. So this is not a bug but an expected behavior, Can we close this BZ? Yes you can close this bug |
Created attachment 1471948 [details] my ansible hosts file Description of problem: When installing; the installer does not use the gluster volumes as specified. The installer instead sets up an "emptyDir" Version-Release number of the following components: ``` [root@master1 ~]# rpm -q openshift-ansible openshift-ansible-3.10.21-1.git.0.6446011.el7.noarch [root@master1 ~]# rpm -q ansible ansible-2.4.6.0-1.el7ae.noarch [root@master1 ~]# ansible --version ansible 2.4.6.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] ``` How reproducible: Always Steps to Reproduce: 1. Run the installer (/usr/share/ansible/openshift-ansible/playbooks/deploy_cluster.yml) or the Metrics installer (/usr/share/ansible/openshift-ansible/playbooks/openshift-metrics/config.yml) With either... ``` openshift_metrics_install_metrics=true openshift_metrics_cassandra_pvc_size=20i openshift_metrics_cassandra_pvc_storage_class_name=glusterfs-storage-block openshift_metrics_hawkular_nodeselector={'node-role.kubernetes.io/infra':'true'} openshift_metrics_heapster_nodeselector={'node-role.kubernetes.io/infra':'true'} openshift_metrics_cassandra_nodeselector={'node-role.kubernetes.io/infra':'true'} ``` OR ``` openshift_metrics_install_metrics=true openshift_metrics_cassandra_pvc_size=20i openshift_metrics_cassandra_storage_class_name=glusterfs-storage-block openshift_metrics_hawkular_nodeselector={'node-role.kubernetes.io/infra':'true'} openshift_metrics_heapster_nodeselector={'node-role.kubernetes.io/infra':'true'} openshift_metrics_cassandra_nodeselector={'node-role.kubernetes.io/infra':'true'} ``` 2. Wait for the installer to finish 3. See metrics come up without storage Actual results: No Persistant Volume ``` [root@master1 ~]# oc get pods NAME READY STATUS RESTARTS AGE hawkular-cassandra-1-9cqm2 1/1 Running 0 25s hawkular-metrics-k7kf2 0/1 Terminating 0 39s hawkular-metrics-q4w8q 0/1 Running 0 24s hawkular-metrics-schema-n4hfl 1/1 Running 0 41s heapster-cgv49 0/1 Terminating 0 47s heapster-xjztf 0/1 Running 0 22s [root@master1 ~]# oc get pvc No resources found. [root@master1 ~]# oc get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE pvc-ce773553-9512-11e8-8530-5254006ef936 20Gi RWO Delete Bound openshift-logging/logging-es-0 glusterfs-storage-block 1h registry-volume 25Gi RWX Retain Bound default/registry-claim 1h `` Expected results: Hawkular Metrics using the specified storageclass Additional info: Please attached logs from ansible-playbook with the -vvv flag Also attached my hosts file