ee709a5ab3
The current implementations use of a specific interface to build FQDN from has the undesired side effect of the ``nova-compute`` and ``neutron-openvswitch`` charms ending up with using different hostnames in some situations. It may also lead to use of a identifier that is mutable throughout the lifetime of a deployment. Use of a specific interface was chosen due to ``socket.getfqdn()`` not giving reliable results (https://bugs.python.org/issue5004). This patch gets the FQDN by mimicking the behaviour of a call to ``hostname -f`` with fallback to shortname on failure. Add relevant update from c-h. Depends-On: I82db81937e5a46dc6bd222b7160ca1fa5b190c10 Change-Id: Ic8f8742261b773484687985aa0a366391cd2737a Closes-Bug: #1839300
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
# stein
|
|
###############################################################################
|
|
# [ WARNING ]
|
|
# Configuration file maintained by Juju. Local changes may be overwritten.
|
|
# Config managed by neutron-openvswitch charm
|
|
# Service restart triggered by remote application: {{ restart_trigger }}
|
|
# {{ restart_trigger_neutron }}
|
|
###############################################################################
|
|
[DEFAULT]
|
|
verbose = {{ verbose }}
|
|
debug = {{ debug }}
|
|
use_syslog = {{ use_syslog }}
|
|
state_path = /var/lib/neutron
|
|
bind_host = 0.0.0.0
|
|
bind_port = 9696
|
|
{% if network_device_mtu -%}
|
|
network_device_mtu = {{ network_device_mtu }}
|
|
{% endif -%}
|
|
{% if core_plugin -%}
|
|
core_plugin = {{ core_plugin }}
|
|
{% endif -%}
|
|
{% if transport_url %}
|
|
transport_url = {{ transport_url }}
|
|
{% endif %}
|
|
|
|
{% if use_fqdn_hint and host_fqdn -%}
|
|
host = {{ host_fqdn }}
|
|
{% endif -%}
|
|
|
|
api_paste_config = /etc/neutron/api-paste.ini
|
|
auth_strategy = keystone
|
|
rpc_response_timeout = {{ rpc_response_timeout }}
|
|
|
|
{% include "section-zeromq" %}
|
|
|
|
{% include "section-oslo-messaging-rabbit-ocata" %}
|
|
|
|
{% include "section-oslo-notifications" %}
|
|
|
|
[QUOTAS]
|
|
|
|
[DEFAULT_SERVICETYPE]
|
|
|
|
[AGENT]
|
|
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
|
|
report_interval = {{ report_interval }}
|
|
|
|
{% include "parts/agent" %}
|
|
|
|
[keystone_authtoken]
|
|
signing_dir = /var/lib/neutron/keystone-signing
|
|
|
|
[oslo_concurrency]
|
|
lock_path = $state_path/lock
|