Bug 1411472
Summary: | Content Host registration may make bad choice of Primary/RemoteExec interface if multi-nic | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Dylan Gross <dgross> |
Component: | Hosts | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2.6 | CC: | ahumbe, bkearney, dgross, hmore, hshukla, inecas, jcallaha, ktordeur, mhulan, nshaik |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-09-04 18:05:58 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dylan Gross
2017-01-09 19:50:43 UTC
In this case I think changing remote_execution_fallback_proxy setting to yes (Administer -> Settings -> RemoteExecution) would help. AFAIK it would go over all interfaces, checking the attached proxy via subnet and using it if it has REX feature available. A good explanation of the determine process can be found in upstream manual at https://theforeman.org/plugins/foreman_remote_execution/0.3/index.html#4.1Determiningthesmartproxyforhost and the product documentation can be found at https://access.redhat.com/documentation/en/red-hat-satellite/6.2/paged/host-configuration-guide/113-configuring-global-settings Regarding the remote_execution_fallback_proxy: I set it to 'yes' on my lab satellite, and attempted to 'subscription-manager register' host that had multiple NICs. eth0 was a private network (unaccessible to the Satellite) with link up eth1 was public and accessible to satellite It still chose eth0 as it's Primary and Remote Execution interface for the host. I then attempted a job run against the host, in case the setting had effects at the time of job run, but it still timed out trying to reach the IP of eth0. My (possibly incorrect) interpretation of that parameter has always been that if the registered host's current capsule did not have Remote Execution capabilities, it would search for another capsule in the environment that does, when a Remote execution was attempted. However, if my interpretation is correct, that would still not allow it to exec against the private IP that is chosen for the host's REX interface. Ah, you're right about the setting, I mixed that sorry. The question is how should we detect the primary or rex interface based on incoming facts. How would you pick the right interface from array of ip addresses and identifiers? We'd have to let users somehow specify which interface they consider as primary/provision/rex. Maybe through some custom fact. (In reply to Marek Hulan from comment #10) > The question is how should we detect the primary or rex interface based on > incoming facts. How would you pick the right interface from array of ip > addresses and identifiers? We'd have to let users somehow specify which > interface they consider as primary/provision/rex. Maybe through some custom > fact. Hi Marek, IMHO, I think of 2 possibilities here. 1. Create a new option in subscription-manager utility to let the end-user choose the primary nic which can be used for REX as well. 2. Enhance bootstrap.py script to allow an option for selecting the primary interface, which can be updated through an API call. Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. Some notes on this * bootstrap.py already supports from comment 11 "2. Enhance bootstrap.py script to allow an option for selecting the primary interface, which can be updated through an API call." * see Providing the IP address to Foreman section of https://github.com/Katello/katello-client-bootstrap/blob/master/README.md Given this, and the priority of other items, we will keep this as WONTFIX. |