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:
A device-mapper error may occur when stratisd reads a device-mapper
device's table via a device-mapper ioctl. If stratisd is setting up a
partially or completely set up pool, and it receives this error, it
will put the pool in a stopped state.
The error is caused by a defect in the devicemapper-rs source code
which reuses a message buffer without re-writing the correct message
header at the start of the buffer. In some cases, the previous message
header may have had some fields overwritten with a partial result by
the devicemapper kernel module, so that reusing the modified header
results in an error.
Version-Release number of selected component (if applicable):
stratisd-3.4.3-1.el9
How reproducible:
Does not seem to be reproducible in RHEL 9.1; however, an upstream
user found the issue in Rocky Linux 9.1, running kernel
5.14.0-162.6.1.el9_1.0.1.x86_64 x86_64, stratisd-3.2.2-1.el9.x86_64,
and stratis-cli-3.2.0-1.el9.noarch.
Steps to Reproduce:
With a test device that is at least 50 GiB in size (example
"/dev/vdb"), running stratisd-3.2.2-1.el9:
1. stratis pool create spool1 /dev/vdb
2. stratis fs create spool1 sfs1
3. for j in $(seq 101 999); do echo $j; stratis pool set-fs-limit
spool1 $j; free -m; done
4. Stop the stratis daemon via "systemctl stop stratisd"
5. Start the stratis daemon via "systemctl start stratisd"
Actual results:
Attempting to run "stratis pool list" will not list the pool that was
created, despite the device-mapper devices that comprise the pool
being online. The following kernel message will appear:
kernel: device-mapper: ioctl: only supply one of name or uuid, cmd(12)
Expected results:
Attempting to run "stratis pool list" will display the pool that was created.
Additional info:
Additional reproduction steps, continuing from step 4:
4. Stop the stratis daemon via "systemctl stop stratisd"
5. Upgrade stratisd to version 3.4.3, and stratis-cli to version 3.4.0:
# dnf install stratisd-3.4.3-1.el9.x86_64.rpm stratis-cli-3.4.0-1.el9.noarch.rpm
6. Start the stratis daemon via "systemctl start stratisd"
Actual results:
Attempting to run "stratis pool list" will not list the pool that was
created, despite the device-mapper devices that comprise the pool
being online. The following kernel message will appear:
kernel: device-mapper: ioctl: only supply one of name or uuid, cmd(12)
Expected results:
Attempting to run "stratis pool list" will display the pool that was created.
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 (stratisd 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:2272