diff options
author | Vadim Rutkovsky <vrutkovs@redhat.com> | 2018-02-06 12:57:21 +0100 |
---|---|---|
committer | Vadim Rutkovsky <vrutkovs@redhat.com> | 2018-02-10 10:41:45 +0100 |
commit | cea68953a257477198ac262f3f9c8047e4f39498 (patch) | |
tree | e38888067594e8bfa068e3d1a3530a2e85816477 /roles/openshift_logging_eventrouter | |
parent | f18cfa7897d771cb973b9aa28a90bc3575b56f58 (diff) | |
download | openshift-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_eventrouter')
-rw-r--r-- | roles/openshift_logging_eventrouter/tasks/install_eventrouter.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_logging_eventrouter/tasks/install_eventrouter.yaml b/roles/openshift_logging_eventrouter/tasks/install_eventrouter.yaml index fffdd9f8b..2adc51a16 100644 --- a/roles/openshift_logging_eventrouter/tasks/install_eventrouter.yaml +++ b/roles/openshift_logging_eventrouter/tasks/install_eventrouter.yaml @@ -4,6 +4,13 @@ msg: Invalid sink type "{{openshift_logging_eventrouter_sink}}", only one of "{{__eventrouter_sinks}}" allowed that: openshift_logging_eventrouter_sink in __eventrouter_sinks +- name: Ensure that logging eventrouter has nodes to run on + fail: + msg: |- + No schedulable nodes found matching node selector for logging EventRouter - '{{ openshift_logging_eventrouter_nodeselector }}' + when: + - openshift_schedulable_node_labels | lib_utils_oo_has_no_matching_selector(openshift_logging_eventrouter_nodeselector) + # allow passing in a tempdir - name: Create temp directory for doing work in command: mktemp -d /tmp/openshift-logging-ansible-XXXXXX |