summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging_mux
diff options
context:
space:
mode:
authorVadim Rutkovsky <vrutkovs@redhat.com>2018-02-06 12:57:21 +0100
committerVadim Rutkovsky <vrutkovs@redhat.com>2018-02-10 10:41:45 +0100
commitcea68953a257477198ac262f3f9c8047e4f39498 (patch)
treee38888067594e8bfa068e3d1a3530a2e85816477 /roles/openshift_logging_mux
parentf18cfa7897d771cb973b9aa28a90bc3575b56f58 (diff)
downloadopenshift-cea68953a257477198ac262f3f9c8047e4f39498.tar.gz
openshift-cea68953a257477198ac262f3f9c8047e4f39498.tar.bz2
openshift-cea68953a257477198ac262f3f9c8047e4f39498.tar.xz
openshift-cea68953a257477198ac262f3f9c8047e4f39498.zip
Verify that requested services have schedulable nodes matching the selectors
Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
Diffstat (limited to 'roles/openshift_logging_mux')
-rw-r--r--roles/openshift_logging_mux/tasks/main.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_logging_mux/tasks/main.yaml b/roles/openshift_logging_mux/tasks/main.yaml
index b2699b285..c061f6766 100644
--- a/roles/openshift_logging_mux/tasks/main.yaml
+++ b/roles/openshift_logging_mux/tasks/main.yaml
@@ -7,6 +7,13 @@
msg: Operations logs destination is required
when: not openshift_logging_mux_ops_host or openshift_logging_mux_ops_host == ''
+- name: Ensure that logging mux has nodes to run on
+ fail:
+ msg: |-
+ No schedulable nodes found matching node selector for logging mux - '{{ openshift_logging_mux_nodeselector }}'
+ when:
+ - openshift_schedulable_node_labels | lib_utils_oo_has_no_matching_selector(openshift_logging_mux_nodeselector)
+
- name: Set default image variables based on openshift_deployment_type
include_vars: "{{ var_file_name }}"
with_first_found: