The cluster verify checks for fqdn are done via address lookups, and
there we actually use the FQDN. However, for the ssh hostname check
which is done at node add time, we rely on the default of the “hostname”
command. And Debian for example recently changed the default to return
the shortname unless one passes ‘--fqdn’.

This patch is imported from the Debian packaging.
---
 lib/ssh.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/ssh.py b/lib/ssh.py
index 87c25c9..31fbdbb 100644
--- a/lib/ssh.py
+++ b/lib/ssh.py
@@ -212,7 +212,7 @@ class SshRunner:
         - detail: string with details
 
     """
-    retval = self.Run(node, 'root', 'hostname')
+    retval = self.Run(node, 'root', 'hostname --fqdn')
 
     if retval.failed:
       msg = "ssh problem"
-- 
1.6.5.4

Reply via email to