File tree Expand file tree Collapse file tree 6 files changed +59
-11
lines changed Expand file tree Collapse file tree 6 files changed +59
-11
lines changed Original file line number Diff line number Diff line change 201
201
- cloudkitty-tempest-full-ipv6-only
202
202
- cloudkitty-tox-bandit :
203
203
voting : false
204
- - cloudkitty-grenade-job
204
+ - cloudkitty-grenade-job :
205
+ voting : false
205
206
gate :
206
207
jobs :
207
208
- cloudkitty-tempest-full-v2-storage-influxdb
211
212
- cloudkitty-tempest-full-v2-storage-opensearch
212
213
- cloudkitty-tempest-full-v1-storage-sqlalchemy
213
214
- cloudkitty-tempest-full-ipv6-only
214
- - cloudkitty-grenade-job
Original file line number Diff line number Diff line change 1
- ========================
2
- Team and repository tags
3
- ========================
1
+ ==========
2
+ CloudKitty
3
+ ==========
4
4
5
5
.. image :: https://governance.openstack.org/tc/badges/cloudkitty.svg
6
- :target: https://governance.openstack.org/tc/reference/tags/index.html
7
6
8
7
.. Change things from this point on
9
8
10
- ==========
11
- CloudKitty
12
- ==========
13
-
14
9
.. image :: doc/source/images/cloudkitty-logo.png
15
10
:alt: cloudkitty
16
11
:align: center
Original file line number Diff line number Diff line change
1
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may
2
+ # not use this file except in compliance with the License. You may obtain
3
+ # a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10
+ # License for the specific language governing permissions and limitations
11
+ # under the License.
12
+
13
+ """WSGI application entry-point for the CloudKitty API."""
14
+
15
+ import threading
16
+
17
+ from cloudkitty .api import app
18
+
19
+ application = None
20
+
21
+ lock = threading .Lock ()
22
+ with lock :
23
+ if application is None :
24
+ application = app .build_wsgi_app ()
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ if [[ -d $CLOUDKITTY_DIR/bin ]]; then
37
37
else
38
38
CLOUDKITTY_BIN_DIR=$( get_python_exec_prefix)
39
39
fi
40
- CLOUDKITTY_UWSGI=$CLOUDKITTY_BIN_DIR / cloudkitty- api
40
+ CLOUDKITTY_UWSGI=cloudkitty.wsgi. api:application
41
41
if [ ${CLOUDKITTY_USE_UWSGI,,} == ' true' ]; then
42
42
CLOUDKITTY_ENDPOINT=$CLOUDKITTY_SERVICE_PROTOCOL ://$CLOUDKITTY_SERVICE_HOST /rating
43
43
else
Original file line number Diff line number Diff line change
1
+ ---
2
+ features :
3
+ - |
4
+ A new module, ``cloudkitty.wsgi``, has been added as a place to gather WSGI
5
+ ``application`` objects. This is intended to ease deployment by providing a
6
+ consistent location for these objects. For example, if using uWSGI then
7
+ instead of:
8
+
9
+ .. code-block:: ini
10
+
11
+ [uwsgi]
12
+ wsgi-file = /bin/cloudkitty-api
13
+
14
+ You can now use:
15
+
16
+ .. code-block:: ini
17
+
18
+ [uwsgi]
19
+ module = cloudkitty.wsgi.api:application
20
+
21
+ This also simplifies deployment with other WSGI servers that expect module
22
+ paths such as gunicorn.
23
+ upgrade :
24
+ - |
25
+ The WSGI script ``cloudkitty-api`` has been removed. Deployment tooling
26
+ should instead reference the Python module path for the wsgi module in
27
+ CloudKitty, ``cloudkitty.wsgi.api:application`` if their chosen WSGI server
28
+ supports this (gunicorn, uWSGI, etc.) or implement a .wsgi script
29
+ themselves if not (mod_wsgi).
You can’t perform that action at this time.
0 commit comments