Project

General

Profile

Actions

Bug #708

closed

Domain checking code doubling up domain in hostnames

Added by Frank Sweetser over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

In 0.1-6, foreman began checking to ensure that hostnames which have the domain column set to a non-null value end in the matching domain value. However, the code that does the check is doing case-sensitive matching, which can cause hosts to have doubled up hostnames. For example, "host.domain.com" might become "host.domain.com.DOMAIN.COM", which of course means that future check-ins, reports, etc don't get associated with that host. Instead, an empty new record for "host.domain.com" appears to get created (from the reports, perhaps?) which needs to be deleted after fixing the original record.

Trivial patch that fixes the issue attached.


Files

Actions #1

Updated by Frank Sweetser over 13 years ago

  • Status changed from New to Ready For Testing
  • % Done changed from 0 to 100
Actions #2

Updated by Ohad Levy over 13 years ago

  • Category set to Host creation
  • Status changed from Ready For Testing to Closed
  • Assignee set to Frank Sweetser
  • Target version set to 0.2
Actions

Also available in: Atom PDF