From 988c4f23f10b8c844c8a8123187391ab992d1fa7 Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Mon, 16 Nov 2015 17:53:46 +0000 Subject: Fix issues in Glance filesystem backend The drop root change for Glance highlighted the fact that we were binding volumes from glance_data into the wrong container - it was glance_registry whereas it should be glance_api. This would result in all images being lost if the glance_api container happens to restart. Also, we need a sudoers file to chown the file backend dir to the glance user. Change-Id: If04337045bb94b3126e48d1f5bf0ea29e20373ae Closes-Bug: #1516729 --- docker/glance/glance-api/extend_start.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'docker/glance/glance-api') diff --git a/docker/glance/glance-api/extend_start.sh b/docker/glance/glance-api/extend_start.sh index 6f3cab830..4b99201c9 100644 --- a/docker/glance/glance-api/extend_start.sh +++ b/docker/glance/glance-api/extend_start.sh @@ -4,5 +4,6 @@ # of the KOLLA_BOOTSTRAP variable being set, including empty. if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then glance-manage db_sync + sudo chown -R glance: /var/lib/glance/ exit 0 fi -- cgit v1.2.3