Merge "Glance: disable V1 API and registry"

This commit is contained in:
Zuul 2018-07-30 15:39:02 +00:00 committed by Gerrit Code Review
commit 6ecd0bd133
5 changed files with 74 additions and 8 deletions

View File

@ -226,6 +226,8 @@ conf:
# via the endpoints section. # via the endpoints section.
bind_port: null bind_port: null
workers: 1 workers: 1
enable_v1_api: False
enable_v2_registry: False
keystone_authtoken: keystone_authtoken:
auth_type: password auth_type: password
auth_version: v3 auth_version: v3
@ -863,9 +865,9 @@ manifests:
configmap_bin: true configmap_bin: true
configmap_etc: true configmap_etc: true
deployment_api: true deployment_api: true
deployment_registry: true deployment_registry: false
ingress_api: true ingress_api: true
ingress_registry: true ingress_registry: false
job_bootstrap: true job_bootstrap: true
job_clean: true job_clean: true
job_db_init: true job_db_init: true
@ -878,7 +880,7 @@ manifests:
job_storage_init: true job_storage_init: true
job_rabbit_init: true job_rabbit_init: true
pdb_api: true pdb_api: true
pdb_registry: true pdb_registry: false
pod_rally_test: true pod_rally_test: true
pvc_images: true pvc_images: true
secret_db: true secret_db: true
@ -886,6 +888,6 @@ manifests:
secret_keystone: true secret_keystone: true
secret_rabbitmq: true secret_rabbitmq: true
service_ingress_api: true service_ingress_api: true
service_ingress_registry: true service_ingress_registry: false
service_api: true service_api: true
service_registry: true service_registry: true

View File

@ -516,6 +516,17 @@ data:
replicas: replicas:
api: 2 api: 2
registry: 2 registry: 2
# NOTE(portdirect): glance APIv1 is required for heat in Newton
conf:
glance:
DEFAULT:
enable_v1_api: true
enable_v2_registry: true
manifests:
deployment_registry: true
ingress_registry: true
pdb_registry: true
service_ingress_registry: true
source: source:
type: local type: local
location: ${OSH_PATH} location: ${OSH_PATH}

View File

@ -23,9 +23,27 @@ make glance
: ${OSH_EXTRA_HELM_ARGS:=""} : ${OSH_EXTRA_HELM_ARGS:=""}
#NOTE(portdirect), this could be: radosgw, rbd, swift or pvc #NOTE(portdirect), this could be: radosgw, rbd, swift or pvc
: ${GLANCE_BACKEND:="swift"} : ${GLANCE_BACKEND:="swift"}
tee /tmp/glance.yaml <<EOF
storage: ${GLANCE_BACKEND}
EOF
if [ "x${OSH_OPENSTACK_RELEASE}" == "xnewton" ]; then
# NOTE(portdirect): glance APIv1 is required for heat in Newton
tee -a /tmp/glance.yaml <<EOF
conf:
glance:
DEFAULT:
enable_v1_api: true
enable_v2_registry: true
manifests:
deployment_registry: true
ingress_registry: true
pdb_registry: true
service_ingress_registry: true
EOF
fi
helm upgrade --install glance ./glance \ helm upgrade --install glance ./glance \
--namespace=openstack \ --namespace=openstack \
--set storage=${GLANCE_BACKEND} \ --values=/tmp/glance.yaml \
${OSH_EXTRA_HELM_ARGS} \ ${OSH_EXTRA_HELM_ARGS} \
${OSH_EXTRA_HELM_ARGS_GLANCE} ${OSH_EXTRA_HELM_ARGS_GLANCE}

View File

@ -21,9 +21,28 @@ make glance
#NOTE: Deploy command #NOTE: Deploy command
: ${OSH_EXTRA_HELM_ARGS:=""} : ${OSH_EXTRA_HELM_ARGS:=""}
: ${GLANCE_BACKEND:="pvc"}
tee /tmp/glance.yaml <<EOF
storage: ${GLANCE_BACKEND}
EOF
if [ "x${OSH_OPENSTACK_RELEASE}" == "xnewton" ]; then
# NOTE(portdirect): glance APIv1 is required for heat in Newton
tee -a /tmp/glance.yaml <<EOF
conf:
glance:
DEFAULT:
enable_v1_api: true
enable_v2_registry: true
manifests:
deployment_registry: true
ingress_registry: true
pdb_registry: true
service_ingress_registry: true
EOF
fi
helm upgrade --install glance ./glance \ helm upgrade --install glance ./glance \
--namespace=openstack \ --namespace=openstack \
--set storage=pvc \ --values=/tmp/glance.yaml \
${OSH_EXTRA_HELM_ARGS} \ ${OSH_EXTRA_HELM_ARGS} \
${OSH_EXTRA_HELM_ARGS_GLANCE} ${OSH_EXTRA_HELM_ARGS_GLANCE}

View File

@ -17,7 +17,8 @@
set -xe set -xe
#NOTE: Deploy command #NOTE: Deploy command
GLANCE_BACKEND="radosgw" # NOTE(portdirect), this could be: radosgw, rbd, swift or pvc #NOTE(portdirect), this could be: radosgw, rbd, swift or pvc
: ${GLANCE_BACKEND:="swift"}
tee /tmp/glance.yaml <<EOF tee /tmp/glance.yaml <<EOF
storage: ${GLANCE_BACKEND} storage: ${GLANCE_BACKEND}
pod: pod:
@ -25,6 +26,21 @@ pod:
api: 2 api: 2
registry: 2 registry: 2
EOF EOF
if [ "x${OSH_OPENSTACK_RELEASE}" == "xnewton" ]; then
# NOTE(portdirect): glance APIv1 is required for heat in Newton
tee -a /tmp/glance.yaml <<EOF
conf:
glance:
DEFAULT:
enable_v1_api: true
enable_v2_registry: true
manifests:
deployment_registry: true
ingress_registry: true
pdb_registry: true
service_ingress_registry: true
EOF
fi
helm upgrade --install glance ./glance \ helm upgrade --install glance ./glance \
--namespace=openstack \ --namespace=openstack \
--values=/tmp/glance.yaml \ --values=/tmp/glance.yaml \