Bug 1278781
Summary: | [RHEL-7.2] targetcli crashed with many block backstores | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Honggang LI <honli> |
Component: | python-rtslib | Assignee: | Andy Grover <agrover> |
Status: | CLOSED ERRATA | QA Contact: | Martin Hoyer <mhoyer> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.3 | CC: | agrover, bgoncalv, jkachuck, knoha, lmiksik, snagar, wchadwic |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-04 08:33:54 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: | |||
Bug Blocks: | 1213541, 1295577, 1313485, 1364088 |
Description
Honggang LI
2015-11-06 11:54:45 UTC
Root-caused to incorrect regex. We should be non-greedy when matching the first part of the name, so we get 'sda' and '10' subgroups instead of 'sda1' and '0'. If you want to verify the fix, change the regex at line 155 of /usr/lib/python2.7/site-packages/rtslib_fb/utils.py to m = re.search(r'^([a-z0-9_\-!]+?)(\d+)$', name) Thanks. The patch works for me. /> ls / o- / ............................................................................. [...] o- backstores .................................................................. [...] | o- block ..................................................... [Storage Objects: 10] | | o- p00 ................................. [/dev/sda5 (1.0GiB) write-thru activated] | | o- p01 ................................. [/dev/sda6 (1.0GiB) write-thru activated] | | o- p02 ................................. [/dev/sda7 (1.0GiB) write-thru activated] | | o- p03 ................................. [/dev/sda8 (1.0GiB) write-thru activated] | | o- p04 ................................. [/dev/sda9 (1.0GiB) write-thru activated] | | o- p05 .............................. [/dev/sda10 (1.0GiB) write-thru deactivated] | | o- p06 .............................. [/dev/sda11 (1.0GiB) write-thru deactivated] | | o- p07 .............................. [/dev/sda12 (1.0GiB) write-thru deactivated] | | o- p08 .............................. [/dev/sda13 (1.0GiB) write-thru deactivated] | | o- p09 .............................. [/dev/sda14 (1.0GiB) write-thru deactivated] | o- fileio ..................................................... [Storage Objects: 0] | o- pscsi ...................................................... [Storage Objects: 0] | o- ramdisk .................................................... [Storage Objects: 0] o- iscsi ................................................................ [Targets: 0] *** Bug 1312270 has been marked as a duplicate of this bug. *** Set PM Ack to + Tested with python-rtslib-2.1.fb57-5.el7.noarch.rpm Works well. 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-2016-2561.html |