Fix WampAgent rpc side and requirements
Change-Id: Ib79ae987fb6a0381913d6edb85c5fbc0d03d22f9
This commit is contained in:
parent
7e0dd37681
commit
094eae7851
|
@ -18,6 +18,7 @@ import time
|
|||
import txaio
|
||||
|
||||
from iotronic.common import exception
|
||||
from iotronic.common.i18n import _
|
||||
from iotronic.common.i18n import _LI
|
||||
from iotronic.common.i18n import _LW
|
||||
from iotronic.db import api as dbapi
|
||||
|
@ -37,6 +38,18 @@ from autobahn.asyncio.component import Component
|
|||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
service_opts = [
|
||||
cfg.StrOpt('notification_level',
|
||||
choices=[('debug', _('"debug" level')),
|
||||
('info', _('"info" level')),
|
||||
('warning', _('"warning" level')),
|
||||
('error', _('"error" level')),
|
||||
('critical', _('"critical" level'))],
|
||||
help=_('Specifies the minimum level for which to send '
|
||||
'notifications. If not set, no notifications will '
|
||||
'be sent. The default is for this option to be unset.')),
|
||||
]
|
||||
|
||||
wamp_opts = [
|
||||
cfg.StrOpt('wamp_transport_url',
|
||||
default='ws://localhost:8181/',
|
||||
|
@ -62,6 +75,7 @@ wamp_opts = [
|
|||
]
|
||||
|
||||
CONF = cfg.CONF
|
||||
cfg.CONF.register_opts(service_opts)
|
||||
CONF.register_opts(wamp_opts, 'wamp')
|
||||
|
||||
txaio.start_logging(level="info")
|
||||
|
|
|
@ -17,4 +17,5 @@ autobahn>=0.10.1 # MIT License
|
|||
python-neutronclient>=6.7.0 # Apache-2.0
|
||||
pecan!=1.0.2,!=1.0.3,!=1.0.4,!=1.2,>=1.0.0 # BSD
|
||||
PyMySQL>=0.7.6 # MIT License
|
||||
osprofiler>=1.5.0 # Apache-2.0
|
||||
WSME>=0.8 # MIT
|
||||
|
|
Loading…
Reference in New Issue