Bug 1529769

Summary: Discovery image unable to configure network via DHCP on the first attempt
Product: Red Hat Satellite Reporter: Radovan Drazny <rdrazny>
Component: Discovery ImageAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Perry Gagne <pgagne>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bkearney, ehelms, lzap, pgagne, rabajaj
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/22112
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:37 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 Radovan Drazny 2017-12-29 21:12:44 UTC
Description of problem:
Booting a system using the foreman-discovery-image and selecting the "Discover with DHCP" option always leads to a "Unable to bring network via DHCP". Cancelling the following static networking config dialog and again selecting the "Discover with DHCP" works, and IP config is correctly acquired from the DHCP server.

Version-Release number of selected component (if applicable):
foreman-discovery-image-3.4.1-3

How reproducible:
always

Steps to Reproduce:
1. Boot a system with the foreman-discovery-image-3.4.1-3.iso
2. Press the "Discover with DHCP" button
3. The "Unable to bring network via DHCP" dialog is displayed instantly
4. Confirm the error message, and cancel the following dialog requesting a static IP config.The intro dialog for static or DHCP config will be displayed again.
5. Press the "Discover with DHCP" button again. Network device will be successfully configured this time.

Actual results:
DHCP config is not successful on the first time.

Expected results:
DHCP config should work first time.

Additional info:
Following message in the journalctl regarding the DHCP failure:

Dec 29 20:53:01 fdi /usr/bin/discovery-menu[766]: Building net interfaces TUI (bootif=)
Dec 29 20:53:01 fdi /usr/bin/discovery-menu[766]: Device ens3 52:54:00:2f:25:59 link=true booted=false
Dec 29 20:53:03 fdi /usr/bin/discovery-menu[766]: Entering screen_info
Dec 29 20:53:03 fdi /usr/bin/discovery-menu[766]: TUI executing: systemctl stop foreman-proxy
Dec 29 20:53:03 fdi polkitd[817]: Registered Authentication Agent for unix-process:957:6326 (system bus name :1.9 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.
Dec 29 20:53:03 fdi polkitd[817]: Unregistered Authentication Agent for unix-process:957:6326 (system bus name :1.9, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec 29 20:53:03 fdi /usr/bin/discovery-menu[766]: TUI executing: nm-configure primary '52:54:00:2f:25:59' ''
Dec 29 20:53:03 fdi NetworkManager[750]: <warn>  [1514580783.1280] keyfile: error loading connection from file /etc/NetworkManager/system-connections/primary: File permissions (100644) were insecure
Dec 29 20:53:03 fdi NetworkManager[750]: <warn>  [1514580783.1287] keyfile: error loading connection from file /etc/NetworkManager/system-connections/primary: File permissions (100644) were insecure
Dec 29 20:53:03 fdi /usr/bin/discovery-menu[766]: TUI executing: nmcli connection up primary
Dec 29 20:53:03 fdi /usr/bin/discovery-menu[766]: TUI executing: nm-online -s -q --timeout=45
Dec 29 21:07:30 fdi /usr/bin/discovery-menu[766]: Entering screen_network

Comment 1 Lukas Zapletal 2018-01-01 10:51:10 UTC
Thanks, this is known bug in 3.4 series, BLOCKER.

Comment 3 Lukas Zapletal 2018-01-01 11:09:05 UTC
In this patch, I will fix the root cause of this bug plus:

A) Timeout is maxed at 90s (https://bugzilla.redhat.com/show_bug.cgi?id=1426068)
B) Insecure permissions warning

keyfile: error loading connection from file /etc/NetworkManager/system-connections/primary: File permissions (100644) were insecure

Comment 5 Satellite Program 2018-01-11 15:29:44 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/22112 has been resolved.

Comment 8 Satellite Program 2018-02-21 16:54:37 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, 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-2018:0336