Add support for Glance backend

Change-Id: I9481438cd298d593c2f23afb82b5af6372259235
This commit is contained in:
YAMADA Hideki 2016-05-26 10:13:18 +00:00
parent 7f031d4019
commit 2b9b19265f
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=stackforge/devstack-plugin-sheepdog.git
project=openstack/devstack-plugin-sheepdog.git

View File

@ -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