keystone  18.0.0
About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Victoria" series (maintained release).
  Fossies Dox: keystone-18.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

eventlet_server.py
Go to the documentation of this file.
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 from oslo_config import cfg
14 from oslo_log import versionutils
15 
16 from keystone.conf import utils
17 
18 
19 _DEPRECATE_EVENTLET_MSG = utils.fmt("""
20 Support for running keystone under eventlet has been removed in the Newton
21 release. These options remain for backwards compatibility because they are used
22 for URL substitutions.
23 """)
24 
25 
26 public_bind_host = cfg.HostAddressOpt(
27  'public_bind_host',
28  default='0.0.0.0', # nosec : Bind to all interfaces by default for
29  # backwards compatibility.
30  deprecated_opts=[
31  cfg.DeprecatedOpt('bind_host', group='DEFAULT'),
32  cfg.DeprecatedOpt('public_bind_host', group='DEFAULT'),
33  ],
34  deprecated_for_removal=True,
35  deprecated_reason=_DEPRECATE_EVENTLET_MSG,
36  deprecated_since=versionutils.deprecated.KILO,
37  help=utils.fmt("""
38 The IP address of the network interface for the public service to listen on.
39 """))
40 
41 public_port = cfg.PortOpt(
42  'public_port',
43  default=5000,
44  deprecated_name='public_port',
45  deprecated_group='DEFAULT',
46  deprecated_for_removal=True,
47  deprecated_reason=_DEPRECATE_EVENTLET_MSG,
48  deprecated_since=versionutils.deprecated.KILO,
49  help=utils.fmt("""
50 The port number for the public service to listen on.
51 """))
52 
53 admin_bind_host = cfg.HostAddressOpt(
54  'admin_bind_host',
55  default='0.0.0.0', # nosec : Bind to all interfaces by default for
56  # backwards compatibility.
57  deprecated_opts=[
58  cfg.DeprecatedOpt('bind_host', group='DEFAULT'),
59  cfg.DeprecatedOpt('admin_bind_host', group='DEFAULT'),
60  ],
61  deprecated_for_removal=True,
62  deprecated_reason=_DEPRECATE_EVENTLET_MSG,
63  deprecated_since=versionutils.deprecated.KILO,
64  help=utils.fmt("""
65 The IP address of the network interface for the admin service to listen on.
66 """))
67 
68 admin_port = cfg.PortOpt(
69  'admin_port',
70  default=35357,
71  deprecated_name='admin_port',
72  deprecated_group='DEFAULT',
73  deprecated_for_removal=True,
74  deprecated_reason=_DEPRECATE_EVENTLET_MSG,
75  deprecated_since=versionutils.deprecated.KILO,
76  help=utils.fmt("""
77 The port number for the admin service to listen on.
78 """))
79 
80 
81 GROUP_NAME = __name__.split('.')[-1]
82 ALL_OPTS = [
83  public_bind_host,
84  public_port,
85  admin_bind_host,
86  admin_port,
87 ]
88 
89 
90 def register_opts(conf):
91  conf.register_opts(ALL_OPTS, group=GROUP_NAME)
92 
93 
94 def list_opts():
95  return {GROUP_NAME: ALL_OPTS}
keystone.conf.eventlet_server.register_opts
def register_opts(conf)
Definition: eventlet_server.py:90
keystone.conf.eventlet_server.list_opts
def list_opts()
Definition: eventlet_server.py:94
keystone.conf
Definition: __init__.py:1