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.

Bug 1850554

Summary: LUKS partition not detected by block plugin
Product: Red Hat Enterprise Linux 8 Reporter: Miroslav Hradílek <mhradile>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Miroslav Hradílek <mhradile>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: agk, bmr, fkrska, jhunsaker, jjansky, plambri, pmoravec, sbradley
Target Milestone: rcKeywords: Regression
Target Release: 8.3Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-3.9.1-5.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1850544 Environment:
Last Closed: 2020-11-04 01:58:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1850544    
Bug Blocks:    

Description Miroslav Hradílek 2020-06-24 13:35:29 UTC
sos-3.9.1-4.el8.noarch (unreleased) from 8.3 is also affected.

+++ This bug was initially created as a clone of Bug #1850544 +++

Description of problem:

There seems to be a typo in
https://github.com/sosreport/sos/commit/e51d3e6d5b5c084a3289751dbca559ba134bace8#diff-1ed6ab189cf4b659001b1408d9a3cf23

causing LUKS partition not to be properly detected and it in a way regression of a bug 1638855.

Test failed on this and following edit seems to fix it:

--- new/BUILD/sos-3.9/sos/plugins/block.py	2020-03-24 11:33:13.000000000 -0400
+++ /usr/lib/python2.7/site-packages/sos/plugins/block.py	2020-06-24 09:00:30.427383540 -0400
@@ -57,7 +57,7 @@
         # for LUKS devices, collect cryptsetup luksDump
         if lsblk['status'] == 0:
             for line in lsblk['output'].splitlines():
-                if 'crypto LUKS' in line:
+                if 'crypto_LUKS' in line:
                     dev = line.split()[0]
                     self.add_cmd_output('cryptsetup luksDump /dev/%s' % dev)


Version-Release number of selected component (if applicable):
sos-3.9-2.el7.noarch (unreleased)

How reproducible:
100%

Comment 1 Jake Hunsaker 2020-06-24 14:12:39 UTC
@pavel - this is a trivial fix so I've pushed the fix to upstream master directly

Comment 2 Pavel Moravec 2020-06-29 07:20:01 UTC
(In reply to Jake Hunsaker from comment #1)
> @pavel - this is a trivial fix so I've pushed the fix to upstream master
> directly

Thank, Jake.

Note to myself: backport https://github.com/sosreport/sos/commit/b85039b

Comment 11 errata-xmlrpc 2020-11-04 01:58:15 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 (sos 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/RHEA-2020:4534