Project

General

Profile

Actions

Feature #9490

closed

Settings -> Discovered provide setting to specify fact to use for hostname

Added by Bryan Kearney about 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Discovery plugin
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1186537
Description of problem:
RFE

Would like to be able to set the fact that is used for the hostname of the system. e.g. uuid, asset_tag, serialnumber, etc.. (or combination of tags.. nice to have.)

By default this is set in /opt/rh/../models/hosts/discovered.rb as:
fact_name = Setting[:discovery_fact] || 'macaddress'
hostname = facts[fact_name].try(:downcase).try(:gsub,/:/,'').try(:sub,/^/,'mac')

Issue is changing this fact changes the population of the macaddress on provisioning as well. Hostname setting should really be separate.

Version-Release number of selected component (if applicable): 6.0.7

How reproducible: Always

Steps to Reproduce:
1. Set discovery_fact to serialnumber
2. Serialnumber gets substituted for macaddress when provisioning.
3.

Actual results:
as above

Expected results:
have separate setting that allows these two values to be independent of one another.

Additional info:

Actions #1

Updated by Bryan Kearney about 9 years ago

Patches in the downstream bug

Actions #2

Updated by Lukas Zapletal about 9 years ago

  • Assignee deleted (Lukas Zapletal)

Let's do this for Discovery 2.1 release. Easy enough, note there is implementation patch in the downstream BZ.

Actions #3

Updated by Lukas Zapletal about 9 years ago

Actions #4

Updated by Lukas Zapletal about 9 years ago

  • Category set to Discovery plugin
  • Target version set to Discovery Plugin 3.0.0
Actions #5

Updated by Lukas Zapletal about 9 years ago

  • Related to deleted (Tracker #9018: Foreman Discovery 2.1 features)
Actions #6

Updated by Ori Rabin about 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Ori Rabin
Actions #7

Updated by Lukas Zapletal almost 9 years ago

  • Target version changed from Discovery Plugin 3.0.0 to Discovery Plugin 4.0.0
Actions #8

Updated by Lukas Zapletal over 8 years ago

  • Target version deleted (Discovery Plugin 4.0.0)

Ori what is the status? I am pulling this off 4.0 version.

Actions #9

Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/213 added
  • Pull request deleted ()
Actions #10

Updated by The Foreman Bot about 8 years ago

  • Pull request https://github.com/theforeman/foreman_discovery/pull/246 added
Actions #11

Updated by Imri Zvik about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF