The standard behaviour of the 'gethostname' function in Python differs from
Linux to Windows. A common Linux configuration returns the FQDN, while a
Windows one returns only the host name.
To resolve inconsistent node naming in deployments that mix windows and
Linux, it is proposed to use 'getfqdn' as default function instead of
'gethostname'. This is function is more predictable in all cases.
Reviewed: https:/ /review. openstack. org/13636 github. com/openstack/ nova/commit/ 5dd1553cca7f7e6 2eebce75e1d936f c211b239ec
Committed: http://
Submitter: Jenkins
Branch: master
commit 5dd1553cca7f7e6 2eebce75e1d936f c211b239ec
Author: Luis Fernandez Alvarez <email address hidden>
Date: Tue Sep 25 17:33:59 2012 +0200
Replaced default hostname function from gethostname to getfqdn
Fixes bug 1055503
The standard behaviour of the 'gethostname' function in Python differs from
Linux to Windows. A common Linux configuration returns the FQDN, while a
Windows one returns only the host name.
To resolve inconsistent node naming in deployments that mix windows and
Linux, it is proposed to use 'getfqdn' as default function instead of
'gethostname'. This is function is more predictable in all cases.
Change-Id: I3164d9a36df2b8 484bbf9a57879c3 1fa0e342503