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 1720725 - [RFE] Ability to override DHCP options and wait_after_restart option for race condition
Summary: [RFE] Ability to override DHCP options and wait_after_restart option for race...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Infoblox integration
Version: 6.5.0
Hardware: All
OS: Linux
unspecified
medium with 1 vote
Target Milestone: 6.8.0
Assignee: Lukas Zapletal
QA Contact: Radovan Drazny
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-14 16:57 UTC by Sayan Das
Modified: 2023-03-24 14:55 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-smart_proxy_dhcp_infoblox-0.0.16
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 12:58:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 28328 0 Normal Closed Add DHCP options setting 2020-10-28 17:16:51 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 12:58:53 UTC

Comment 3 Lukas Zapletal 2019-06-17 07:13:46 UTC
A customer needs to provide custom options. Currently the workaround is:

def build_host(options)
      host = ::Infoblox::Fixedaddress.new(:connection => @connection)
      host.name = options[:hostname]
      host.ipv4addr = options[:ip]
      host.mac = options[:mac]
      host.nextserver = options[:nextServer]
      host.use_nextserver = true
      host.bootfile = options[:filename]
      host.use_bootfile = true
      host.network_view = network_view
      host.options = [{"name"=> "PXE_menu_prompt","num"=> 10,"value"=> "-","vendor_class"=> "EmpirumPXE"},{"name"=> "PXE_discovery_control","num"=> 6,"value"=> "-","vendor_class"=> "EmpirumPXE"},{"name"=> "PXE_boot_menu","num"=> 9,"value"=> "-","vendor_class"=> "EmpirumPXE"},{"name"=> "PXE_boot_servers","num"=> 8,"value"=> "-","vendor_class"=> "EmpirumPXE"}]
      host
end

Additionally, it looks like their Infoblox instance processes the DHCP change for about 1-2 minute and they would like to be able to delay launch of the VM in Satellite.

Comment 4 Lukas Zapletal 2019-06-17 07:29:36 UTC
ANALYSIS:

Adding new fields to the UI/CLI/API is a bigger change which will unlikely to happen in a reasonable timeframe, but if these DHCP options do not change very often, I think I should be able to squeeze in a small feature - configurable option via infoblox.yml file. These options could be set via configuration file during deployment. Limitation is obvious, cannot be different for a single host or a host group.

For the 1-2 minutes delay I filed a PR - new global setting to do explicit delay. Note in this case browser and/or hammer timeout will need to be increased as well: https://github.com/theforeman/foreman/pull/6846

Comment 10 Bryan Kearney 2019-06-26 12:08:03 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27060 has been resolved.

Comment 11 Lukas Zapletal 2019-06-26 14:18:43 UTC
The delay is being implemented in a different BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1724228

Comment 12 Lukas Zapletal 2019-06-26 14:19:43 UTC
Please disregard my last comment, the referenced BZ is installer change.

Comment 13 Lukas Zapletal 2019-07-24 14:50:29 UTC
Backlog only, no errata.

Waiit_after_restart already implemented upstream, but the DHCP options not merged yet.

Comment 14 Bryan Kearney 2019-07-24 16:08:23 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27060 has been resolved.

Comment 17 Bryan Kearney 2019-12-16 09:01:49 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28328 has been resolved.

Comment 22 Radovan Drazny 2020-10-02 11:16:01 UTC
Tested on Satellite 6.8 Snap 17, tfm-rubygem-smart_proxy_dhcp_infoblox-0.0.16-3.el7sat.noarch.
The feature functionality is as described in the comment #4. Custom dhcp options can be added to /etc/foreman-proxy/settings.d/dhcp_infoblox.yml in the following format:

 :options:
  -
    name: "DHCP option name"
    num: 1234
    value: "A value"
    vendor_class: "A vendor class"


During the host creation, custom DHCP options are sent along to the Infoblox and added to the host record. If vendor_class is used, the option is correctly assigned to the pre-existing Options Space on Infoblox.

Comment 25 errata-xmlrpc 2020-10-27 12:58:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.8 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4366


Note You need to log in before you can comment on or make changes to this bug.