Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2170845

Summary: Example missing for "--foreman-proxy-dhcp-ipxefilename" option in provisioing guide when an external Capsule will be used for iPXE
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: DocumentationAssignee: Marie Hornickova <mdolezel>
Documentation sub component: default QA Contact:
Status: CLOSED NOTABUG Docs Contact:
Severity: medium    
Priority: medium    
Version: 6.13.0   
Target Milestone: Unspecified   
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: 2023-02-19 16:53:43 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 Sayan Das 2023-02-17 12:09:35 UTC
Document URL: 

https://dxp-docp-prod.apps.ext-waf.spoke.prod.us-west-2.aws.paas.redhat.com/documentation/en-us/red_hat_satellite/6.13/html-single/provisioning_hosts/index?lb_target=preview#

Section Number and Name: 

Chapter 5. Configuring iPXE to Reduce Provisioning Times

Point 19 of "5.1. Booting Virtual Machines"

Point 17 of "5.2. Chainbooting iPXE from PXELinux"


Describe the issue: 

We mention what needs to be done with "--foreman-proxy-dhcp-ipxefilename" in case of satellite i.e.

~~~
On Satellite Server, run:

satellite-installer --foreman-proxy-dhcp-ipxefilename "http://satellite.example.com/unattended/iPXE?bootstrap=1"

~~~

But we don't mention anything about capsule. So when user is not using this option on capsule, The dhcpd.conf gets generated with following segment 

if exists user-class and option user-class = "iPXE" {
  filename "http://capsule613.lab.example.com:8000/unattended/iPXE";

which i believe is not correct. 


Suggestions for improvement: 

Assuming my assumption is correct and from what i can see as an example in https://access.redhat.com/documentation/en-us/red_hat_satellite/6.10/html/provisioning_guide/configuring_networking-configuring_gpxe_to_reduce_provisioning_times#booting_virtual_machines ,  I would prpose to add one more point in 6.13 doc , to include 


~~~
In any external capsule Server, run:

satellite-installer --foreman-proxy-dhcp-ipxefilename "http://capsule.example.com:8000/unattended/iPXE?bootstrap=1"

~~~


Additional information: 

We seem to be skipping this part since 6.11 docs. So please confirm with foreman\satellite SMEs if my observation is wrong here or else we should consider my proposal here.

Comment 2 Sayan Das 2023-02-19 16:53:43 UTC
I tested today and It seems, we don't need to do anything extra for External Capsules and the default configuration i.e.

if exists user-class and option user-class = "iPXE" {
  filename "http://capsule613.lab.example.com:8000/unattended/iPXE";


works fine for iPXE or iPXE via PXELinux.


Closing this bug