KS endpoint type lookup for Neutron

This commit is contained in:
Pete Birley 2017-03-07 01:26:08 +00:00
parent 97fd35009a
commit 3df5c19235
4 changed files with 43 additions and 41 deletions

View File

@ -21,7 +21,7 @@ ansible localhost -vvv -m kolla_keystone_service -a "service_name=neutron \
service_type=network \ service_type=network \
description='Openstack Networking' \ description='Openstack Networking' \
endpoint_region={{ .Values.keystone.neutron_region_name }} \ endpoint_region={{ .Values.keystone.neutron_region_name }} \
url='{{ include "helm-toolkit.endpoint_neutron_api_internal" . }}' \ url='{{ tuple "network" "admin" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}' \
interface=admin \ interface=admin \
region_name={{ .Values.keystone.admin_region_name }} \ region_name={{ .Values.keystone.admin_region_name }} \
auth='{{ include "helm-toolkit.keystone_auth" .}}'" \ auth='{{ include "helm-toolkit.keystone_auth" .}}'" \
@ -31,7 +31,7 @@ ansible localhost -vvv -m kolla_keystone_service -a "service_name=neutron \
service_type=network \ service_type=network \
description='Openstack Networking' \ description='Openstack Networking' \
endpoint_region={{ .Values.keystone.neutron_region_name }} \ endpoint_region={{ .Values.keystone.neutron_region_name }} \
url='{{ include "helm-toolkit.endpoint_neutron_api_internal" . }}' \ url='{{ tuple "network" "internal" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}' \
interface=internal \ interface=internal \
region_name={{ .Values.keystone.admin_region_name }} \ region_name={{ .Values.keystone.admin_region_name }} \
auth='{{ include "helm-toolkit.keystone_auth" .}}'" \ auth='{{ include "helm-toolkit.keystone_auth" .}}'" \
@ -41,7 +41,7 @@ ansible localhost -vvv -m kolla_keystone_service -a "service_name=neutron \
service_type=network \ service_type=network \
description='Openstack Networking' \ description='Openstack Networking' \
endpoint_region={{ .Values.keystone.neutron_region_name }} \ endpoint_region={{ .Values.keystone.neutron_region_name }} \
url='{{ include "helm-toolkit.endpoint_neutron_api_internal" . }}' \ url='{{ tuple "network" "public" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}' \
interface=public \ interface=public \
region_name={{ .Values.keystone.admin_region_name }} \ region_name={{ .Values.keystone.admin_region_name }} \
auth='{{ include "helm-toolkit.keystone_auth" .}}'" \ auth='{{ include "helm-toolkit.keystone_auth" .}}'" \

View File

@ -16,16 +16,14 @@
debug = {{ .Values.metadata_agent.default.debug }} debug = {{ .Values.metadata_agent.default.debug }}
# Neutron credentials for API access # Neutron credentials for API access
auth_url = {{ tuple "identity" "admin" "admin" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}
auth_plugin = password auth_plugin = password
auth_url = {{ include "helm-toolkit.endpoint_keystone_admin" . }}
auth_uri = {{ include "helm-toolkit.endpoint_keystone_internal" . }}
auth_region = {{ .Values.keystone.neutron_region_name }} auth_region = {{ .Values.keystone.neutron_region_name }}
admin_tenant_name = service project_domain_name = {{ .Values.keystone.neutron_project_domain }}
project_domain_id = default project_name = {{ .Values.keystone.neutron_project_name }}
user_domain_id = default user_domain_name = {{ .Values.keystone.neutron_user_domain }}
project_name = service username = {{ .Values.keystone.neutron_user }}
username = {{ .Values.keystone.admin_user }} password = {{ .Values.keystone.neutron_password }}
password = {{ .Values.keystone.admin_password }}
endpoint_type = adminURL endpoint_type = adminURL
# Nova metadata service IP and port # Nova metadata service IP and port

View File

@ -47,13 +47,14 @@ router_auto_schedule = True
transport_url = rabbit://{{ .Values.rabbitmq.admin_user }}:{{ .Values.rabbitmq.admin_password }}@{{ .Values.rabbitmq.address }}:{{ .Values.rabbitmq.port }} transport_url = rabbit://{{ .Values.rabbitmq.admin_user }}:{{ .Values.rabbitmq.admin_password }}@{{ .Values.rabbitmq.address }}:{{ .Values.rabbitmq.port }}
[nova] [nova]
auth_url = {{ include "helm-toolkit.endpoint_keystone_internal" . }} memcached_servers = "{{ .Values.memcached.host }}:{{ .Values.memcached.port }}"
auth_plugin = password auth_version = v3
project_domain_id = default auth_url = {{ tuple "identity" "internal" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}
user_domain_id = default auth_type = password
endpoint_type = internal
region_name = {{ .Values.keystone.nova_region_name }} region_name = {{ .Values.keystone.nova_region_name }}
project_name = service project_domain_name = {{ .Values.keystone.nova_project_domain }}
project_name = {{ .Values.keystone.nova_project_name }}
user_domain_name = {{ .Values.keystone.nova_user_domain }}
username = {{ .Values.keystone.nova_user }} username = {{ .Values.keystone.nova_user }}
password = {{ .Values.keystone.nova_password }} password = {{ .Values.keystone.nova_password }}
@ -73,11 +74,14 @@ connection = mysql+pymysql://{{ .Values.database.neutron_user }}:{{ .Values.data
max_retries = -1 max_retries = -1
[keystone_authtoken] [keystone_authtoken]
auth_url = {{ include "helm-toolkit.endpoint_keystone_internal" . }} memcached_servers = "{{ .Values.memcached.host }}:{{ .Values.memcached.port }}"
auth_version = v3
auth_url = {{ tuple "identity" "internal" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}
auth_type = password auth_type = password
project_domain_id = default region_name = {{ .Values.keystone.neutron_region_name }}
user_domain_id = default project_domain_name = {{ .Values.keystone.neutron_project_domain }}
project_name = service project_name = {{ .Values.keystone.neutron_project_name }}
user_domain_name = {{ .Values.keystone.neutron_user_domain }}
username = {{ .Values.keystone.neutron_user }} username = {{ .Values.keystone.neutron_user }}
password = {{ .Values.keystone.neutron_password }} password = {{ .Values.keystone.neutron_password }}

View File

@ -81,7 +81,8 @@ network:
metadata: 8775 metadata: 8775
memcached: memcached:
address: "memcached:11211" host: memcached
port: 11211
rabbitmq: rabbitmq:
address: rabbitmq address: rabbitmq
@ -91,18 +92,26 @@ rabbitmq:
keystone: keystone:
admin_user: "admin" admin_user: "admin"
admin_user_domain: "default"
admin_password: "password" admin_password: "password"
admin_project_name: "admin" admin_project_name: "admin"
admin_project_domain: "default"
admin_region_name: "RegionOne" admin_region_name: "RegionOne"
domain_name: "default"
tenant_name: "admin"
neutron_user: "neutron" neutron_user: "neutron"
neutron_user_domain: "default"
neutron_user_role: "admin"
neutron_password: "password" neutron_password: "password"
neutron_project_name: "service"
neutron_project_domain: "default"
neutron_region_name: "RegionOne" neutron_region_name: "RegionOne"
nova_user: "nova" nova_user: "nova"
nova_user_domain: "default"
nova_user_role: "admin"
nova_password: "password" nova_password: "password"
nova_project_name: "service"
nova_project_domain: "default"
nova_region_name: "RegionOne" nova_region_name: "RegionOne"
database: database:
@ -293,39 +302,30 @@ resources:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
glance: compute:
hosts: name: nova
default: glance-api
type: image
path: null
scheme: 'http'
port:
api: 9292
registry: 9191
nova:
hosts: hosts:
default: nova-api default: nova-api
path: "/v2/%(tenant_id)s" path: "/v2/%(tenant_id)s"
type: compute
scheme: 'http' scheme: 'http'
port: port:
api: 8774 api: 8774
metadata: 8775 metadata: 8775
novncproxy: 6080 novncproxy: 6080
keystone: identity:
name: keystone
hosts: hosts:
default: keystone-api default: keystone-api
path: /v3 path: /v3
type: identity
scheme: 'http' scheme: 'http'
port: port:
admin: 35357 admin: 35357
public: 5000 api: 5000
neutron: network:
name: neutron
hosts: hosts:
default: neutron-server default: neutron-server
path: null path: null
type: network
scheme: 'http' scheme: 'http'
port: port:
api: 9696 api: 9696