Bug 2016956 - ReaR is not able to auto-detect interfaces configured with DHCP
Summary: ReaR is not able to auto-detect interfaces configured with DHCP
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rear
Version: 8.4
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: 8.5
Assignee: Pavel Cahyna
QA Contact: CS System Management SST QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-25 09:40 UTC by Renaud Métrich
Modified: 2021-11-10 19:04 UTC (History)
2 users (show)

Fixed In Version: rear-2.6-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-10 14:23:31 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-101338 0 None None None 2021-11-01 19:52:16 UTC

Description Renaud Métrich 2021-10-25 09:40:28 UTC
Description of problem:

The current ReaR 2.4 code has nothing to deal with NetworkManager managed interfaces (check /usr/share/rear/prep/GNU/Linux/210_include_dhclient.sh).
This leads to not being able to configure the recovery with DHCP, because internally it expects one of "dhclient" or "dhcpcd" (and related IPv6 versions).

With ReaR 2.6 the code has been redesigned to exit in error if USE_DHCLIENT=y is specified and no DHCP binary is found.

I think we need to at least fail and not let the code create the following /etc/rear/rescue.conf snippet in the ISO, when "dhclient" is not installed ("dhcp-client" package):
---
# The following 3 lines were added through 210_include_dhclient.sh
USE_DHCLIENT=yes
DHCLIENT_BIN=
DHCLIENT6_BIN=
---


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

rear-2.4-18.el8.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Create an ISO in full debug mode
2. Check /etc/rear/rescue.conf generated in the ISO

Comment 1 Pavel Cahyna 2021-10-25 09:48:29 UTC
Hello Renaud,

(In reply to Renaud Métrich from comment #0)
> With ReaR 2.6 the code has been redesigned to exit in error if
> USE_DHCLIENT=y is specified and no DHCP binary is found.

To be sure, do I understand correctly that in ReaR 2.6 the problem is fixed? If so, it will be fixed by the upcoming rebase (bz1988493). You can try the package provided in Beta.

Comment 2 Renaud Métrich 2021-11-09 06:50:10 UTC
Yes code works with rear-2.6

Comment 5 Pavel Cahyna 2021-11-10 14:23:31 UTC
fixed by rebase to ReaR 2.6 in RHEL 8.5, bz1988493


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