Merge "Allow placement endpoint interface to be set"

This commit is contained in:
Jenkins 2017-02-13 07:31:01 +00:00 committed by Gerrit Code Review
commit 8de0c648c2
3 changed files with 16 additions and 1 deletions

View File

@ -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.
""")
]

View File

@ -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

View File

@ -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``.