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.
Bug 1152485 - Anaconda with root=live:http boot option fetches squashfs.img for each NIC brought up in initramfs
Summary: Anaconda with root=live:http boot option fetches squashfs.img for each NIC br...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dracut
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: dracut-maint
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-14 09:21 UTC by Radek Vykydal
Modified: 2019-08-15 04:00 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Due to a bug, the initramfs exited after a successful download of a live image, and the download of the live image was retried for every network interface. Now, the script only exits on error, and the live image is downloaded only once.
Clone Of:
Environment:
Last Closed: 2015-11-19 12:51:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2091 0 normal SHIPPED_LIVE dracut bug fix and enhancement update 2015-11-19 11:13:43 UTC

Description Radek Vykydal 2014-10-14 09:21:25 UTC
When installing on machine with multiple network interfaces without specifying interface to be used in initramfs (ie not specifying ip=, so all ifaces are brought up), squashfs.img is fetched upon each device becoming online.

Comment 2 Brian Lane 2014-10-15 16:22:34 UTC
anaconda-netroot.sh is looking for /dev/root as a lock, but I'm guessing that we end up in a race between several nics running it. We're going to need a good way to lock things, and possibly retry if, for example, the first one can't get to whatever network the squashfs.img is on.

Comment 3 Martin Kolman 2014-10-16 11:47:09 UTC
(In reply to bcl from comment #2)
> anaconda-netroot.sh is looking for /dev/root as a lock, but I'm guessing
> that we end up in a race between several nics running it. We're going to
> need a good way to lock things, and possibly retry if, for example, the
> first one can't get to whatever network the squashfs.img is on.

This is a possible design we came up with when braistorming this with Radek a bit yesterday:

For each download request "thread":
0. check for the existence of a "DONE" file, exit if it exists
1. check for the existence of a "IN_PROGRESS" file
-> if it exist busy wait with sleep as long as it is there
-> if it does not exist, create it
2. start the download
3. once the download finishes
-> if successful delete the "IN_PROGRESS" file, write the "DONE" file and exit
-> if the download failed delete the "IN_PROGRESS" file and exit

Comment 5 Radek Vykydal 2015-05-04 11:44:21 UTC
It happens only when root=live:http option is used to fetch squashfs.img

Comment 7 Radek Vykydal 2015-06-30 09:21:15 UTC
So, as Martin found out it works ok with inst.stage2=, ie the squashfs.img is downloaded only once.

This is an issue eg for pxe boot to live Atomic.

Comment 12 David Cantrell 2015-09-01 20:03:55 UTC
Comment #10 is a suggested patch to modules.d/90livenet/livenetroot.sh from dracut.

Comment 14 Harald Hoyer 2015-09-02 07:50:45 UTC
ouch.. misread the comment. sorry

Comment 15 Harald Hoyer 2015-09-02 07:53:33 UTC
dracut-033-335.el7

Comment 18 errata-xmlrpc 2015-11-19 12:51:06 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://rhn.redhat.com/errata/RHBA-2015-2091.html


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