Officially deprecate API v1.1

Zaqar API v2 has been released for several cycles and it's integrated
as the default API version by most of the openstack services. So it
is time to deprecated v1.1 in favor of v2.

DocImpact
UpgradeImpact

Implements blueprint: deprecate-v1.1

Change-Id: I40c51df5a89e0a883ad14cf7e02b96ca78147294
This commit is contained in:
Fei Long Wang 2016-09-07 13:17:33 +12:00
parent f38cecfdfc
commit b745146df4
22 changed files with 29 additions and 23 deletions

View File

@ -84,7 +84,7 @@ function configure_zaqar {
iniset $ZAQAR_CONF DEFAULT debug True
iniset $ZAQAR_CONF DEFAULT unreliable True
iniset $ZAQAR_CONF DEFAULT admin_mode True
iniset $ZAQAR_CONF DEFAULT enable_deprecated_api_versions 1
iniset $ZAQAR_CONF DEFAULT enable_deprecated_api_versions 1,1.1
iniset $ZAQAR_CONF signed_url secret_key notreallysecret
if is_service_enabled key; then

View File

@ -0,0 +1,6 @@
---
deprecations:
- Zaqar API v2 has been released for several cycles and it is integrated
as the default API version by most of the OpenStack services. So it is time
to deprecated v1.1 in favor of v2. Now in Newton cycle, Zaqar API v1.1 is
officially deprecated.

View File

@ -2,7 +2,7 @@
debug = False
verbose = False
admin_mode = False
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -1,7 +1,7 @@
[DEFAULT]
debug = False
verbose = False
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = invalid

View File

@ -1,7 +1,7 @@
[DEFAULT]
# run_tests = True
unreliable = True
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[zaqar]
# url = http://0.0.0.0:8888

View File

@ -5,7 +5,7 @@ verbose = True
# Show debugging output in logs (sets DEBUG log level output)
debug = True
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
# Log to this file!
; log_file = /var/log/zaqar/server.log

View File

@ -3,7 +3,7 @@ auth_strategy = keystone
debug = False
verbose = False
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -1,6 +1,6 @@
[DEFAULT]
unreliable = True
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]

View File

@ -1,6 +1,6 @@
[DEFAULT]
auth_strategy = keystone
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]

View File

@ -1,6 +1,6 @@
[DEFAULT]
unreliable = True
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]

View File

@ -1,7 +1,7 @@
[DEFAULT]
debug = False
verbose = False
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -2,7 +2,7 @@
debug = False
verbose = False
unreliable = True
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -2,7 +2,7 @@
debug = False
verbose = False
unreliable = True
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -1,5 +1,5 @@
[DEFAULT]
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -2,7 +2,7 @@
pooling = True
admin_mode = True
unreliable = True
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -1,5 +1,5 @@
[DEFAULT]
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -1,7 +1,7 @@
[DEFAULT]
debug = False
verbose = False
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -1,6 +1,6 @@
[DEFAULT]
pooling = True
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -2,7 +2,7 @@
debug = False
verbose = False
admin_mode = False
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -1,7 +1,7 @@
[DEFAULT]
pooling = True
admin_mode = True
enable_deprecated_api_versions = 1
enable_deprecated_api_versions = 1,1.1
[drivers]
transport = wsgi

View File

@ -38,8 +38,8 @@ EXPECTED_VERSIONS = [
},
{
'id': '1.1',
'status': 'SUPPORTED',
'updated': '2014-9-24T04:06:47Z',
'status': 'DEPRECATED',
'updated': '2016-7-29T02:22:47Z',
'media-types': [
{
'base': 'application/json',

View File

@ -31,8 +31,8 @@ LOG = logging.getLogger(__name__)
VERSION = {
'id': '1.1',
'status': 'SUPPORTED',
'updated': '2014-9-24T04:06:47Z',
'status': 'DEPRECATED',
'updated': '2016-7-29T02:22:47Z',
'media-types': [
{
'base': 'application/json',