From d1c4e5b640b8093ba29326483d33236cc51cfb5a Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 13 Nov 2014 18:49:10 +0100 Subject: [PATCH] vstart: use hostname -s instead of fqdn Otherwise init-ceph.in will fail if hostname returns a fqdn. It validates the host entry of the [osd.x] section does not contain dots. Signed-off-by: Loic Dachary --- src/vstart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vstart.sh b/src/vstart.sh index c0dcf6c3920..469180d7a23 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -281,7 +281,7 @@ test -d gmon && $SUDO rm -rf gmon/* # figure machine's ip -HOSTNAME=`hostname` +HOSTNAME=`hostname -s` if [ -n "$ip" ]; then IP="$ip" else -- 2.47.3