Bug 1317659

Summary: foreman-installer --scenario capsule fails on system with enp4s0 like network cards
Product: Red Hat Satellite Reporter: Elyézer Rezende <erezende>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, cwelton, stbenjam
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 12:39:58 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 Elyézer Rezende 2016-03-14 19:19:12 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Get a system with enp4s0 like named nerwork card
2. run `foreman-installer --scenario capsule ...` enabling dns and dhcp features

Actual results:
The installer tries to find eth0 interface and fail

Expected results:
The installer should identify the default card and not just look for eth0.


Additional info:

[root@sat-capsule ~]# foreman-installer --scenario capsule --parent-fqdn "sat-server.example.com" --register-in-foreman "true" --foreman-base-url                    "https://sat-server.example.com" --trusted-hosts "sat-server.example.com" --trusted-hosts "sat-capsule.example.com" --oauth-consumer-key "c0n5um3rk3y" --oauth-consumer-secret "c0n5um3r53cr3t" --pulp-oauth-secret "pulp53cr3t" --certs-tar "certs.tar" --dns true --dhcp true
Preparing installation Done                                    
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/foreman-installer/capsule.log

Relevant log:

[ERROR 2016-03-14 14:46:01 main] Errors encountered during run:
[ERROR 2016-03-14 14:46:01 main]  Could not get the ip address from fact ipaddress_eth0 at /usr/share/foreman-installer/modules/foreman_proxy/manifests/proxydhcp.pp:8 on node sat-capsule.example.com
[ERROR 2016-03-14 14:46:01 main]  Could not get the ip address from fact ipaddress_eth0 at /usr/share/foreman-installer/modules/foreman_proxy/manifests/proxydhcp.pp:8 on node sat-capsule.example.com

Comment 2 Stephen Benjamin 2016-10-14 12:39:58 UTC
If you're enabling DHCP or DNS, you need to provide the interface name with the appropriate options.  See the help for the full set of configuration options for DHCP or DNS.

Currently the default is hard coded as eth0. RFE already in BZ1266090 to guess a better default.

*** This bug has been marked as a duplicate of bug 1266090 ***