Bug 1317659 - foreman-installer --scenario capsule fails on system with enp4s0 like network cards
Summary: foreman-installer --scenario capsule fails on system with enp4s0 like network...
Keywords:
Status: CLOSED DUPLICATE of bug 1266090
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-14 19:19 UTC by Elyézer Rezende
Modified: 2016-10-14 12:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 12:39:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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