New test for Ceph Operations
PROD-35900
Change-Id: I34cdad3f6a9b6c89cfde6792b74e393fad7d49b6
diff --git a/tcp_tests/templates/shared-salt.yaml b/tcp_tests/templates/shared-salt.yaml
index 259cbf9..247e7fd 100644
--- a/tcp_tests/templates/shared-salt.yaml
+++ b/tcp_tests/templates/shared-salt.yaml
@@ -828,9 +828,36 @@
node_name: {{ HOSTNAME_CFG01 }}
retry: {count: 1, delay: 5}
skip_fail: true
+
{%- endmacro %}
+
+{%- macro DISABLE_EMPTY_NODE() %}
+{#######################################}
+{%- for ssh in config.underlay.ssh %}
+ {%- set none_roles = [] %}
+ {%- for role in ssh['roles'] %}
+ {%- if role == "none" %}
+ {%- set _ = none_roles.append(role) %}
+ {%- endif %}
+ {%- endfor %}
+
+ {%- if none_roles %}
+- description: Move non-product node out of Salt Cluster ( {{ ssh['node_name'] }} )
+ cmd: |
+ set -ex;
+ # Use salt-key -a {{ ssh['node_name'] }} --include-all -y command to return node back
+ salt-key -r {{ ssh['node_name'] }} --include-all -y
+ node_name: {{ HOSTNAME_CFG01 }}
+ retry: { count: 1, delay: 5 }
+ skip_fail: true
+ {%- endif %}
+{%- endfor %}
+{%- endmacro %}
+
+
+
{%- macro MACRO_INSTALL_FORMULAS(FORMULA_SERVICES='') %}
{#######################################################}
- description: Install salt formulas