Comment 18 for bug 1839300

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (stable/19.10)

Reviewed: https://review.opendev.org/702172
Committed: https://git.openstack.org/cgit/openstack/charm-nova-compute/commit/?id=66405e2092d8739a66e40ea054827d842fa97924
Submitter: Zuul
Branch: stable/19.10

commit 66405e2092d8739a66e40ea054827d842fa97924
Author: Frode Nordahl <email address hidden>
Date: Fri Jan 10 09:13:34 2020 +0100

    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.

    Change-Id: I82db81937e5a46dc6bd222b7160ca1fa5b190c10
    Closes-Bug: #1839300
    (cherry-picked from 1869bfbc9711eac157821f8a4702409822c0842e)