Merge "Adds elasticsearch support as a pre-req for the glance-index."

This commit is contained in:
Jenkins 2015-02-11 01:28:36 +00:00 committed by Gerrit Code Review
commit f957b49ede
3 changed files with 9 additions and 2 deletions

View File

@ -27,3 +27,4 @@ libyaml-dev
libffi-dev
libssl-dev # for pyOpenSSL
gettext # used for compiling message catalogs
openjdk-7-jre-headless # NOPRIME

View File

@ -26,3 +26,4 @@ bc
libyaml-devel
gettext # used for compiling message catalogs
net-tools
java-1.7.0-openjdk-headless # NOPRIME

9
lib/glance Normal file → Executable file
View File

@ -70,7 +70,6 @@ GLANCE_REGISTRY_PORT_INT=${GLANCE_REGISTRY_PORT_INT:-19191}
# Tell Tempest this project is present
TEMPEST_SERVICES+=,glance
# Functions
# ---------
@ -308,6 +307,10 @@ function install_glance {
git_clone $GLANCE_REPO $GLANCE_DIR $GLANCE_BRANCH
setup_develop $GLANCE_DIR
if is_service_enabled g-graffiti; then
${TOP_DIR}/pkg/elasticsearch.sh download
${TOP_DIR}/pkg/elasticsearch.sh install
fi
}
# start_glance() - Start running processes, including screen
@ -321,6 +324,9 @@ function start_glance {
run_process g-reg "$GLANCE_BIN_DIR/glance-registry --config-file=$GLANCE_CONF_DIR/glance-registry.conf"
run_process g-api "$GLANCE_BIN_DIR/glance-api --config-file=$GLANCE_CONF_DIR/glance-api.conf"
if is_service_enabled g-graffiti; then
${TOP_DIR}/pkg/elasticsearch.sh start
fi
echo "Waiting for g-api ($GLANCE_HOSTPORT) to start..."
if ! wait_for_service $SERVICE_TIMEOUT $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT; then
die $LINENO "g-api did not start"
@ -334,7 +340,6 @@ function stop_glance {
stop_process g-reg
}
# Restore xtrace
$XTRACE