Browse code

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

Jenkins authored on 2015/02/11 10:28:36
Showing 3 changed files
... ...
@@ -27,3 +27,4 @@ libyaml-dev
27 27
 libffi-dev
28 28
 libssl-dev # for pyOpenSSL
29 29
 gettext  # used for compiling message catalogs
30
+openjdk-7-jre-headless  # NOPRIME
... ...
@@ -26,3 +26,4 @@ bc
26 26
 libyaml-devel
27 27
 gettext  # used for compiling message catalogs
28 28
 net-tools
29
+java-1.7.0-openjdk-headless  # NOPRIME
29 30
old mode 100644
30 31
new mode 100755
... ...
@@ -70,7 +70,6 @@ GLANCE_REGISTRY_PORT_INT=${GLANCE_REGISTRY_PORT_INT:-19191}
70 70
 # Tell Tempest this project is present
71 71
 TEMPEST_SERVICES+=,glance
72 72
 
73
-
74 73
 # Functions
75 74
 # ---------
76 75
 
... ...
@@ -308,6 +307,10 @@ function install_glance {
308 308
 
309 309
     git_clone $GLANCE_REPO $GLANCE_DIR $GLANCE_BRANCH
310 310
     setup_develop $GLANCE_DIR
311
+    if is_service_enabled g-graffiti; then
312
+        ${TOP_DIR}/pkg/elasticsearch.sh download
313
+        ${TOP_DIR}/pkg/elasticsearch.sh install
314
+    fi
311 315
 }
312 316
 
313 317
 # start_glance() - Start running processes, including screen
... ...
@@ -321,6 +324,9 @@ function start_glance {
321 321
     run_process g-reg "$GLANCE_BIN_DIR/glance-registry --config-file=$GLANCE_CONF_DIR/glance-registry.conf"
322 322
     run_process g-api "$GLANCE_BIN_DIR/glance-api --config-file=$GLANCE_CONF_DIR/glance-api.conf"
323 323
 
324
+    if is_service_enabled g-graffiti; then
325
+        ${TOP_DIR}/pkg/elasticsearch.sh start
326
+    fi
324 327
     echo "Waiting for g-api ($GLANCE_HOSTPORT) to start..."
325 328
     if ! wait_for_service $SERVICE_TIMEOUT $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT; then
326 329
         die $LINENO "g-api did not start"
... ...
@@ -334,7 +340,6 @@ function stop_glance {
334 334
     stop_process g-reg
335 335
 }
336 336
 
337
-
338 337
 # Restore xtrace
339 338
 $XTRACE
340 339