Project

General

Profile

Actions

Bug #6330

closed

ceph-deploy does not use /etc/hosts entry making functional DNS a dependency

Added by Nigel Williams over 10 years ago. Updated over 10 years ago.

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

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
4 - irritation
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This is to avoid what I consider to be a bug in Linux where some tools do not respect the /etc/nsswitch.conf settings, and only query nameservers for results. For example, add NewHostName to /etc/hosts pointing to localhost, you can ping the host, but you won't be able to 'dig' or 'host' the name without getting a NXDOMAIN error. However, 'getent hosts NewHostName' will work.

ceph-deploy is now resolving names using the same buggy tools, so it is no longer possible to use /etc/hosts file entries in order to reference hosts, since this causes ceph-deploy to fail.

FIX: The test for a hostname should use 'getent hosts SomeHostName' to check name resolution.

Actions

Also available in: Atom PDF