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 2155689 - stratisd may put a set up pool into a stopped state if it is restarted
Summary: stratisd may put a set up pool into a stopped state if it is restarted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: stratisd
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 9.2
Assignee: Bryan Gurney
QA Contact: Filip Suba
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-21 22:42 UTC by Bryan Gurney
Modified: 2023-05-09 08:49 UTC (History)
3 users (show)

Fixed In Version: stratisd-3.4.4-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 07:41:19 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-143065 0 None None None 2022-12-21 22:52:42 UTC
Red Hat Product Errata RHBA-2023:2272 0 None None None 2023-05-09 07:41:26 UTC

Description Bryan Gurney 2022-12-21 22:42:05 UTC
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:

Comment 1 Bryan Gurney 2022-12-22 14:40:16 UTC
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.

Comment 4 Filip Suba 2023-01-23 15:02:11 UTC
Verified with stratisd-3.4.4-1.el9.

Comment 6 errata-xmlrpc 2023-05-09 07:41:19 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 (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


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