]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mkcephfs, init-ceph: Warn if hostname "localhost" is seen in ceph.conf.
authorTommi Virtanen <tv@inktank.com>
Tue, 21 Aug 2012 00:06:09 +0000 (17:06 -0700)
committerTommi Virtanen <tv@inktank.com>
Tue, 21 Aug 2012 00:16:41 +0000 (17:16 -0700)
commit6a9bcc09a36e25f4e48994e9760b0d39f74b1bde
tree8c0c7973b348255bd50b6be082ad83231bd639d8
parent5ad013b575d43b074860c17a4d4d97ed72216798
mkcephfs, init-ceph: Warn if hostname "localhost" is seen in ceph.conf.

Given a ceph.conf that looks like

  [osd.42]
  host = localhost

mkcephfs used to exit with an obscure error message:

  cat: /tmp/mkcephfs.MCBIHvn4Ru/key.*: No such file or directory

"localhost" was never intended to be a valid hostname to use there.
Warn if we see it, and skip the entry. You should use the proper short
hostname of the box.

As init-ceph and mkcephfs share this library, this change affects the
sysvinit scripts too. The behavior *shouldn't* change there (localhost
entries were ignored earlier, too), but you may see this extra
warning. Which is good.

Closes: #3001
Signed-off-by: Tommi Virtanen <tv@inktank.com>
src/ceph_common.sh