charm-neutron-openvswitch/unit_tests
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
..
__init__.py Update to run under Python 3 2017-11-20 08:54:31 -08:00
16.07-dpdk-openvswitch-switch Migrate openvswitch-switch file to avoid restarts 2017-08-23 15:39:36 -07:00
16.10-openvswitch-switch Migrate openvswitch-switch file to avoid restarts 2017-08-23 15:39:36 -07:00
package-provided-openvswitch-switch Migrate openvswitch-switch file to avoid restarts 2017-08-23 15:39:36 -07:00
pci_responses.py Update to run under Python 3 2017-11-20 08:54:31 -08:00
test_neutron_openvswitch_networking_sriov.py Replace SR-IOV systemd unit script 2019-06-28 17:37:51 +02:00
test_neutron_ovs_context.py Use hosts official name for FQDN 2020-01-13 00:35:53 +01:00
test_neutron_ovs_hooks.py Use hosts official name for FQDN 2020-01-13 00:35:53 +01:00
test_neutron_ovs_utils.py Use hosts official name for FQDN 2020-01-13 00:35:53 +01:00
test_pause_resume.py Re-license charm as Apache-2.0 2016-07-01 17:36:39 +01:00
test_pci_helper.py Update SR-IOV support for >= Mitaka 2017-02-07 14:55:32 +01:00
test_pci.py hooks: fix initial sriov configurations 2019-03-07 11:54:37 +00:00
test_utils.py Fix lint in unit test 2018-11-01 14:59:00 -05:00