Don't monitor Cinder Volume LVs for disk util.
The disk utilisation monitoring will monitor cinder volumes if they are attached to an instance and you run the MaaS play again. We need to avoid this by ensuring that the model of moniitored disks is not 'VIRTUAL-DISK'. Change-Id: I6600e0e3cf8949cde332c1139fe6c9e3b0fa85e8 Closes-Bug: #1524770
This commit is contained in:
parent
9a7b0a4de7
commit
795daa0ec3
|
@ -360,7 +360,7 @@
|
|||
|
||||
- hosts: hosts
|
||||
vars:
|
||||
devices: "[{% for device in ansible_devices.keys()%}{% if device not in maas_excluded_devices|default([]) %}'{{ device }}',{% endif %}{% endfor %}]"
|
||||
devices: "[{% for device in ansible_devices.keys()%}{% if (device not in maas_excluded_devices|default([])) and (ansible_devices[device].model != 'VIRTUAL-DISK') %}'{{ device }}',{% endif %}{% endfor %}]"
|
||||
check_name: disk_utilisation
|
||||
check_details: file={{ check_name }}.py
|
||||
check_period: "{{ maas_check_period }}"
|
||||
|
|
Loading…
Reference in New Issue