137
136
# DB config might have been moved to main neutron.conf in H?
138
137
CONFIGS.write(neutron_plugin_attribute(plugin, 'config'))
141
'''Grab all KS auth token config from api-paste.ini, or return empty {}'''
142
ks_auth_host = auth_token_config('auth_host')
144
# if there is no auth_host set, identity-service changed hooks
145
# have not fired, yet.
148
'auth_host': ks_auth_host,
149
'auth_port': auth_token_config('auth_port'),
150
'auth_protocol': auth_token_config('auth_protocol'),
151
'service_protocol': auth_token_config('service_protocol'),
152
'service_port': auth_token_config('service_port'),
153
'service_username': auth_token_config('admin_user'),
154
'service_password': auth_token_config('admin_password'),
155
'service_tenant_name': auth_token_config('admin_tenant_name'),
156
'auth_uri': auth_token_config('auth_uri'),
157
# quantum-gateway interface deviates a bit.
158
'keystone_host': ks_auth_host,
159
'service_tenant': auth_token_config('admin_tenant_name'),
164
139
@hooks.hook('amqp-relation-broken',
165
140
'identity-service-relation-broken',
166
141
'shared-db-relation-broken',