Red Hat Bugzilla – Bug 1289510
Foreman uses docker0 ip address as primary interface if docker package is installed
Last modified: 2017-08-01 15:57:58 EDT
Description of problem:
While provisioning a new host which has docker package installed the primary network interface foreman is using is set to docker0 instead of eth0.
This prevents edit and rebuild operations of this host.
Version-Release number of selected component (if applicable):
Tested with Satellite 6.1.2,3,4.
Provision a new host using a Puppet module or provisioning template to install docker package.
Steps to Reproduce:
1. Provision a host using docker package
2. Go to Hosts -> All Hosts -> Select the host
3. IP Address is set to docker0 IP which is not reachable from Sat6
docker0 IP is set to primary interface
eth0 should be the primary interface used by foreman
As a workaround you can disable update_environment_from_facts: Go to Administer -> Settings -> Puppet and set update_environment_from_facts to False (default: true).
SAtellite 6.2 has a configurable list of interfaces that are to be ignored. The docker0 interface isn't part of that list out of the box, but it would make sense to include it there by default.
Settings -> Provisioning -> Ignore interfaces with matching identifier
As we now include the possibility to install Atomic hosts from Satellite, this becomes more important imo
Makes sense to change component to Provisioning?
Moving 6.2 bugs out to sat-backlog.
Created redmine issue http://projects.theforeman.org/issues/18252 from this bug
Upstream bug assigned to email@example.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18252 has been resolved.
FWIW, You can manually apply the fix from the upstream PR (https://github.com/theforeman/foreman/pull/4233) by adding "docker*" to "ignored_interface_identifiers" in the settings of Satellite.
*** Bug 1445692 has been marked as a duplicate of this bug. ***
The fix to this bug will be delivered with release 6.3 of Satellite.