summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Verboso <fverboso@unime.it>2018-09-17 12:35:00 +0200
committerFabio Verboso <fverboso@unime.it>2018-09-17 13:08:59 +0200
commit094eae78515bae20ffcb8761df0167f4c2fdd287 (patch)
treec0d6d6350fbba57a88c20143ab9b072bd3a97325
parent7e0dd37681bfca96ee995fa690fcaa6585168077 (diff)
Fix WampAgent rpc side and requirements0.3.0
Notes
Notes (review): Code-Review+2: Fabio Verboso <fverboso@unime.it> Workflow+1: Fabio Verboso <fverboso@unime.it> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 17 Sep 2018 11:33:33 +0000 Reviewed-on: https://review.openstack.org/603072 Project: openstack/iotronic Branch: refs/heads/master
-rw-r--r--iotronic/wamp/agent.py14
-rw-r--r--requirements.txt1
2 files changed, 15 insertions, 0 deletions
diff --git a/iotronic/wamp/agent.py b/iotronic/wamp/agent.py
index a5716ed..8ef6318 100644
--- a/iotronic/wamp/agent.py
+++ b/iotronic/wamp/agent.py
@@ -18,6 +18,7 @@ import time
18import txaio 18import txaio
19 19
20from iotronic.common import exception 20from iotronic.common import exception
21from iotronic.common.i18n import _
21from iotronic.common.i18n import _LI 22from iotronic.common.i18n import _LI
22from iotronic.common.i18n import _LW 23from iotronic.common.i18n import _LW
23from iotronic.db import api as dbapi 24from iotronic.db import api as dbapi
@@ -37,6 +38,18 @@ from autobahn.asyncio.component import Component
37 38
38LOG = logging.getLogger(__name__) 39LOG = logging.getLogger(__name__)
39 40
41service_opts = [
42 cfg.StrOpt('notification_level',
43 choices=[('debug', _('"debug" level')),
44 ('info', _('"info" level')),
45 ('warning', _('"warning" level')),
46 ('error', _('"error" level')),
47 ('critical', _('"critical" level'))],
48 help=_('Specifies the minimum level for which to send '
49 'notifications. If not set, no notifications will '
50 'be sent. The default is for this option to be unset.')),
51]
52
40wamp_opts = [ 53wamp_opts = [
41 cfg.StrOpt('wamp_transport_url', 54 cfg.StrOpt('wamp_transport_url',
42 default='ws://localhost:8181/', 55 default='ws://localhost:8181/',
@@ -62,6 +75,7 @@ wamp_opts = [
62] 75]
63 76
64CONF = cfg.CONF 77CONF = cfg.CONF
78cfg.CONF.register_opts(service_opts)
65CONF.register_opts(wamp_opts, 'wamp') 79CONF.register_opts(wamp_opts, 'wamp')
66 80
67txaio.start_logging(level="info") 81txaio.start_logging(level="info")
diff --git a/requirements.txt b/requirements.txt
index 7145b8d..dccc01b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -17,4 +17,5 @@ autobahn>=0.10.1 # MIT License
17python-neutronclient>=6.7.0 # Apache-2.0 17python-neutronclient>=6.7.0 # Apache-2.0
18pecan!=1.0.2,!=1.0.3,!=1.0.4,!=1.2,>=1.0.0 # BSD 18pecan!=1.0.2,!=1.0.3,!=1.0.4,!=1.2,>=1.0.0 # BSD
19PyMySQL>=0.7.6 # MIT License 19PyMySQL>=0.7.6 # MIT License
20osprofiler>=1.5.0 # Apache-2.0
20WSME>=0.8 # MIT 21WSME>=0.8 # MIT