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.
DescriptionLars Kellogg-Stedman
2014-12-11 17:55:35 UTC
This is a more general case of https://bugzilla.redhat.com/show_bug.cgi?id=1167852.
The RHEL7 guest image includes /etc/sysconfig/network-scripts/ifcfg-eth0. When booting in a recent vintage libvirt environment, the primary interface is named "ens3".
The result is that the system has no networking:
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:54:00:3a:47:7b brd ff:ff:ff:ff:ff:ff
In many environments, the only means of ingress to a guest is through an ssh connection, so this renders the guest image largely useless.
The easiest -- an in my opinion, correct -- solution is to set "net.ifnames=0 biosdevname=0" on the kernel command line to prevent the use of "(un)predictable device names".
Alternatively, one may be able to modify NetworkManager to attempt DHCP on all available interfaces, but I think this behavior would be less desireable.
Comment 1Lars Kellogg-Stedman
2014-12-11 17:58:25 UTC
Sorry I made you open a bug for nothing, Lars. I just went through to review the outstanding bugs, and we appear to already have one out for a similar issue (not quite the same, but the fix will fix both).
I'm gonna close this and track it in bz#1167852
*** This bug has been marked as a duplicate of bug 1167852 ***
Comment 4Lars Kellogg-Stedman
2014-12-12 21:50:26 UTC
Ryan,
If you consider bz#1167852 to be a duplicate, that's fine by me. I opened this because that bug was explicitly addressing SR-IOV environments, whereas I am making the case that we should be disabling predictable network unilaterally on the KVM guest image(s).
No, you're right that it's only reported against sr-iov. It's just that we're probably not going to put significant runtime logic into the guest image (that should all be done by components, basically), so the fix for both issues (disabling predictive naming in the boot loader) will be the same.
In essence, rather than writing some dracut hook which checks for sr-iov and disables in that case, we'll disable it everywhere, unless someone can make a compelling case for the "NM starts every interface" side or having predictive names in the guest image