aboutsummaryrefslogtreecommitdiff
path: root/docker/glance/glance-api
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2015-11-16 17:53:46 +0000
committerPaul Bourke <paul.bourke@oracle.com>2015-11-17 09:42:39 +0000
commit988c4f23f10b8c844c8a8123187391ab992d1fa7 (patch)
tree79d7b390710f3414f0c355f466f714a202ef8b3d /docker/glance/glance-api
parentac0442a880bb440f7955b548740215617ea23f22 (diff)
downloadkolla-988c4f23f10b8c844c8a8123187391ab992d1fa7.tar.gz
kolla-988c4f23f10b8c844c8a8123187391ab992d1fa7.zip
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
Diffstat (limited to 'docker/glance/glance-api')
-rw-r--r--docker/glance/glance-api/extend_start.sh1
1 files changed, 1 insertions, 0 deletions
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