Skip to content

Fixes #38972 - Use FQDN for BMC connection target#10842

Open
sakasusu0919 wants to merge 1 commit intotheforeman:developfrom
sakasusu0919:fix_38972
Open

Fixes #38972 - Use FQDN for BMC connection target#10842
sakasusu0919 wants to merge 1 commit intotheforeman:developfrom
sakasusu0919:fix_38972

Conversation

@sakasusu0919
Copy link

@sakasusu0919 sakasusu0919 commented Jan 30, 2026

Description:
Bug #38972 is caused by the following:

Even though the FQDN is configured in Foreman's BMC interface settings, Foreman  invariably specifies the IP address in the :host parameter when using the Smart Proxy BMC API.

This PR fixes this item.

Modifications in this PR

  • Fixed so that the configured FQDN is used.
    In app/models/nic/bmc.rb, adding :fqdn to args allows the FQDN to be obtained from the models class instance. In app/services/proxy_api/bmc.rb, if an FQDN is set for the BMC interface, it is used as the connection target in preference to the IP address.

As this change also requires updates on the smart-proxy side, we created the following related ticket & PRs:

Ticket
Bug #38973 IP address not retrieved when using SSH API of BMC

PR
#933

All two PRs (one in Foreman and one in smart-proxy) are ready for review.
Your feedback would be greatly appreciated.

Verification Contents:

  1. I set the FQDN for the BMC interface in the Foreman Web UI and confirmed that operations such as turning the IPMI, Redfish, and SSH providers on and off were successful.
  2. The Smart Proxy source code contains logic for the "Shell" BMC interface. However, since the Foreman web UI lacks a user interface to utilize this functionality, we conducted a code review to confirm that the current fix (related to FQDN processing) does not adversely affect or regress this "Shell" logic.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a real review, just something I noticed at first glance.

@sakasusu0919 sakasusu0919 force-pushed the fix_38972 branch 2 times, most recently from b6b8fa3 to d44d05e Compare February 2, 2026 06:24
When Foreman Web UI configures an FQDN as the BMC target, it now passes
that FQDN as the ":host" parameter to Smart Proxy's BMC API requests.

Co-Authored-By: Yusuke Hirota <hirota.yusuke@fujitsu.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments