Disable all import methods if glance is not standalone
Glance should not be exposing import methods that cannot work via its API, but it does today. In order for tempest (et al) to be able to properly detect whether import is possible, we must configure the import methods in standalone mode, or disable them in wsgi mode. The referenced Glance patch will make this a requirement. Change-Id: I3bf3498d83607c5e98b70877c061dc54fc3c0a6e Needed-By: https://review.opendev.org/#/c/741497/
This commit is contained in:
parent
cc0821a586
commit
442c57e168
@ -183,6 +183,11 @@ function configure_glance {
|
||||
iniset $GLANCE_API_CONF cors allowed_origin "http://$SERVICE_HOST"
|
||||
fi
|
||||
|
||||
if [[ "$GLANCE_STANDALONE" == "False" ]]; then
|
||||
# NOTE(danms): Do not advertise import methods if we are running in WSGI mode
|
||||
iniset $GLANCE_API_CONF enabled_import_methods []
|
||||
fi
|
||||
|
||||
# No multiple stores for swift yet
|
||||
# Store the images in swift if enabled.
|
||||
if is_service_enabled s-proxy; then
|
||||
|
Loading…
Reference in New Issue
Block a user