Bug 2170908
| Summary: | No proper documentation is present that explains how to use iPXE for Foreman Discovery method | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sayan Das <saydas> |
| Component: | Documentation | Assignee: | Zuzana Lena Ansorgova <zuansorg> |
| Documentation sub component: | default | QA Contact: | |
| Status: | ASSIGNED --- | Docs Contact: | |
| Severity: | high | ||
| Priority: | medium | CC: | zuansorg |
| Version: | 6.13.0 | Keywords: | Triaged |
| Target Milestone: | Unspecified | Flags: | mdolezel:
needinfo?
(zuansorg) |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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
Sayan Das
2023-02-17 15:46:37 UTC
Some notes: A) We can get the discovery successfully completed, by additionally running "satellite-installer --foreman-proxy-http true" on the satellite and opening port 8000 in firewall. B) While point A sorts the issue with Discovery itself, Once the host is discovered, I can't create the host from Satellite UI due to this Nasty BUG https://bugzilla.redhat.com/show_bug.cgi?id=2069324#c4 which we haven't fixed ( I don't know why ) C) So I use hammer command and now I can create a host profile from Discovered hosts and Submit it for build i.e. hammer discovery provision --name mac525400fea371 --hostgroup-id 1 --organization-id 1 --location-id 2 --new-name rhel79 --subnet-id 1 --pxe-loader 'iPXE Embedded' --build true And that continues to build the host via iPXE approach. One more thing I discovered as a part of the same testing. After enabling the http feature in Comment 1, Everything works fine when the deployment is happening via Satellite. But When we try to discover the system ( using iPXE ) within a Capsules network, It will fail at the very first Network Boot. Reason: Capsule's IP is not in the list of trusted_proxies of Satellite\Foreman Solution: ON satellite add the IP of the capsule ( 192.168.124.3/24 ) as a trusted proxy along with the other localhost entries. satellite-installer --foreman-trusted-proxies 127.0.0.1/8 --foreman-trusted-proxies ::1 --foreman-trusted-proxies 192.168.124.3/24 The discovery still fails at some later stage but for now, These much are good enough (In reply to Sayan Das from comment #2) > One more thing I discovered as a part of the same testing. > > After enabling the http feature in Comment 1, Everything works fine when the > deployment is happening via Satellite. > > But When we try to discover the system ( using iPXE ) within a Capsules > network, It will fail at the very first Network Boot. > > > Reason: Capsule's IP is not in the list of trusted_proxies of > Satellite\Foreman > > Solution: ON satellite add the IP of the capsule ( 192.168.124.3/24 ) as a > trusted proxy along with the other localhost entries. > > satellite-installer --foreman-trusted-proxies 127.0.0.1/8 > --foreman-trusted-proxies ::1 --foreman-trusted-proxies 192.168.124.3/24 > > The discovery still fails at some later stage but for now, These much are > good enough FYI https://bugzilla.redhat.com/show_bug.cgi?id=2171295 |