Project

General

Profile

Actions

Bug #18134

closed

make check fails when hostname not properly set, but run-make-check.sh does not check this

Added by Nathan Cutler over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
hammer,jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

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:

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

Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #18135: jewel: make check fails when hostname not properly set, but run-make-check.sh does not check thisResolvedNathan CutlerActions
Copied to Ceph - Backport #18144: hammer: make check fails when hostname not properly set, but run-make-check.sh does not check thisRejectedNathan CutlerActions
Actions #1

Updated by Nathan Cutler over 7 years ago

  • Description updated (diff)
Actions #2

Updated by Nathan Cutler over 7 years ago

  • Status changed from In Progress to Fix Under Review
Actions #3

Updated by Nathan Cutler over 7 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Nathan Cutler over 7 years ago

  • Copied to Backport #18135: jewel: make check fails when hostname not properly set, but run-make-check.sh does not check this added
Actions #5

Updated by Nathan Cutler over 7 years ago

  • Backport changed from jewel to hammer,jewel
Actions #6

Updated by Nathan Cutler over 7 years ago

  • Copied to Backport #18144: hammer: make check fails when hostname not properly set, but run-make-check.sh does not check this added
Actions #7

Updated by Nathan Cutler about 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF