From 2b9b19265f5280ede3a0b5ede04300ce956254ff Mon Sep 17 00:00:00 2001 From: YAMADA Hideki Date: Thu, 26 May 2016 10:13:18 +0000 Subject: [PATCH] Add support for Glance backend Change-Id: I9481438cd298d593c2f23afb82b5af6372259235 --- .gitreview | 2 +- devstack/plugin.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitreview b/.gitreview index 1c21729..fcd5480 100644 --- a/.gitreview +++ b/.gitreview @@ -1,4 +1,4 @@ [gerrit] host=review.openstack.org port=29418 -project=stackforge/devstack-plugin-sheepdog.git +project=openstack/devstack-plugin-sheepdog.git diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 69e3815..299c82c 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -97,6 +97,13 @@ function configure_cinder_backend_sheepdog { iniset $CINDER_CONF $be_name volume_driver "cinder.volume.drivers.sheepdog.SheepdogDriver" } +function configure_sheepdog_glance { + iniset $GLANCE_API_CONF DEFAULT show_image_direct_url true + iniset $GLANCE_API_CONF sheepdog default_store sheepdog + iniset $GLANCE_API_CONF sheepdog stores file,http,sheepdog + iniset $GLANCE_API_CONF sheepdog sheepdog_store_address 127.0.0.1 +} + if [[ "$1" == "source" ]]; then # Initial source source $TOP_DIR/lib/sheepdog @@ -107,6 +114,7 @@ elif [[ "$1" == "stack" && "$2" == "install" ]]; then elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then echo_summary "Configuring Sheepdog" configure_sheepdog + configure_sheepdog_glance # We need to have Sheepdog started before the main OpenStack components. start_sheepdog