[Satellite 6] - MAC address of host is changed making provisioning fail

Solution Unverified - Updated -

Issue

  • After puppet facts are uploaded to Satellite a MAC address for the host, which facts are being uploaded, is set to different value. This happens if the host has more than one interface. When rebuilding the host, it can lead to DHCP conflict errors like this
DHCP entry ([RestClient::Conflict]: 409 Conflict) for proxy https://$host:9090/dhcp/usr/share/foreman/lib/proxy_api/dhcp.rb:66:in `rescue in set'
/usr/share/foreman/lib/proxy_api/dhcp.rb:62:in `set'
/usr/share/foreman/lib/net/dhcp/record.rb:28:in `create'
/usr/share/foreman/app/models/concerns/orchestration/dhcp.rb:22:in `set_dhcp'

Rolling back due to a problem: [Create DHCP Settings for host    9   failed  [#<Host::Managed id: 32, name: "$host", ip: "$ip", last_compile: "2015-05-22 05:24:40", last_freshcheck: nil, last_report: "2015-05-22 05:24:33", updated_at: "2015-05-22 05:24:44", source_file_id: nil, created_at: "2015-05-21 01:15:47", mac: "$mac", root_pass: "rootpass", serial: nil, puppet_status: 0, domain_id: 1, architecture_id: 1, operatingsystem_id: 2, environment_id: 5, subnet_id: 1, ptable_id: 11, medium_id: 7, build: false, comment: "", disk: "", installed_at: "2015-05-21 01:25:19", model_id: 2, hostgroup_id: 4, owner_id: 3, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: 1, certname: "host", image_id: nil, organization_id: 3, location_id: 2, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: "build", content_source_id: 1>, :set_dhcp]]
Create DHCP reservation for $host-$mac/$ip
Failed to perform rollback on Remove DHCP Settings for $host - ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::Conflict]: 409 Conflict) for proxy https://$host:9090/dhcp
Failed to save: Create DHCP Settings for $host task failed with the following error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::Conflict]: 409 Conflict) for proxy https://$host:9090/dhcp, Failed to perform rollback on Remove DHCP Settings for $host - ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::Conflict]: 409 Conflict) for proxy https://$host:9090/dhcp

Environment

  • Red Hat Satellite 6.0
  • Red Hat Satellite 6.1 Beta with host having 2 or more network interfaces

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content