diff --git a/files/debs/general b/files/debs/general index e824d239b4..4050191379 100644 --- a/files/debs/general +++ b/files/debs/general @@ -27,3 +27,4 @@ libyaml-dev libffi-dev libssl-dev # for pyOpenSSL gettext # used for compiling message catalogs +openjdk-7-jre-headless # NOPRIME diff --git a/files/rpms/general b/files/rpms/general index 13c8a87780..6f2239196b 100644 --- a/files/rpms/general +++ b/files/rpms/general @@ -26,3 +26,4 @@ bc libyaml-devel gettext # used for compiling message catalogs net-tools +java-1.7.0-openjdk-headless # NOPRIME diff --git a/lib/glance b/lib/glance old mode 100644 new mode 100755 index 0340c21ee0..c5206d489a --- a/lib/glance +++ b/lib/glance @@ -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