Merge "Bind services to mgmt network addresses"

This commit is contained in:
Zuul 2020-09-26 04:30:20 +00:00 committed by Gerrit Code Review
commit a6ae18ffce
4 changed files with 32 additions and 1 deletions

View File

@ -34,6 +34,9 @@ debug: False
## SSH connection wait time
ssh_delay: 5
management_address: "{{ container_address }}"
openstack_service_bind_address: "{{ management_address }}"
# Set the package install state for distribution packages
# Options are 'present' and 'latest'.
# NOTE(mhayden): Allowing CentOS 7 and openSUSE to use package_state=present should give

View File

@ -7,7 +7,7 @@ radosgw_admin_user: radosgw
radosgw_admin_tenant: service
radosgw_service_port: "{{ (groups['swift_proxy'] is defined and groups['swift_proxy'] | length > 0) | ternary(7980,8080) }}"
radosgw_address: "{{ container_address }}"
radosgw_address: "{{ management_address }}"
radosgw_service_proto: http
radosgw_service_publicuri_proto: "{{ openstack_service_publicuri_proto | default(radosgw_service_proto) }}"
radosgw_service_adminuri_proto: "{{ openstack_service_adminuri_proto | default(radosgw_service_proto) }}"

View File

@ -13,6 +13,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
rabbitmq_port_bindings: |-
{%- set _rabbitmq_port_bindings = {} %}
{%- set _ = _rabbitmq_port_bindings.update({ 'ssl_listeners': { management_address: '5671' } }) %}
{%- set _ = _rabbitmq_port_bindings.update({ 'tcp_listeners': { management_address: '5672' } }) %}
{{ _rabbitmq_port_bindings }}
rabbitmq_management_bind_address: "{{ management_address }}"
rabbitmq_cluster_name: openstack
# Ensure that the package state matches the global setting

View File

@ -0,0 +1,20 @@
---
features:
- |
Openstack services and infrastructure such as galera, rabbitmq
and memcached already have defaults in their ansible roles to control the
IP address which those services bind to. Prior to this release the default
of 0.0.0.0 was used. A global setting in the openstack-ansible group
variables now overrides those default bind address to be the local address
on the openstack management network (typically br-mgmt) for the relevant
host or container.
upgrade:
- |
The default bind address for all openstack services and infrastructure
services such as galera, rabbitmq and memcached has changed from 0.0.0.0
to the IP address of the openstack mangement network on the relevent host
or container. Deployers should ensure that any additional systems that
expect to communicate with internal components of their openstack-ansible
deployment do so over the managment network. Services which are bound to
the management network IP will not be accessible via other interfaces.