OpenShift Metrics Installation Failed because Heapster and Hawkular were not starting

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Cause

  • Enabled verbose installation.
  • Identified the ReplicationController template files created on the master by Ansible (/tmp/openshift-metrics-ansible-C6Xjkq/templates/metrics-heapster-rc.yaml) - see Installation Troubleshooting.
  • Executed the ResourceController creation by hand:
oc create -f heapster.yaml
The ReplicationController "heapster" is invalid: spec.template.spec.containers[0].resources.limits: Invalid value: "500Mi": must be greater than or equal to memory request
  • The inventory file had silent typing errors:
    • openshift_metrics_heapster_request_memory should have been openshift_metrics_heapster_requests_memory
    • openshift_metrics_heapster_request_cpu should have been openshift_metrics_heapster_requests_cpu
    • etc.