@@ -7,7 +7,7 @@ glance_services:
77 enabled : true
88 image : " {{ glance_api_image_full }}"
99 environment : " {{ glance_api_container_proxy }}"
10- privileged : " {{ enable_cinder | bool and (enable_cinder_backend_iscsi | bool or cinder_backend_ceph | bool) }}"
10+ privileged : " {{ glance_api_privileged | bool }}"
1111 volumes : " {{ glance_api_default_volumes + glance_api_extra_volumes }}"
1212 dimensions : " {{ glance_api_dimensions }}"
1313 healthcheck : " {{ glance_api_healthcheck }}"
@@ -181,9 +181,8 @@ glance_api_default_volumes:
181181 - " {{ kolla_dev_repos_directory ~ '/glance:/dev-mode/glance' if glance_dev_mode | bool else '' }}"
182182 - " kolla_logs:/var/log/kolla/"
183183 - " {{ '/dev/shm:/dev/shm' }}"
184- # NOTE(yoctozepto): below to support Cinder iSCSI backends
185184 - " {% if enable_cinder | bool and enable_cinder_backend_iscsi | bool %}iscsi_info:/etc/iscsi{% endif %}"
186- - " {% if enable_cinder | bool and enable_cinder_backend_iscsi | bool %}/dev:/dev{% endif %}"
185+ - " {% if glance_api_privileged | bool %}/dev:/dev{% endif %}"
187186
188187glance_extra_volumes : " {{ default_extra_volumes }}"
189188glance_api_extra_volumes : " {{ glance_extra_volumes }}"
@@ -240,6 +239,12 @@ glance_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
240239glance_dev_mode : " {{ kolla_dev_mode }}"
241240glance_source_version : " {{ kolla_source_version }}"
242241
242+ # iSCSI and VAST NVME-over-TCP need access to the real /dev fs.
243+ glance_api_privileged : " {{ (enable_cinder | bool) and
244+ (enable_cinder_backend_iscsi | bool or
245+ cinder_backend_ceph | bool or
246+ enable_cinder_backend_vast | bool) }}"
247+
243248# ##################
244249# Glance cache
245250# ##################
0 commit comments