Skip to content

Commit 9208a37

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Remove standalone requirement for glance import"
2 parents 32d5b1e + 33f8f6e commit 9208a37

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

functions

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ function _upload_image {
114114
properties=$(_image_properties_to_arg $*)
115115

116116
if [[ "$GLANCE_USE_IMPORT_WORKFLOW" == "True" ]]; then
117-
if [[ "$GLANCE_STANDALONE" == "True" ]]; then
118-
useimport="--import"
119-
else
120-
echo "*** Unable to use glance import workflow because glance is not standalone! ***"
121-
fi
117+
useimport="--import"
122118
fi
123119

124120
openstack --os-cloud=devstack-admin --os-region-name="$REGION_NAME" image create "$image_name" --public --container-format "$container" --disk-format "$disk" $useimport $properties < "${image}"

lib/glance

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,6 @@ function configure_glance {
193193
iniset $GLANCE_API_CONF cors allowed_origin "http://$SERVICE_HOST"
194194
fi
195195

196-
if [[ "$GLANCE_STANDALONE" == "False" ]]; then
197-
# NOTE(danms): Do not advertise import methods if we are running in WSGI mode
198-
iniset $GLANCE_API_CONF DEFAULT enabled_import_methods []
199-
fi
200-
201196
# No multiple stores for swift yet
202197
# Store the images in swift if enabled.
203198
if is_service_enabled s-proxy; then

0 commit comments

Comments
 (0)