Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Glance: Ensure nfs is mounted before starting glance-api
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kajinamit committed Nov 21, 2022
1 parent e30c94f commit 88e5104
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deployment/glance/glance-api-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88e5104

Please sign in to comment.