Skip to content

Commit 44e7f58

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Use uwsgi binary from path"
2 parents c3b58f5 + 312517d commit 44e7f58

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

lib/cinder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ function start_cinder {
492492
start_tls_proxy cinder '*' $CINDER_SERVICE_PORT $CINDER_SERVICE_HOST $CINDER_SERVICE_PORT_INT
493493
fi
494494
else
495-
run_process "c-api" "$CINDER_BIN_DIR/uwsgi --procname-prefix cinder-api --ini $CINDER_UWSGI_CONF"
495+
run_process "c-api" "$(which uwsgi) --procname-prefix cinder-api --ini $CINDER_UWSGI_CONF"
496496
cinder_url=$service_protocol://$SERVICE_HOST/volume/v3
497497
fi
498498
fi

lib/glance

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ function start_glance {
392392

393393
run_process g-reg "$GLANCE_BIN_DIR/glance-registry --config-file=$GLANCE_CONF_DIR/glance-registry.conf"
394394
if [[ "$WSGI_MODE" == "uwsgi" ]]; then
395-
run_process g-api "$GLANCE_BIN_DIR/uwsgi --procname-prefix glance-api --ini $GLANCE_UWSGI_CONF"
395+
run_process g-api "$(which uwsgi) --procname-prefix glance-api --ini $GLANCE_UWSGI_CONF"
396396
else
397397
run_process g-api "$GLANCE_BIN_DIR/glance-api --config-dir=$GLANCE_CONF_DIR"
398398
fi

lib/keystone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ function start_keystone {
523523
enable_apache_site keystone
524524
restart_apache_server
525525
else # uwsgi
526-
run_process keystone "$KEYSTONE_BIN_DIR/uwsgi --procname-prefix keystone --ini $KEYSTONE_PUBLIC_UWSGI_CONF" ""
526+
run_process keystone "$(which uwsgi) --procname-prefix keystone --ini $KEYSTONE_PUBLIC_UWSGI_CONF" ""
527527
fi
528528

529529
echo "Waiting for keystone to start..."

lib/neutron

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ function start_neutron_api {
463463
done
464464

465465
if [ "$NEUTRON_DEPLOY_MOD_WSGI" == "True" ]; then
466-
run_process neutron-api "$NEUTRON_BIN_DIR/uwsgi --procname-prefix neutron-api --ini $NEUTRON_UWSGI_CONF"
466+
run_process neutron-api "$(which uwsgi) --procname-prefix neutron-api --ini $NEUTRON_UWSGI_CONF"
467467
neutron_url=$service_protocol://$NEUTRON_SERVICE_HOST/networking/
468468
enable_service neutron-rpc-server
469469
run_process neutron-rpc-server "$NEUTRON_BIN_DIR/neutron-rpc-server $opts"

lib/neutron-legacy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ function start_neutron_service_and_check {
477477
# Start the Neutron service
478478
if [ "$NEUTRON_DEPLOY_MOD_WSGI" == "True" ]; then
479479
enable_service neutron-api
480-
run_process neutron-api "$NEUTRON_BIN_DIR/uwsgi --procname-prefix neutron-api --ini $NEUTRON_UWSGI_CONF"
480+
run_process neutron-api "$(which uwsgi) --procname-prefix neutron-api --ini $NEUTRON_UWSGI_CONF"
481481
neutron_url=$Q_PROTOCOL://$Q_HOST/networking/
482482
enable_service neutron-rpc-server
483483
run_process neutron-rpc-server "$NEUTRON_BIN_DIR/neutron-rpc-server $cfg_file_options"

lib/nova

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ function start_nova_api {
857857
start_tls_proxy nova '*' $NOVA_SERVICE_PORT $NOVA_SERVICE_HOST $NOVA_SERVICE_PORT_INT
858858
fi
859859
else
860-
run_process "n-api" "$NOVA_BIN_DIR/uwsgi --procname-prefix nova-api --ini $NOVA_UWSGI_CONF"
860+
run_process "n-api" "$(which uwsgi) --procname-prefix nova-api --ini $NOVA_UWSGI_CONF"
861861
nova_url=$service_protocol://$SERVICE_HOST/compute/v2.1/
862862
fi
863863

@@ -948,7 +948,7 @@ function start_nova_rest {
948948
if [ "$NOVA_USE_MOD_WSGI" == "False" ]; then
949949
run_process n-api-meta "$NOVA_BIN_DIR/nova-api-metadata --config-file $compute_cell_conf"
950950
else
951-
run_process n-api-meta "$NOVA_BIN_DIR/uwsgi --procname-prefix nova-api-meta --ini $NOVA_METADATA_UWSGI_CONF"
951+
run_process n-api-meta "$(which uwsgi) --procname-prefix nova-api-meta --ini $NOVA_METADATA_UWSGI_CONF"
952952
fi
953953

954954
export PATH=$old_path

lib/placement

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function install_placement {
144144
# start_placement_api() - Start the API processes ahead of other things
145145
function start_placement_api {
146146
if [[ "$WSGI_MODE" == "uwsgi" ]]; then
147-
run_process "placement-api" "$PLACEMENT_BIN_DIR/uwsgi --procname-prefix placement --ini $PLACEMENT_UWSGI_CONF"
147+
run_process "placement-api" "$(which uwsgi) --procname-prefix placement --ini $PLACEMENT_UWSGI_CONF"
148148
else
149149
enable_apache_site placement-api
150150
restart_apache_server

0 commit comments

Comments
 (0)