Merge "Allow placement endpoint interface to be set"
This commit is contained in:
commit
8de0c648c2
|
@ -28,6 +28,13 @@ Possible values:
|
|||
|
||||
* Any string representing region name
|
||||
"""),
|
||||
cfg.StrOpt('os_interface',
|
||||
default="public",
|
||||
choices=["public", "admin", "internal"],
|
||||
help="""
|
||||
Endpoint interface for this node. This is used when picking the URL in the
|
||||
service catalog.
|
||||
""")
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -186,7 +186,8 @@ class SchedulerReportClient(object):
|
|||
"""Client class for updating the scheduler."""
|
||||
|
||||
ks_filter = {'service_type': 'placement',
|
||||
'region_name': CONF.placement.os_region_name}
|
||||
'region_name': CONF.placement.os_region_name,
|
||||
'interface': CONF.placement.os_interface}
|
||||
|
||||
def __init__(self):
|
||||
# A dict, keyed by the resource provider UUID, of ResourceProvider
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
features:
|
||||
- The placement API can be set to connect to a specific
|
||||
keystone endpoint interface using the ``os_interface``
|
||||
option in the ``[placement]`` section inside ``nova.conf``.
|
||||
This value is not required and will default to ``public``.
|
||||
Other acceptable options are ``admin`` or ``internal``.
|
Loading…
Reference in New Issue