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 2013063 - [RHEL9] Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
Summary: [RHEL9] Method "Get" with signature "ss" on interface "org.freedesktop.DBus.P...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: python-blivet
Version: 9.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Vojtech Trefny
QA Contact: guazhang@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-12 02:01 UTC by guazhang@redhat.com
Modified: 2023-01-14 07:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-14 07:27:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-99467 0 None None None 2021-10-12 02:02:07 UTC

Description guazhang@redhat.com 2021-10-12 02:01:02 UTC
Description of problem:
python-blivet regression testing hit the error, please have a look if hit a bug

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

python-blivet-3.4.0-8.el9_b.src.rpm
RHEL-9.0.0-20211009.6 



======================================================================
ERROR: test_resize (formats_test.lvmpv_test.LVMPVTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 1036, in wrapped
    ret = orig_obj(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 475, in lvm_pvcreate
    return _lvm_pvcreate(device, data_alignment, metadata_size, extra)
gi.repository.GLib.GError: g-dbus-error-quark: Waiting for 'PvCreate' method of the '/com/redhat/lvmdbus1/Manager' object to finish failed: Failed to get Complete property of the / object: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
 (19)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/blivet-3.4.0/tests/formats_test/lvmpv_test.py", line 32, in test_resize
    self.fmt.create()
  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/formats/__init__.py", line 517, in create
    self._create(**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/formats/lvmpv.py", line 131, in _create
    blockdev.lvm.pvcreate(self.device, data_alignment=self.data_alignment, extra=[ea_yes])
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 1062, in wrapped
    raise transform[1](msg)
gi.overrides.BlockDev.LVMError: Waiting for 'PvCreate' method of the '/com/redhat/lvmdbus1/Manager' object to finish failed: Failed to get Complete property of the / object: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist


======================================================================
ERROR: test_size (formats_test.lvmpv_test.LVMPVTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 1036, in wrapped
    ret = orig_obj(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 475, in lvm_pvcreate
    return _lvm_pvcreate(device, data_alignment, metadata_size, extra)
gi.repository.GLib.GError: g-dbus-error-quark: Waiting for 'PvCreate' method of the '/com/redhat/lvmdbus1/Manager' object to finish failed: Failed to get Complete property of the / object: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
 (19)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/blivet-3.4.0/tests/formats_test/lvmpv_test.py", line 18, in test_size
    self.fmt.create()
  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/formats/__init__.py", line 517, in create
    self._create(**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/formats/lvmpv.py", line 131, in _create
    blockdev.lvm.pvcreate(self.device, data_alignment=self.data_alignment, extra=[ea_yes])
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 1062, in wrapped
    raise transform[1](msg)
gi.overrides.BlockDev.LVMError: Waiting for 'PvCreate' method of the '/com/redhat/lvmdbus1/Manager' object to finish failed: Failed to get Complete property of the / object: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist



https://beaker.engineering.redhat.com/recipes/10767101#task132984001

https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2021/10/58752/5875260/10767101/132984001/taskout.log

Comment 1 Vojtech Trefny 2021-10-13 14:09:42 UTC
Thank you for the report. There are two issues behind this:

1. Blivet doesn't fully support the new LVM system.devices config file that LVM introduced in 9 Beta. We have a partial workaround, but full support is not yet available in 9 and this is causing the issue you see. The proposed patch fixes this issue so I'm closing this as a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1967212

2. The problem is also in the way you are running the tests. By using "make test" in your script you are running the test suite against the code extracted from the downloaded SRPM without applied patches -- one of the patches we have in RHEL is to force use the libblockdev-lvm plugin instead of libblockdev-lvm-dbus. Only the LVM DBus plugin is affected by the issue described above so this should not be reproducible when running against installed version of blivet. We have a special script for running blivet test suite against the installed version in gating, see https://src.osci.redhat.com/rpms/python-blivet/blob/rhel-9.0.0/f/tests/unit_testing.sh

*** This bug has been marked as a duplicate of bug 1967212 ***

Comment 2 guazhang@redhat.com 2021-10-14 01:18:48 UTC
Hi

Hit a error when testing, please help to check if it's expected 


======================================================================
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 424, in test_get_related_disks
    sdb.format = get_format("lvmpv", device=sdb.path)
  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 780, in <lambda>
    lambda d, f: d._set_format(f),
  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 738, in _set_format
    raise errors.DeviceError("device is too small for new format")
blivet.errors.DeviceError: device is too small for new format

[root@storageqe-67 test_blivet_package]# lsblk
NAME                        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda                           8:0    0 558.9G  0 disk 
├─sda1                        8:1    0     1G  0 part /boot
└─sda2                        8:2    0 557.9G  0 part 
  ├─rhel_storageqe--67-root 253:0    0    70G  0 lvm  /
  ├─rhel_storageqe--67-swap 253:1    0  15.6G  0 lvm  [SWAP]
  └─rhel_storageqe--67-home 253:2    0 472.3G  0 lvm  /home
sdb                           8:16   1     0B  0 disk 

[root@storageqe-67 test_blivet_package]# lsscsi 
[0:0:0:0]    disk    Generic- SD/MMC CRW       1.00  /dev/sdb 
[1:0:0:0]    disk    HP       EG000600JWJNP    HPD1  /dev/sda 
[1:0:1:0]    enclosu HPE      Smart Adapter    2.62  -        
[1:2:0:0]    storage HPE      P408i-a SR Gen10 2.62  -        


the sdb is usb CRW, it make the test failed, do you think we need fixed it or remove CRW before testing ?

Comment 3 Vojtech Trefny 2021-10-14 06:52:16 UTC
(In reply to guazhang from comment #2)
> 
> the sdb is usb CRW, it make the test failed, do you think we need fixed it
> or remove CRW before testing ?

The sdb drive with 0 size is causing the issue, but this needs to fixed in the test: https://github.com/storaged-project/blivet/pull/995

Comment 4 guazhang@redhat.com 2022-01-11 12:00:21 UTC
Hi

Still hit the error with python3-blivet-3.4.0-11.el9.noarch,libblockdev-2.25-11.el9.x86_64

python3 tests/run_tests.py

======================================================================
ERROR: test_resize (formats_test.lvmpv_test.LVMPVTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 1075, in wrapped
    ret = orig_obj(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 499, in lvm_pvcreate
    return _lvm_pvcreate(device, data_alignment, metadata_size, extra)
gi.repository.GLib.GError: g-dbus-error-quark: Waiting for 'PvCreate' method of the '/com/redhat/lvmdbus1/Manager' object to finish failed: Failed to get Complete property of the / object: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
 (19)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/blivet-3.4.0/tests/formats_test/lvmpv_test.py", line 32, in test_resize
    self.fmt.create()
  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/formats/__init__.py", line 517, in create
    self._create(**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/formats/lvmpv.py", line 150, in _create
    blockdev.lvm.pvcreate(self.device, data_alignment=self.data_alignment, extra=[ea_yes])
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 1101, in wrapped
    raise transform[1](msg)
gi.overrides.BlockDev.LVMError: Waiting for 'PvCreate' method of the '/com/redhat/lvmdbus1/Manager' object to finish failed: Failed to get Complete property of the / object: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist


======================================================================
ERROR: test_size (formats_test.lvmpv_test.LVMPVTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 1075, in wrapped
    ret = orig_obj(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 499, in lvm_pvcreate
    return _lvm_pvcreate(device, data_alignment, metadata_size, extra)
gi.repository.GLib.GError: g-dbus-error-quark: Waiting for 'PvCreate' method of the '/com/redhat/lvmdbus1/Manager' object to finish failed: Failed to get Complete property of the / object: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
 (19)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/blivet-3.4.0/tests/formats_test/lvmpv_test.py", line 18, in test_size
    self.fmt.create()
  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/formats/__init__.py", line 517, in create
    self._create(**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/formats/lvmpv.py", line 150, in _create
    blockdev.lvm.pvcreate(self.device, data_alignment=self.data_alignment, extra=[ea_yes])
  File "/usr/lib64/python3.9/site-packages/gi/overrides/BlockDev.py", line 1101, in wrapped
    raise transform[1](msg)
gi.overrides.BlockDev.LVMError: Waiting for 'PvCreate' method of the '/com/redhat/lvmdbus1/Manager' object to finish failed: Failed to get Complete property of the / object: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

Comment 5 Vojtech Trefny 2022-01-13 13:16:15 UTC
Turns out we need some additional changes to make the LVM devices file support work with the LVM DBus API. I have an upstream pull request ready, but because blivet doesn't use LVM DBus API on RHEL I consider this a low priority and we can move the bug to 9.1.

upstream PR: https://github.com/storaged-project/blivet/pull/1010

Comment 8 RHEL Program Management 2022-07-13 07:28:27 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 9 Vojtech Trefny 2022-07-14 06:02:22 UTC
We plan to do a rebase of blivet in 9.2 which will include the fix in comment #5, I am reopening this for tracking the issue, but it shouldn't require any additional changes.

Comment 12 RHEL Program Management 2023-01-14 07:27:38 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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