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 2223897 - ReaR fails to create the rescue environment when a device is shrinking while being read
Summary: ReaR fails to create the rescue environment when a device is shrinking while ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rear
Version: 8.8
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Pavel Cahyna
QA Contact: Jakub Haruda
URL:
Whiteboard:
Depends On: 2223895
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-19 08:32 UTC by Renaud Métrich
Modified: 2023-11-14 17:08 UTC (History)
4 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rear rear pull 3027 0 None Merged Make sure rescue contains all COPY_AS_IS files 2023-07-21 14:22:00 UTC
Red Hat Issue Tracker RHELPLAN-162694 0 None None None 2023-07-19 08:34:06 UTC
Red Hat Product Errata RHBA-2023:7060 0 None None None 2023-11-14 15:37:15 UTC

Description Renaud Métrich 2023-07-19 08:32:36 UTC
This bug was initially created as a copy of Bug #2223895

I am copying this bug because: 

Also applies

Description of problem:

A customer hit an issue when building the ReaR ISO: the process always fails due to having a `/dev/mqueue/nnsc` which shrinks when being read, causing the verification code to (hopefully) fail.
See PR https://github.com/rear/rear/pull/3027 for details and a reproducer.

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

all rear releases

How reproducible:

Always using the attached reproducer `shrinking.stp`

Steps to Reproduce:

1. Create a file in /dev which will be embedded in the rescue environment

    # dd if=/dev/urandom of=/dev/shrinking bs=10K count=3
    3+0 records in
    3+0 records out
    30720 bytes (31 kB, 30 KiB) copied, 0.000689566 s, 44.5 MB/s

2. Execute the systemtap script in charge of shrinking the file while being copied

    # yum -y install systemtap yum-utils
    # stap-prep
    # stap -v -g ./shrinking.stp
    [...]
    Pass 5: starting run.

3. Execute rear mkrescue from another terminal

    # rear mkrescue

Actual results:

ERROR: ReaR recovery system in '/var/tmp/rear.tpfZyNy6ayS53wP/rootfs' not usable (required libraries are missing)
Some latest log messages since the last called script 990_verify_rootfs.sh:
  wipefs is /bin/wipefs
  mkfs is /bin/mkfs
  mkfs.xfs is /bin/mkfs.xfs
  xfs_admin is /bin/xfs_admin
  mkswap is /bin/mkswap
  cryptsetup is /bin/cryptsetup
  dmsetup is /bin/dmsetup
  ldconfig is /bin/ldconfig

Expected results:

No error

Comment 8 errata-xmlrpc 2023-11-14 15:37:10 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 (rear bug fix and enhancement update), 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-2023:7060


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