The g-search service was promoted to its own project and it's now called
Searchlight. This patch removes that code from devstack.
Change-Id: I9dd7ce62f0339911e025329b8a841792219ea02b
| ... | ... |
@@ -49,10 +49,8 @@ GLANCE_CONF_DIR=${GLANCE_CONF_DIR:-/etc/glance}
|
| 49 | 49 |
GLANCE_METADEF_DIR=$GLANCE_CONF_DIR/metadefs |
| 50 | 50 |
GLANCE_REGISTRY_CONF=$GLANCE_CONF_DIR/glance-registry.conf |
| 51 | 51 |
GLANCE_API_CONF=$GLANCE_CONF_DIR/glance-api.conf |
| 52 |
-GLANCE_SEARCH_CONF=$GLANCE_CONF_DIR/glance-search.conf |
|
| 53 | 52 |
GLANCE_REGISTRY_PASTE_INI=$GLANCE_CONF_DIR/glance-registry-paste.ini |
| 54 | 53 |
GLANCE_API_PASTE_INI=$GLANCE_CONF_DIR/glance-api-paste.ini |
| 55 |
-GLANCE_SEARCH_PASTE_INI=$GLANCE_CONF_DIR/glance-search-paste.ini |
|
| 56 | 54 |
GLANCE_CACHE_CONF=$GLANCE_CONF_DIR/glance-cache.conf |
| 57 | 55 |
GLANCE_POLICY_JSON=$GLANCE_CONF_DIR/policy.json |
| 58 | 56 |
GLANCE_SCHEMA_JSON=$GLANCE_CONF_DIR/schema-image.json |
| ... | ... |
@@ -71,9 +69,6 @@ GLANCE_HOSTPORT=${GLANCE_HOSTPORT:-$GLANCE_SERVICE_HOST:$GLANCE_SERVICE_PORT}
|
| 71 | 71 |
GLANCE_SERVICE_PROTOCOL=${GLANCE_SERVICE_PROTOCOL:-$SERVICE_PROTOCOL}
|
| 72 | 72 |
GLANCE_REGISTRY_PORT=${GLANCE_REGISTRY_PORT:-9191}
|
| 73 | 73 |
GLANCE_REGISTRY_PORT_INT=${GLANCE_REGISTRY_PORT_INT:-19191}
|
| 74 |
-GLANCE_SEARCH_PORT=${GLANCE_SEARCH_PORT:-9393}
|
|
| 75 |
-GLANCE_SEARCH_PORT_INT=${GLANCE_SEARCH_PORT_INT:-19393}
|
|
| 76 |
-GLANCE_SEARCH_HOSTPORT=${GLANCE_SEARCH_HOSTPORT:-$GLANCE_SERVICE_HOST:$GLANCE_SEARCH_PORT}
|
|
| 77 | 74 |
|
| 78 | 75 |
# Functions |
| 79 | 76 |
# --------- |
| ... | ... |
@@ -91,10 +86,6 @@ function cleanup_glance {
|
| 91 | 91 |
# kill instances (nova) |
| 92 | 92 |
# delete image files (glance) |
| 93 | 93 |
sudo rm -rf $GLANCE_CACHE_DIR $GLANCE_IMAGE_DIR $GLANCE_AUTH_CACHE_DIR |
| 94 |
- |
|
| 95 |
- if is_service_enabled g-search; then |
|
| 96 |
- ${TOP_DIR}/pkg/elasticsearch.sh stop
|
|
| 97 |
- fi |
|
| 98 | 94 |
} |
| 99 | 95 |
|
| 100 | 96 |
# configure_glance() - Set config files, create data dirs, etc |
| ... | ... |
@@ -229,30 +220,6 @@ function configure_glance {
|
| 229 | 229 |
iniset $GLANCE_API_CONF DEFAULT cinder_endpoint_template "https://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v1/%(project_id)s" |
| 230 | 230 |
iniset $GLANCE_CACHE_CONF DEFAULT cinder_endpoint_template "https://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v1/%(project_id)s" |
| 231 | 231 |
fi |
| 232 |
- |
|
| 233 |
- # Configure search |
|
| 234 |
- if is_service_enabled g-search; then |
|
| 235 |
- cp $GLANCE_DIR/etc/glance-search.conf $GLANCE_SEARCH_CONF |
|
| 236 |
- iniset $GLANCE_SEARCH_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL |
|
| 237 |
- iniset $GLANCE_SEARCH_CONF DEFAULT bind_host $GLANCE_SERVICE_LISTEN_ADDRESS |
|
| 238 |
- inicomment $GLANCE_SEARCH_CONF DEFAULT log_file |
|
| 239 |
- iniset $GLANCE_SEARCH_CONF DEFAULT use_syslog $SYSLOG |
|
| 240 |
- iniset $GLANCE_SEARCH_CONF database connection $dburl |
|
| 241 |
- iniset $GLANCE_SEARCH_CONF paste_deploy flavor keystone |
|
| 242 |
- configure_auth_token_middleware $GLANCE_SEARCH_CONF glance $GLANCE_AUTH_CACHE_DIR/search |
|
| 243 |
- |
|
| 244 |
- if is_service_enabled tls-proxy; then |
|
| 245 |
- iniset $GLANCE_SEARCH_CONF DEFAULT bind_port $GLANCE_SEARCH_PORT_INT |
|
| 246 |
- fi |
|
| 247 |
- # Register SSL certificates if provided |
|
| 248 |
- if is_ssl_enabled_service glance; then |
|
| 249 |
- ensure_certificates GLANCE |
|
| 250 |
- iniset $GLANCE_SEARCH_CONF DEFAULT cert_file "$GLANCE_SSL_CERT" |
|
| 251 |
- iniset $GLANCE_SEARCH_CONF DEFAULT key_file "$GLANCE_SSL_KEY" |
|
| 252 |
- fi |
|
| 253 |
- |
|
| 254 |
- cp $GLANCE_DIR/etc/glance-search-paste.ini $GLANCE_SEARCH_PASTE_INI |
|
| 255 |
- fi |
|
| 256 | 232 |
} |
| 257 | 233 |
|
| 258 | 234 |
# create_glance_accounts() - Set up common required glance accounts |
| ... | ... |
@@ -287,19 +254,6 @@ function create_glance_accounts {
|
| 287 | 287 |
"$GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT" |
| 288 | 288 |
fi |
| 289 | 289 |
fi |
| 290 |
- |
|
| 291 |
- # Add glance-search service and endpoints |
|
| 292 |
- if is_service_enabled g-search; then |
|
| 293 |
- if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then |
|
| 294 |
- get_or_create_service "glance-search" "search" "EXPERIMENTAL - Glance Graffiti Search Service" |
|
| 295 |
- |
|
| 296 |
- get_or_create_endpoint "search" \ |
|
| 297 |
- "$REGION_NAME" \ |
|
| 298 |
- "$GLANCE_SERVICE_PROTOCOL://$GLANCE_SEARCH_HOSTPORT" \ |
|
| 299 |
- "$GLANCE_SERVICE_PROTOCOL://$GLANCE_SEARCH_HOSTPORT" \ |
|
| 300 |
- "$GLANCE_SERVICE_PROTOCOL://$GLANCE_SEARCH_HOSTPORT" |
|
| 301 |
- fi |
|
| 302 |
- fi |
|
| 303 | 290 |
} |
| 304 | 291 |
|
| 305 | 292 |
# create_glance_cache_dir() - Part of the init_glance() process |
| ... | ... |
@@ -329,12 +283,6 @@ function init_glance {
|
| 329 | 329 |
$GLANCE_BIN_DIR/glance-manage db_load_metadefs |
| 330 | 330 |
|
| 331 | 331 |
create_glance_cache_dir |
| 332 |
- |
|
| 333 |
- # Init glance search by exporting found metadefs/images to elasticsearch |
|
| 334 |
- if is_service_enabled g-search; then |
|
| 335 |
- ${TOP_DIR}/pkg/elasticsearch.sh start
|
|
| 336 |
- $GLANCE_BIN_DIR/glance-index |
|
| 337 |
- fi |
|
| 338 | 332 |
} |
| 339 | 333 |
|
| 340 | 334 |
# install_glanceclient() - Collect source and prepare |
| ... | ... |
@@ -371,11 +319,6 @@ function start_glance {
|
| 371 | 371 |
if is_service_enabled tls-proxy; then |
| 372 | 372 |
start_tls_proxy '*' $GLANCE_SERVICE_PORT $GLANCE_SERVICE_HOST $GLANCE_SERVICE_PORT_INT & |
| 373 | 373 |
start_tls_proxy '*' $GLANCE_REGISTRY_PORT $GLANCE_SERVICE_HOST $GLANCE_REGISTRY_PORT_INT & |
| 374 |
- |
|
| 375 |
- # Handle g-search |
|
| 376 |
- if is_service_enabled g-search; then |
|
| 377 |
- start_tls_proxy '*' $GLANCE_SEARCH_PORT $GLANCE_SERVICE_HOST $GLANCE_SEARCH_PORT_INT & |
|
| 378 |
- fi |
|
| 379 | 374 |
fi |
| 380 | 375 |
|
| 381 | 376 |
run_process g-reg "$GLANCE_BIN_DIR/glance-registry --config-file=$GLANCE_CONF_DIR/glance-registry.conf" |
| ... | ... |
@@ -385,15 +328,6 @@ function start_glance {
|
| 385 | 385 |
if ! wait_for_service $SERVICE_TIMEOUT $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT; then |
| 386 | 386 |
die $LINENO "g-api did not start" |
| 387 | 387 |
fi |
| 388 |
- |
|
| 389 |
- # Start g-search after g-reg/g-api |
|
| 390 |
- if is_service_enabled g-search; then |
|
| 391 |
- run_process g-search "$GLANCE_BIN_DIR/glance-search --config-file=$GLANCE_CONF_DIR/glance-search.conf" |
|
| 392 |
- echo "Waiting for g-search ($GLANCE_SEARCH_HOSTPORT) to start..." |
|
| 393 |
- if ! wait_for_service $SERVICE_TIMEOUT $GLANCE_SERVICE_PROTOCOL://$GLANCE_SEARCH_HOSTPORT; then |
|
| 394 |
- die $LINENO "g-search did not start" |
|
| 395 |
- fi |
|
| 396 |
- fi |
|
| 397 | 388 |
} |
| 398 | 389 |
|
| 399 | 390 |
# stop_glance() - Stop running processes |
| ... | ... |
@@ -401,10 +335,6 @@ function stop_glance {
|
| 401 | 401 |
# Kill the Glance screen windows |
| 402 | 402 |
stop_process g-api |
| 403 | 403 |
stop_process g-reg |
| 404 |
- |
|
| 405 |
- if is_service_enabled g-search; then |
|
| 406 |
- stop_process g-search |
|
| 407 |
- fi |
|
| 408 | 404 |
} |
| 409 | 405 |
|
| 410 | 406 |
# Restore xtrace |