Creating volume-type on primary node
The aim of patch performs cinder states creating
volume type on node which has role "primary".
Change-Id: Ib065e677083e1948c186ea7ebb9874b3bba28c4a
Related-PROD: PROD-21977 (PROD:21977)
diff --git a/cinder/controller.sls b/cinder/controller.sls
index 6ee10e1..fc39ebb 100644
--- a/cinder/controller.sls
+++ b/cinder/controller.sls
@@ -341,6 +341,9 @@
cinderng.volume_type_present:
- name: {{ backend.type_name }}
- profile: {{ credentials }}
+ {%- if controller.get('role', 'primary') == 'secondary' %}
+ - onlyif: /bin/false
+ {%- endif %}
- require:
- service: cinder_controller_services
@@ -350,6 +353,9 @@
- key: volume_backend_name
- value: {{ backend_name }}
- profile: {{ credentials }}
+ {%- if controller.get('role', 'primary') == 'secondary' %}
+ - onlyif: /bin/false
+ {%- endif %}
- require:
- cinderng: cinder_type_create_{{ backend_name }}