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 2062690 - [RHEL9] blivet.errors.InconsistentPVSectorSize: Cannot create volume group 'relvg'
Summary: [RHEL9] blivet.errors.InconsistentPVSectorSize: Cannot create volume group 'r...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: python-blivet
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Vojtech Trefny
QA Contact: Release Test Team
URL:
Whiteboard:
: 2040319 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-10 11:29 UTC by guazhang@redhat.com
Modified: 2022-11-15 11:35 UTC (History)
3 users (show)

Fixed In Version: python-blivet-3.4.0-15.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 10:30:27 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-115179 0 None None None 2022-03-10 11:37:34 UTC
Red Hat Issue Tracker RTT-4627 0 None None None 2022-06-08 06:44:08 UTC
Red Hat Issue Tracker RTT-4628 0 None None None 2022-06-08 06:44:12 UTC
Red Hat Product Errata RHBA-2022:8165 0 None None None 2022-11-15 10:30:43 UTC

Description guazhang@redhat.com 2022-03-10 11:29:22 UTC
Description of problem:
blivet regression hit the error, please have a look.

Version-Release number of selected component (if applicable):
python3-blivet-1:3.4.0-12.el9.noarch

How reproducible:
just hit one time

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:


======================================================================
ERROR: test_get_related_disks (devicetree_test.DeviceTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/blivet-3.4.0/tests/devicetree_test.py", line 423, in test_get_related_disks
    vg = LVMVolumeGroupDevice("relvg", parents=[sda, sdb])
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/devices/lvm.py", line 142, in __init__
    super(LVMVolumeGroupDevice, self).__init__(name, parents=parents,
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/devices/container.py", line 66, in __init__
    super(ContainerDevice, self).__init__(*args, **kwargs)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/devices/storage.py", line 142, in __init__
    super(StorageDevice, self).__init__(name, parents=parents)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/devices/device.py", line 89, in __init__
    self.parents = parents or []
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/devices/device.py", line 162, in parents
    self._parents.append(parent)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/devices/lib.py", line 213, in append
    self.appendfunc(y)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/root/rpmbuild/BUILD/blivet-3.4.0/blivet/devices/lvm.py", line 377, in _add_parent
    raise errors.InconsistentPVSectorSize(msg)
blivet.errors.InconsistentPVSectorSize: Cannot create volume group 'relvg'. The following disks have inconsistent sector size:
sda: 4096
sdb: 512



https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2022/03/63841/6384175/11593643/140955077/taskout.log
https://beaker.engineering.redhat.com/recipes/11593643#task140955077

Comment 1 Vojtech Trefny 2022-03-11 13:18:43 UTC
This is already fixed in upstream: https://github.com/storaged-project/blivet/pull/995

(The test is reading some properties from existing disks and it shouldn't do that. We are planning a bigger rewrite of the upstream test suite in the next upstream release that should make sure the "unit tests" are really unit tests and not reading random things from the system.)

Comment 2 Vojtech Trefny 2022-03-11 13:27:44 UTC
*** Bug 2040319 has been marked as a duplicate of this bug. ***

Comment 4 Jan Stodola 2022-06-23 15:01:59 UTC
The patch from comment 1 is included and applied in python-blivet-3.4.0-15.el9.

The test_get_related_disks unit test passed in gating:
test_get_related_disks (devicetree_test.DeviceTreeTestCase) ... ok

Marking as Verified:Tested

Comment 7 Jan Stodola 2022-06-27 08:00:24 UTC
Checked that python-blivet-3.4.0-15.el9 is in nightly compose RHEL-9.1.0-20220627.0

Moving to VERIFIED

Comment 9 errata-xmlrpc 2022-11-15 10:30:27 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 (python-blivet 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-2022:8165


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