Glance: Ensure nfs is mounted before starting glance-api

The glance-api service requires that access to NFS backend is ready
before the service is started. This adds systemd service dependency to
enforce that ordering.

Closes-Bug: #1977991
Depends-on: https://review.opendev.org/c/openstack/tripleo-ansible/+/839295
Change-Id: Ic4f596a9489d6b9923f55c987e107d33ebb710e7
This commit is contained in:
Takashi Kajinami 2022-06-09 02:18:52 +09:00
parent e30c94f760
commit 88e510415f
1 changed files with 6 additions and 0 deletions

View File

@ -787,6 +787,12 @@ outputs:
net: host
privileged: {if: [cinder_backend_enabled, true, false]}
restart: always
depends_on:
if:
- or:
- {get_param: GlanceNfsEnabled}
- {get_param: GlanceNetappNfsEnabled}
- var-lib-glance-images.mount
healthcheck:
test: /openstack/healthcheck
volumes: *glance_volumes