From 5dd1553cca7f7e62eebce75e1d936fc211b239ec Mon Sep 17 00:00:00 2001 From: Luis Fernandez Alvarez Date: Tue, 25 Sep 2012 17:33:59 +0200 Subject: 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: I3164d9a36df2b8484bbf9a57879c31fa0e342503 --- nova/flags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/flags.py') diff --git a/nova/flags.py b/nova/flags.py index 76766b706..e39f94457 100644 --- a/nova/flags.py +++ b/nova/flags.py @@ -295,7 +295,7 @@ global_opts = [ default='nova.scheduler.manager.SchedulerManager', help='full class name for the Manager for scheduler'), cfg.StrOpt('host', - default=socket.gethostname(), + default=socket.getfqdn(), help='Name of this node. This can be an opaque identifier. ' 'It is not necessarily a hostname, FQDN, or IP address. ' 'However, the node name must be valid within ' -- cgit