Bug #18134
Updated by Nathan Cutler over 7 years ago
On a machine where "hostname --fqdn" fails, several tests in "make check" also fail.
This is easily fixed by adding two lines to /etc/hosts
The fix is to add a simple test for this to "run-make-check.sh"
Log sample from failed "make check" run:
<pre>
FAIL: test/cephtool-test-osd.sh
===============================
hostname: Name or service not known
FAIL: test/cephtool-test-mon.sh
===============================
hostname: Name or service not known
141,1 0%
File "/usr/lib64/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/home/smithfarm/ceph/src/ceph', 'osd', 'pool', 'stats', 'rep_pool']' returned non-zero exit status 1
FAIL: test/cephtool-test-osd.sh
===============================
hostname: Name or service not known
FAIL: test/cephtool-test-mon.sh
===============================
hostname: Name or service not known
FAIL: test/cephtool-test-mds.sh
===============================
hostname: Name or service not known
</pre>