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 2062690

Summary: [RHEL9] blivet.errors.InconsistentPVSectorSize: Cannot create volume group 'relvg'
Product: Red Hat Enterprise Linux 9 Reporter: guazhang <guazhang>
Component: python-blivetAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: japokorn, jstodola, vtrefny
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-blivet-3.4.0-15.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 10:30:27 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:

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