-{%- from "cinder/map.jinja" import controller with context %}
-{%- if controller.get('enabled', False) and controller.get('osapi') %}
-{%- set protocol = controller.get('identity', {}).get('protocol', 'http') %}
+{%- from "cinder/map.jinja" import controller, volume with context %}
+{%- if (controller.get('enabled', False) and controller.get('osapi')) or volume.get('enabled', False) %}
agent:
input:
+ {%- if controller.get('enabled', False) and controller.get('osapi') %}
+ {%- set protocol = controller.get('identity', {}).get('protocol', 'http') %}
http_response:
cinder-api:
address: "{{ protocol }}://{{ controller.osapi.host|replace('0.0.0.0', '127.0.0.1') }}:8776/"
expected_code: {% if controller.version in ('juno', 'kilo', 'liberty') %}200{% else %}300{% endif %}
+ {%- endif %}
+ {%- if volume.get('enabled', False) %}
+ procstat:
+ process:
+ cinder-volume:
+ pattern: cinder-volume
+ {%- endif %}
{%- endif %}