summaryrefslogtreecommitdiff
path: root/trove/common/wsgi.py
diff options
context:
space:
mode:
authorSergey Vilgelm <sergey@vilgelm.info>2015-06-23 07:33:25 +0200
committerSergey Vilgelm <sergey@vilgelm.info>2015-07-17 17:05:44 +0300
commit08dc866fb241f535cce0609b02a34853882538f5 (patch)
treebc758c8a0c14ad7c1b3219353f28f1abdb390631 /trove/common/wsgi.py
parent3dcf406844b3313cc50c351f4a14e4eca2bf6cba (diff)
downloadtrove-08dc866fb241f535cce0609b02a34853882538f5.tar.gz
Switch to oslo.service
oslo.service has graduated, so trove should consume it. Remove a "ticks_between_runs" parameter from the periodic tasks. All periodic_tasks will be executed with the same interval with the value of the "report_interval" option. According to the old default value of the "report_interval" option and the value of the ticks_between_runs paramentr (3), increase the "report_interval" option to the 30 seconds. Rename the "exists_notification_ticks" option to the "exists_notification_interval" and increase the default value of it to 3600, according to the old value of the "report_interval" option. DocImpact The option name and default value of exists_notification_ticks was changed to exists_notification_interval with 3600 sec. And the new default value of the report_interval option is 30 sec. The deployers need to make sure that the new values in the seconds, not in the ticks. Change-Id: Id14d28146f677faf017160ac93289fd119674fc4 Depends-On: Ia5b887e69853f39b387d309831fb7ce51b881149 Closes-Bug: #1466851
Diffstat (limited to 'trove/common/wsgi.py')
-rw-r--r--trove/common/wsgi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/trove/common/wsgi.py b/trove/common/wsgi.py
index 312893d9..c97ff082 100644
--- a/trove/common/wsgi.py
+++ b/trove/common/wsgi.py
@@ -23,6 +23,7 @@ import uuid
import eventlet.wsgi
import jsonschema
from oslo_serialization import jsonutils
+from oslo_service import service
import paste.urlmap
import webob
import webob.dec
@@ -36,7 +37,6 @@ from trove.common.i18n import _
from trove.common import utils
from trove.openstack.common import log as logging
from trove.openstack.common import pastedeploy
-from trove.openstack.common import service
CONTEXT_KEY = 'trove.context'
Router = base_wsgi.Router
@@ -81,7 +81,7 @@ def launch(app_name, port, paste_config_file, data={},
app = pastedeploy.paste_deploy_app(paste_config_file, app_name, data)
server = base_wsgi.Service(app, port, host=host,
backlog=backlog, threads=threads)
- return service.launch(server, workers)
+ return service.launch(CONF, server, workers)
# Note: taken from Nova