Feature #8432
closedSupport for non-direct communication
Description
We need to make use of proxy http proxy plugin. From Greg's mail:
1) The Host registering with Foreman. This is a JSON POST to Foreman,
and generally works OK even through NAT
2) The reboot command at the end of the orchestration queue is direct
from Foreman to Host.
3) The request to refresh facts is direct from Foreman to Host
1) and 2) can be implemented as a smartproxy plugin adding
post /discovery/create
post /discovery/update (for uploading new facts on existing host)
post /discovery/reboot
as routes. The discovery image will need to be updated to try either
the proxy or core URLs, depending on the network config.
Updated by Lukas Zapletal about 10 years ago
- Related to Tracker #8332: [Discovery 2.0] Usability alignment and autoprovisioning added
Updated by Lukas Zapletal about 10 years ago
- Category set to Discovery plugin
- Priority changed from Normal to High
This is our top priority for the next scrum.
Updated by Lukas Zapletal about 10 years ago
Notes from todays scrum:
Foreman to Image communication:
Reboot command use BMC API "shell provider" which we will extend with possibility to forward to a different BMC API if IP/hostname is provided.
Refresh facts will be implemented as a simple proxy controller in the new proxy plugin. Let's investigate if the support can be based of prefix like /proxy/:IP/original/path so other calls can be easily added just by adding new controller/action pairs (or whole paths) into an array or something. Beware of security, unlisted actions must not be proxied (let's write a functional test for this).
Image to Foreman communication:
Although Create discovered host (JSON POST) works fine with NAT, we need to proxy that as well. We can take the same approach as for Refresh Facts call, but the direction is opposite here.
Delivery:
The "proxy plugin" needs to have a name, but everything with a proxy in it looks strange (foreman-proxy-discovery-proxy). A patch into BMC proxy shell provider will be needed too.
Updated by Shlomi Zadok almost 10 years ago
- Related to Feature #8514: Add support for requests to smart proxy discovery plugin added
Updated by Shlomi Zadok almost 10 years ago
- Related to deleted (Feature #8514: Add support for requests to smart proxy discovery plugin)
Updated by Shlomi Zadok almost 10 years ago
- Blocked by Feature #8514: Add support for requests to smart proxy discovery plugin added
Updated by Shlomi Zadok almost 10 years ago
Currently supports:
- creating facts (receive facts from discovered host and post them to Foreman)
- updating facts (receive ip from foreman and get facts from discovered host)
@todo:
Tests, secured reboot action
Updated by The Foreman Bot almost 10 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman_discovery/pull/107 added
- Pull request deleted (
)
Updated by Lukas Zapletal almost 10 years ago
- Status changed from Ready For Testing to Closed
cd560e5..c081812
Updated by Lukas Zapletal almost 10 years ago
- Related to Tracker #8172: Isolate Client Communication through a Capsule added
Updated by Eric Helms almost 10 years ago
- Related to deleted (Tracker #8172: Isolate Client Communication through a Capsule)
Updated by Eric Helms almost 10 years ago
- Blocks Tracker #8172: Isolate Client Communication through a Capsule added