From bae8f5b1c8f3de46c13c6b466834655c36dd846f Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Fri, 27 Jan 2017 10:54:02 +0000 Subject: [PATCH] Allow placement endpoint interface to be set This patch exposes the "interface" option for ks_filter to allow the placement API to be connected on a specific endpoint interface. The previous was to force "public", which is default for keystoneauth. The default for the placement service mirrors this value. Change-Id: Ic996e596f8473c0b8626e8d0e92e1bf58044b4f8 --- nova/conf/placement.py | 7 +++++++ ...cement-api-endpoint-interface-set-29af8b9400ce7775.yaml | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 releasenotes/notes/placement-api-endpoint-interface-set-29af8b9400ce7775.yaml diff --git a/nova/conf/placement.py b/nova/conf/placement.py index aa7fa0259..b11f873d2 100644 --- a/nova/conf/placement.py +++ b/nova/conf/placement.py @@ -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. +""") ] diff --git a/releasenotes/notes/placement-api-endpoint-interface-set-29af8b9400ce7775.yaml b/releasenotes/notes/placement-api-endpoint-interface-set-29af8b9400ce7775.yaml new file mode 100644 index 000000000..96c14e1cc --- /dev/null +++ b/releasenotes/notes/placement-api-endpoint-interface-set-29af8b9400ce7775.yaml @@ -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``.