Project

General

Profile

Actions

Feature #8556

open

Resolve interface.name when instantiating ProxyAPI::BMC

Added by Nacho Barrientos over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
BMC
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,

When a ProxyAPI::BMC object is created for a given host in order to do for instance power operations on it, the 'host_ip' attribute is initialized directly with the value of the 'ip' attribute of the Nic::BMC object (see app/models/nic/bmc.rb).:

15       ProxyAPI::BMC.new({ :host_ip  => ip,
16                           :url      => proxy.url,
17                           :user     => username,
18                           :password => password })

In our environment, we heavily rely on DNS to know the IP address of the BMC, especially during IP renumbering campaigns (when the IP address of the management interface changes, basically). It would be indeed reasonable to ask the people who are responsible for the network operation to update the IP field in Foreman at the same time however we'd like to keep their workflow as tiny as possible.

So, I'd like to propose to (maybe optionally via a configuration switch) resolve the FQDN of the interface when creating the proxy to avoid this problem. Or, alternatively, to pass the FQDN directly to the Foreman proxy and let the resolving happen on the other end.

Not sure I've explained myself clearly or if I've justified what I'm asking for enough, so feel free to ask whatever thing you'd like :)


Related issues 1 (0 open1 closed)

Related to Foreman - Refactor #7456: Extract primary interface from hostClosedGreg Sutcliffe09/16/2014Actions
Actions

Also available in: Atom PDF