Bug 1371090
| Summary: | Metrics deployment with dynamic volume didn't work well | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Gaoyun Pei <gpei> |
| Component: | Installer | Assignee: | Scott Dodson <sdodson> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Johnny Liu <jialiu> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.3.0 | CC: | aos-bugs, bleanhar, ghuang, jokerman, mmccomas |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-19 13:28:50 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: | |||
|
Comment 1
Brenton Leanhardt
2016-08-29 15:24:10 UTC
https://github.com/openshift/openshift-ansible/pull/2386 still testing this though, I don't have a good setup with AWS/GCE to test thoroughly. Verify this bug with openshift-ansible-3.3.18-1.git.0.a2e63a0.el7.noarch.rpm
When set openshift_hosted_metrics_storage_kind=dynamic in ansible inventory, DYNAMICALLY_PROVISION_STORAGE would be true in metrics deployer command.
TASK [openshift_metrics : Build metrics deployer command] **********************
Wednesday 31 August 2016 01:38:06 +0000 (0:00:02.134) 0:23:38.088 ******
ok: [x.com] => {"ansible_facts": {"deployer_cmd": "oc process -f /usr/share/openshift/examples/infrastructure-templates/enterprise/metrics-deployer.yaml -v HAWKULAR_METRICS_HOSTNAME=hawkular-metrics.x.com,USE_PERSISTENT_STORAGE=true,DYNAMICALLY_PROVISION_STORAGE=true,METRIC_DURATION=7,METRIC_RESOLUTION=10s,IMAGE_PREFIX=x/openshift3/,IMAGE_VERSION=3.3.0,MODE=deploy
...
And the pvc of metrics-cassandra is working well.
[root@ip-172-18-12-156 ~]# oc get pvc
NAME STATUS VOLUME CAPACITY ACCESSMODES AGE
metrics-cassandra-1 Bound pvc-c98ace81-6f1b-11e6-b42f-0eef42a1372f 10Gi RWO 51m
[root@ip-172-18-12-156 ~]# oc get pvc metrics-cassandra-1 -o json
{
"kind": "PersistentVolumeClaim",
"apiVersion": "v1",
"metadata": {
"name": "metrics-cassandra-1",
"namespace": "openshift-infra",
"selfLink": "/api/v1/namespaces/openshift-infra/persistentvolumeclaims/metrics-cassandra-1",
"uid": "c98ace81-6f1b-11e6-b42f-0eef42a1372f",
"resourceVersion": "1138",
"creationTimestamp": "2016-08-31T01:39:41Z",
"labels": {
"metrics-infra": "hawkular-cassandra"
},
"annotations": {
"pv.kubernetes.io/bind-completed": "yes",
"pv.kubernetes.io/bound-by-controller": "yes",
"volume.alpha.kubernetes.io/storage-class": "dynamic"
}
},
"spec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "10Gi"
}
},
"volumeName": "pvc-c98ace81-6f1b-11e6-b42f-0eef42a1372f"
},
"status": {
"phase": "Bound",
"accessModes": [
"ReadWriteOnce"
],
"capacity": {
"storage": "10Gi"
}
}
}
|