Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
When a network interface is not standard (e.g. "ethX", "ensX", etc) but customized (e.g. "my-eth"), ReaR doesn't set up the network interface and this ends up having no network, which is an issue unless DHCP is used.
Version-Release number of selected component (if applicable):
rear-2.4-2.el7.x86_64
How reproducible:
Always
Steps to Reproduce:
1. Set up a system and rename the interface
# cat /etc/sysconfig/network-scripts/ifcfg-first
TYPE="Ethernet"
BOOTPROTO="dhcp"
DEFROUTE="yes"
IPV6INIT="no"
DEVICE="first"
HWADDR="52:54:00:eb:6c:bf"
ONBOOT="yes"
2. Backup the system ("mkrescue" is enough) after configuring ReaR with USE_STATIC_NETWORKING=y
# cat /etc/rear/site.conf
USE_STATIC_NETWORKING=y
3. Try restoring the system
Actual results:
No network interface
Expected results:
Network interface configured
Additional info:
Upstream PR: https://github.com/rear/rear/pull/2004
(In reply to Renaud Métrich from comment #0)
> Steps to Reproduce:
> 1. Set up a system and rename the interface
>
> # cat /etc/sysconfig/network-scripts/ifcfg-first
> TYPE="Ethernet"
> BOOTPROTO="dhcp"
> DEFROUTE="yes"
> IPV6INIT="no"
> DEVICE="first"
> HWADDR="52:54:00:eb:6c:bf"
> ONBOOT="yes"
Does this actually rename the interface? I would expect it to create a profile named "first" which still refers to the original interface (eth0 or whatever).
# ls -l /sys/class/net/
total 0
lrwxrwxrwx. 1 root root 0 Dec 14 09:12 first -> ../../devices/pci0000:00/0000:00:03.0/virtio0/net/first
lrwxrwxrwx. 1 root root 0 Dec 14 09:12 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx. 1 root root 0 Dec 14 09:12 second -> ../../devices/pci0000:00/0000:00:04.0/virtio1/net/second
(In reply to Renaud Métrich from comment #0)
> 1. Set up a system and rename the interface
>
> # cat /etc/sysconfig/network-scripts/ifcfg-first
> TYPE="Ethernet"
> BOOTPROTO="dhcp"
> DEFROUTE="yes"
> IPV6INIT="no"
> DEVICE="first"
> HWADDR="52:54:00:eb:6c:bf"
> ONBOOT="yes"
>
>
> 3. Try restoring the system
>
>
> Actual results:
>
> No network interface
>
>
> Expected results:
>
> Network interface configured
Renaud,
should one expect the interface configured to be properly named ("first") or to have the original name ("eth0" or whatever)? When we try this, we get a proper IP address configured on the interface, but it is not renamed properly.
Interface will not be renamed, hence "eth0" is expected, but you shouldn't get any IP address if /etc/rear/local.conf contains "USE_STATIC_NETWORKING=y"
With the fix and USE_STATIC_NETWORKING=y, /etc/scripts/system-setup.d/60-network-devices.sh 's content gets renamed from "first" to "ethX"
(In reply to Renaud Métrich from comment #14)
> Interface will not be renamed, hence "eth0" is expected, but you shouldn't
> get any IP address if /etc/rear/local.conf contains "USE_STATIC_NETWORKING=y"
It was meant "before the fix, you shouldn't get any IP address". After the fix you should of course.
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/RHBA-2019:2273
Description of problem: When a network interface is not standard (e.g. "ethX", "ensX", etc) but customized (e.g. "my-eth"), ReaR doesn't set up the network interface and this ends up having no network, which is an issue unless DHCP is used. Version-Release number of selected component (if applicable): rear-2.4-2.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. Set up a system and rename the interface # cat /etc/sysconfig/network-scripts/ifcfg-first TYPE="Ethernet" BOOTPROTO="dhcp" DEFROUTE="yes" IPV6INIT="no" DEVICE="first" HWADDR="52:54:00:eb:6c:bf" ONBOOT="yes" 2. Backup the system ("mkrescue" is enough) after configuring ReaR with USE_STATIC_NETWORKING=y # cat /etc/rear/site.conf USE_STATIC_NETWORKING=y 3. Try restoring the system Actual results: No network interface Expected results: Network interface configured Additional info: Upstream PR: https://github.com/rear/rear/pull/2004