csi_driver / cinder: implement rescan-on-resize variable via (#8057)

cinder_csi_rescan_on_resize
This commit is contained in:
Rene Luria 2021-10-11 11:14:40 +02:00 committed by GitHub
parent 9ffe5940fe
commit ef4044b62f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -18,3 +18,11 @@ cinder_cacert: "{{ lookup('env','OS_CACERT') }}"
# For now, only Cinder v3 is supported in Cinder CSI driver # For now, only Cinder v3 is supported in Cinder CSI driver
cinder_blockstorage_version: "v3" cinder_blockstorage_version: "v3"
cinder_csi_controller_replicas: 1 cinder_csi_controller_replicas: 1
# Optional. Set to true, to rescan block device and verify its size before expanding
# the filesystem.
# Not all hypervizors have a /sys/class/block/XXX/device/rescan location, therefore if
# you enable this option and your hypervizor doesn't support this, you'll get a warning
# log on resize event. It is recommended to disable this option in this case.
# Defaults to false
# cinder_csi_rescan_on_resize: true

View file

@ -39,3 +39,6 @@ ignore-volume-az={{ cinder_csi_ignore_volume_az | bool }}
{% if node_volume_attach_limit is defined and node_volume_attach_limit != "" %} {% if node_volume_attach_limit is defined and node_volume_attach_limit != "" %}
node-volume-attach-limit="{{ node_volume_attach_limit }}" node-volume-attach-limit="{{ node_volume_attach_limit }}"
{% endif %} {% endif %}
{% if cinder_csi_rescan_on_resize is defined %}
rescan-on-resize={{ cinder_csi_rescan_on_resize | bool }}
{% endif %}