Remove deprecated app.wsgi script

This patch removes the deprecated 'ironic/api/app.wsgi' script that
was marked for removal in Rocky.
The automatically generated 'ironic-api-wsgi' script should be used
instead.

Change-Id: If103606e41be38d23867572d065d98338980f98c
This commit is contained in:
Riccardo Pittau 2019-07-01 18:16:44 +02:00
parent 0d99dfd9d8
commit 401cfbc6e2
3 changed files with 6 additions and 27 deletions

View File

@ -1,21 +0,0 @@
# -*- mode: python -*-
# -*- encoding: utf-8 -*-
#
# 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.
"""
Use this file for deploying the API service under Apache2 mod_wsgi.
"""
from ironic.api import wsgi
application = wsgi.initialize_wsgi_app(show_deprecated=True)

View File

@ -25,7 +25,7 @@ CONF = cfg.CONF
LOG = log.getLogger(__name__)
def initialize_wsgi_app(show_deprecated=False):
def initialize_wsgi_app():
i18n.install('ironic')
service.prepare_service(sys.argv)
@ -33,9 +33,4 @@ def initialize_wsgi_app(show_deprecated=False):
LOG.debug("Configuration:")
CONF.log_opt_values(LOG, log.DEBUG)
if show_deprecated:
LOG.warning("Using ironic/api/app.wsgi is deprecated and it will "
"be removed in Rocky release. Please use automatically "
"generated ironic-api-wsgi instead.")
return app.VersionSelectorApplication()

View File

@ -0,0 +1,5 @@
---
upgrade:
- remove deprecated ``ironic/api/app.wsgi`` script.
The automatically generated ``ironic-api-wsgi`` script should be used
instead.