diff options
author | Jeff Cantrill <jcantril@redhat.com> | 2017-02-09 10:05:52 -0500 |
---|---|---|
committer | Jeff Cantrill <jcantril@redhat.com> | 2017-02-10 12:15:27 -0500 |
commit | ac23d6fc37dd98be8ad4ecc5a924d482e6e74957 (patch) | |
tree | e07b26b5752c0f9d7a5f784ca4dbc7f53f25f910 | |
parent | 5ee790032dae79a6dd588f53b24932248e00f9ec (diff) | |
download | openshift-ac23d6fc37dd98be8ad4ecc5a924d482e6e74957.tar.gz openshift-ac23d6fc37dd98be8ad4ecc5a924d482e6e74957.tar.bz2 openshift-ac23d6fc37dd98be8ad4ecc5a924d482e6e74957.tar.xz openshift-ac23d6fc37dd98be8ad4ecc5a924d482e6e74957.zip |
bug 1420229. Bounce metrics components to recognize changes on updates or upgrades
-rw-r--r-- | roles/openshift_metrics/tasks/install_metrics.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/openshift_metrics/tasks/install_metrics.yaml b/roles/openshift_metrics/tasks/install_metrics.yaml index 66925c113..66a3abdbd 100644 --- a/roles/openshift_metrics/tasks/install_metrics.yaml +++ b/roles/openshift_metrics/tasks/install_metrics.yaml @@ -34,6 +34,20 @@ file_content: "{{ item.content | b64decode | from_yaml }}" with_items: "{{ object_defs.results }}" +- command: > + {{openshift.common.client_binary}} + --config={{mktemp.stdout}}/admin.kubeconfig + get rc + -l metrics-infra + -o name + -n {{openshift_metrics_project}} + register: existing_metrics_rc + changed_when: no + +- name: Scaling down cluster to recognize changes + include: stop_metrics.yaml + when: "{{ existing_metrics_rc.stdout_lines | length > 0 }}" + - name: Scaling up cluster include: start_metrics.yaml tags: openshift_metrics_start_cluster |