charm-neutron-openvswitch/hooks/charmhelpers
Frode Nordahl ee709a5ab3
Use hosts official name for FQDN
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
2020-01-13 00:35:53 +01:00
..
cli Sync charm-helpers for Stein release 2019-04-04 10:16:55 +02:00
contrib Use hosts official name for FQDN 2020-01-13 00:35:53 +01:00
core Sync charm/ceph helpers, tox, and requirements 2019-09-30 21:43:33 -05:00
fetch Sync charm/ceph helpers, tox, and requirements 2019-09-30 21:43:33 -05:00
payload Pre-release charm-helpers sync 16.10 2016-09-30 09:08:21 -07:00
__init__.py Sync charm-helpers 2018-11-07 15:35:17 -06:00
osplatform.py Pre-release charm-helpers sync 17.02 2017-02-14 14:52:24 -08:00