Project

General

Profile

Bug #18134

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

Added by Nathan Cutler 4 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
12/03/2016
Due date:
% Done:

0%

Source:
Tags:
Backport:
hammer,jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

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

Copied to Backport #18135: jewel: make check fails when hostname not properly set, but run-make-check.sh does not check this Resolved
Copied to Backport #18144: hammer: make check fails when hostname not properly set, but run-make-check.sh does not check this Rejected

History

#1 Updated by Nathan Cutler 4 months ago

  • Description updated (diff)

#2 Updated by Nathan Cutler 4 months ago

  • Status changed from In Progress to Need Review

#3 Updated by Nathan Cutler 4 months ago

  • Status changed from Need Review to Pending Backport

#4 Updated by Nathan Cutler 4 months ago

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

#5 Updated by Nathan Cutler 4 months ago

  • Backport changed from jewel to hammer,jewel

#6 Updated by Nathan Cutler 4 months ago

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

#7 Updated by Nathan Cutler about 2 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF