
The glance v1 API is deprecated and intended to be removed from the glance code within the Queens or Rocky cycles. When using the glance v2 API the glance-registry service is optional, and the intention is to remove the glance-registry service in the S cycle. The glance-registry service is required when using the v1 API though. Furthermore, when using the glance-registry service it is not possible to execute a rolling upgrade without losing API transactions. Given the above information, this patch enables the deployment of glance with only the v2 API enabled, and without the glance-registry service. It adds a per-commit test to validate that this configuration works. This patch also corrects a previous misconfiguration which enabled the v2 registry service, but did not set the data_api correctly for the API service to inform it that the registry was operating. The glance_enable_v1_registry variable is also removed as it is meaningless. The v1 API *requires* the registry to be enabled, so we just enable it if glance_enable_v1_api is enabled. Change-Id: Ie95daed286798d139f0a35ffdd2a4dd1cdda6ff9
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
---
|
|
# Copyright 2017, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- project:
|
|
name: openstack/openstack-ansible-os_glance
|
|
check:
|
|
jobs:
|
|
- openstack-ansible-linters
|
|
- openstack-ansible-functional-centos-7
|
|
- openstack-ansible-functional-opensuse-423
|
|
- openstack-ansible-functional-ubuntu-xenial
|
|
- openstack-ansible-upgrade-ubuntu-xenial
|
|
- openstack-ansible-v2_api_only
|
|
gate:
|
|
jobs:
|
|
- openstack-ansible-linters
|
|
- openstack-ansible-functional-centos-7
|
|
- openstack-ansible-functional-opensuse-423
|
|
- openstack-ansible-functional-ubuntu-xenial
|
|
- openstack-ansible-upgrade-ubuntu-xenial
|
|
- openstack-ansible-v2_api_only
|