Fix glance-api failed to start privsep daemon

When cinder_backend_ceph is set to true, privileged is needed
for glance-api.

Change-Id: I92c2744d2475924ef3a2c7ae6cea7e44461de424
Partial-Bug: #2024541
This commit is contained in:
Xing Zhang 2023-06-25 11:32:24 +08:00
parent 1e9f19aa6b
commit 70c57d3307
No known key found for this signature in database
GPG Key ID: 43F80E57B910E3B0
2 changed files with 8 additions and 1 deletions

View File

@ -7,7 +7,7 @@ glance_services:
enabled: true
image: "{{ glance_api_image_full }}"
environment: "{{ glance_api_container_proxy }}"
privileged: "{{ enable_cinder | bool and enable_cinder_backend_iscsi | bool }}"
privileged: "{{ enable_cinder | bool and (enable_cinder_backend_iscsi | bool or cinder_backend_ceph | bool) }}"
volumes: "{{ glance_api_default_volumes + glance_api_extra_volumes }}"
dimensions: "{{ glance_api_dimensions }}"
healthcheck: "{{ glance_api_healthcheck }}"

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes glance-api failed to start privsep daemon when
cinder_backend_ceph is set to true.
See `LP#2024541 <https://launchpad.net/bugs/2024541>`__
for more details.