]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
sysvinit: use known hostname $host instead of (incorrectly) recalculating
authorSage Weil <sage@inktank.com>
Wed, 22 May 2013 16:47:03 +0000 (09:47 -0700)
committerSage Weil <sage@inktank.com>
Wed, 22 May 2013 20:26:01 +0000 (13:26 -0700)
We would need to do hostname -s on the remote node, not the local one.
But we already have $host; use it!

Reported-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit caa15a34cb5d918c0c8b052cd012ec8a12fca150)

src/init-ceph.in

index a9ee60b3280a8f72a09231b1b58c91af30a9ec0c..e2fb78592e912f869f391750b6f2a9b5c05ed615 100644 (file)
@@ -320,7 +320,7 @@ for name in $what; do
                        "$id" \
                        "${osd_weight:-${defaultweight:-1}}" \
                        root=default \
-                       host="$(hostname -s)" \
+                       host="$host" \
                        $osd_location \
                        || :
                fi