Remove glance v1 api and tests
The glance v1 endpoints were removed in [1].
[1] 3dde3204d5
Change-Id: I90f0b7c6963c433aba6d91e7f4df4401e410439e
This commit is contained in:
parent
f075899894
commit
33b0e35e06
@ -86,8 +86,6 @@ glance_show_multiple_locations: "{{ glance_default_store == 'rbd' }}"
|
||||
|
||||
|
||||
## API options
|
||||
# The v1 API is deprecated and scheduled for removal in Queens.
|
||||
glance_enable_v1_api: False
|
||||
glance_enable_v2_api: True
|
||||
# The v2 API does not require the registry service.
|
||||
# The registry service is scheduled for removal in the S cycle.
|
||||
@ -259,24 +257,16 @@ glance_services:
|
||||
init_config_overrides: "{{ glance_api_init_overrides }}"
|
||||
start_order: 1
|
||||
wsgi_overrides: "{{ glance_api_uwsgi_ini_overrides }}"
|
||||
wsgi_app: "{{ not glance_enable_v1_api }}"
|
||||
wsgi_app: True
|
||||
wsgi_name: glance-wsgi-api
|
||||
uwsgi_bind_address: "{{ glance_api_bind_address }}"
|
||||
uwsgi_port: "{{ glance_api_service_port }}"
|
||||
execstarts: >-
|
||||
{{ glance_enable_v1_api | ternary(
|
||||
glance_bin ~ '/glance-api',
|
||||
glance_uwsgi_bin ~ '/uwsgi --autoload --ini /etc/uwsgi/glance-api.ini')
|
||||
}}
|
||||
execreloads: >-
|
||||
{{ glance_enable_v1_api | ternary(
|
||||
'/bin/kill -HUP $MAINPID',
|
||||
glance_uwsgi_bin ~ '/uwsgi --reload /var/run/glance-api/glance-api.pid')
|
||||
}}
|
||||
execstarts: "{{ glance_uwsgi_bin }}/uwsgi --autoload --ini /etc/uwsgi/glance-api.ini"
|
||||
execreloads: "{{ glance_uwsgi_bin }}/uwsgi --reload /var/run/glance-api/glance-api.pid"
|
||||
glance-registry:
|
||||
group: glance_registry
|
||||
service_name: glance-registry
|
||||
condition: "{{ glance_enable_v1_api | bool or glance_enable_v2_registry | bool }}"
|
||||
condition: "{{ glance_enable_v2_registry | bool }}"
|
||||
init_config_overrides: "{{ glance_registry_init_overrides }}"
|
||||
start_order: 2
|
||||
execstarts: "{{ _glance_bin }}/glance-registry"
|
||||
|
6
releasenotes/notes/remove-v1-api-4c66f43c4f8404b6.yaml
Normal file
6
releasenotes/notes/remove-v1-api-4c66f43c4f8404b6.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The glance v1 API is now removed upstream and the deployment code is now
|
||||
removed from this glance ansible role. The variable ``glance_enable_v1_api``
|
||||
is removed.
|
@ -37,15 +37,11 @@ pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler con
|
||||
[composite:rootapp]
|
||||
paste.composite_factory = glance.api:root_app_factory
|
||||
/: apiversions
|
||||
/v1: apiv1app
|
||||
/v2: apiv2app
|
||||
|
||||
[app:apiversions]
|
||||
paste.app_factory = glance.api.versions:create_resource
|
||||
|
||||
[app:apiv1app]
|
||||
paste.app_factory = glance.api.v1.router:API.factory
|
||||
|
||||
[app:apiv2app]
|
||||
paste.app_factory = glance.api.v2.router:API.factory
|
||||
|
||||
|
@ -17,8 +17,6 @@ registry_port = {{ glance_registry_service_port }}
|
||||
registry_client_protocol = {{ glance_service_registry_proto }}
|
||||
cinder_catalog_info = volume:cinder:internalURL
|
||||
|
||||
enable_v1_api = {{ glance_enable_v1_api | bool }}
|
||||
enable_v1_registry = {{ glance_enable_v1_api | bool }}
|
||||
enable_v2_api = {{ glance_enable_v2_api | bool }}
|
||||
enable_v2_registry = {{ glance_enable_v2_registry | bool }}
|
||||
|
||||
|
@ -14,8 +14,6 @@ workers = {{ glance_registry_workers | default(glance_api_threads) }}
|
||||
api_limit_max = 1000
|
||||
limit_param_default = 25
|
||||
|
||||
enable_v1_api = {{ glance_enable_v1_api | bool }}
|
||||
enable_v1_registry = {{ glance_enable_v1_api | bool }}
|
||||
enable_v2_api = {{ glance_enable_v2_api | bool }}
|
||||
enable_v2_registry = {{ glance_enable_v2_registry | bool }}
|
||||
|
||||
|
@ -18,6 +18,5 @@ tempest_run: yes
|
||||
tempest_test_whitelist:
|
||||
- tempest.api.image
|
||||
|
||||
tempest_image_api_v1_enabled: "{{ glance_enable_v1_api | default(False) }}"
|
||||
tempest_image_api_v1_enabled: False
|
||||
tempest_image_api_v2_enabled: "{{ glance_enable_v2_api | default(True) }}"
|
||||
|
||||
|
8
tox.ini
8
tox.ini
@ -105,14 +105,6 @@ commands =
|
||||
bash -c "{toxinidir}/tests/test-glance-upgrades.sh"
|
||||
|
||||
|
||||
[testenv:v1_api_enabled]
|
||||
setenv =
|
||||
{[testenv]setenv}
|
||||
ANSIBLE_PARAMETERS=-e glance_enable_v1_api=yes
|
||||
commands =
|
||||
bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
|
||||
|
||||
|
||||
[testenv:v2_registry_enabled]
|
||||
setenv =
|
||||
{[testenv]setenv}
|
||||
|
@ -13,13 +13,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- job:
|
||||
name: openstack-ansible-v1_api_enabled
|
||||
parent: openstack-ansible-functional
|
||||
nodeset: ubuntu-xenial
|
||||
vars:
|
||||
tox_env: v1_api_enabled
|
||||
|
||||
- job:
|
||||
name: openstack-ansible-v2_registry_enabled
|
||||
parent: openstack-ansible-functional
|
||||
|
@ -19,7 +19,6 @@
|
||||
jobs:
|
||||
- openstack-ansible-nfs_glance
|
||||
- openstack-ansible-upgrade-ubuntu-xenial
|
||||
- openstack-ansible-v1_api_enabled
|
||||
- openstack-ansible-v2_registry_enabled
|
||||
- openstack-ansible-glance-ssl-nv
|
||||
- openstack-ansible-functional-distro_install-ubuntu-xenial
|
||||
@ -32,5 +31,4 @@
|
||||
jobs:
|
||||
- openstack-ansible-nfs_glance
|
||||
- openstack-ansible-upgrade-ubuntu-xenial
|
||||
- openstack-ansible-v1_api_enabled
|
||||
- openstack-ansible-v2_registry_enabled
|
||||
|
Loading…
Reference in New Issue
Block a user