diff --git a/ansible/roles/magnum/templates/magnum.conf.j2 b/ansible/roles/magnum/templates/magnum.conf.j2 index 7e143d7ed8..d9a3be3620 100644 --- a/ansible/roles/magnum/templates/magnum.conf.j2 +++ b/ansible/roles/magnum/templates/magnum.conf.j2 @@ -23,12 +23,21 @@ max_retries = -1 default_docker_volume_type = {{ default_docker_volume_type }} {% endif %} +[magnum_client] +region_name = {{ openstack_region_name }} +endpoint_type = internalURL + [heat_client] region_name = {{ openstack_region_name }} endpoint_type = internalURL +[octavia_client] +region_name = {{ openstack_region_name }} +endpoint_type = internalURL + [cinder_client] region_name = {{ openstack_region_name }} +endpoint_type = internalURL [barbican_client] region_name = {{ openstack_region_name }} diff --git a/releasenotes/notes/clients-in-magnum-use-internalURL-af3ad82af71a88c6.yaml b/releasenotes/notes/clients-in-magnum-use-internalURL-af3ad82af71a88c6.yaml new file mode 100644 index 0000000000..0cfbd32ecf --- /dev/null +++ b/releasenotes/notes/clients-in-magnum-use-internalURL-af3ad82af71a88c6.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + In line with clients for other services used by Magnum, it now uses + endpoint_type = internalURL also for Magnum itself, Cinder and Octavia + clients. In the same tune, these services also use the globally defined + `openstack_region_name`.