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 1077906 - Device.kids field out of sync with actual number of children
Summary: Device.kids field out of sync with actual number of children
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-blivet
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: David Lehman
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-18 19:47 UTC by mulhern
Modified: 2021-09-03 14:08 UTC (History)
2 users (show)

Fixed In Version: python-blivet-0.61.0.5-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 14:06:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
A patch that catches the first instance when child count goes below 0 when removeChild is called. (792 bytes, patch)
2014-03-18 19:47 UTC, mulhern
no flags Details | Diff
anaconda.log (17.15 KB, text/plain)
2014-03-18 19:50 UTC, mulhern
no flags Details
traceback (316.71 KB, text/plain)
2014-03-18 19:50 UTC, mulhern
no flags Details
storage.log (102.04 KB, text/plain)
2014-03-18 19:51 UTC, mulhern
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1043763 0 unspecified CLOSED AttributeError: 'DeviceFormat' object has no attribute 'peStart' 2021-09-03 14:13:49 UTC
Red Hat Bugzilla 1075671 0 medium CLOSED Disk information not completely restored when actions are canceled 2024-03-28 07:26:25 UTC
Red Hat Product Errata RHBA-2015:0313 0 normal SHIPPED_LIVE python-blivet bug fix and enhancement update 2015-03-05 17:35:49 UTC

Internal Links: 1043763 1075671

Description mulhern 2014-03-18 19:47:35 UTC
Created attachment 876099 [details]
A patch that catches the first instance when child count goes below 0 when removeChild is called.

Description of problem:

Device.kids field can go out of sync with actual number of children of device.

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

python-blivet-0.18.32-1

How reproducible:

Always.

Steps to Reproduce:
1. Instrument blivet to throw an exception when kids field is about to go below 0. Patch attached.
2. Start VM with three disks, two with previously installed RHEL7.
3. At Installation Destination select all disks, and "I will configure partitioning" and press "Done".
4. In Manual Partitioning, delete swap partition using -. Do not delete other partitions. Press Done and Accept Changes.
5. Reenter Installation Destination spoke. Unselect two disks with existing RHEL7 installation. Stacktrace.

Actual results:

Stacktrace from patch:

Expected results:

No stacktrace, kids count should not go below zero.

Additional info:

Problem seems to be:
1. rhel-swap's destroy action is registered, which decrements its parent volgroup's kids field by 1.
2. Then, the two disks are unselected, causing hide to be called, which cancels all actions, including
the destroy action. However, the cancellation does not increment the kids field, so it stays one down.
3. When hide is finishing up, and after actions are cancelled, the logical volumes are removed from the device tree and the volgroup's child count is decremented twice, the second time it goes below 0 and exception is thrown
due to patch.

Comment 2 mulhern 2014-03-18 19:50:05 UTC
Created attachment 876100 [details]
anaconda.log

Comment 3 mulhern 2014-03-18 19:50:33 UTC
Created attachment 876101 [details]
traceback

Comment 4 mulhern 2014-03-18 19:51:02 UTC
Created attachment 876102 [details]
storage.log

Comment 7 Jan Stodola 2015-01-22 14:15:27 UTC
Reproduced on RHEL-7.0 GA using patch from comment 0.
Not able to reproduce with python-blivet-0.61.0.22-1.el7 + the patch.

Moving to VERIFIED.

Comment 9 errata-xmlrpc 2015-03-05 14:06:28 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, 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-2015-0313.html


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