-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhel-10.2
-
None
-
None
-
None
-
rhel-storage-management
-
3
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
test_removable_fs (__main__.Polkit.test_removable_fs) Mount FS on removable drive (allowed) ... ok test_sda (__main__.Smart.test_sda) SMART status of first internal hard disk ... Failed to query whether SMART is available: Operation not supported [N/A] ok ====================================================================== ERROR: test_luks_forced_removal (__main__.Luks.test_luks_forced_removal) LUKS forced removal ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 1506, in test_luks_forced_removal path = Luks.unlock_crypto_device(encrypted) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 1357, in unlock_crypto_device return encrypted.call_unlock_sync( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path "/org/freedesktop/UDisks2/block_devices/sdb" (19) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 1520, in test_luks_forced_removal crypt_obj.get_property('encrypted').call_lock_sync( gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path "/org/freedesktop/UDisks2/block_devices/sdb" (19) ====================================================================== FAIL: test_luks_forced_removal (__main__.Luks.test_luks_forced_removal) LUKS forced removal ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 1363, in tearDown crypt_obj = self.client.get_object(self.udisks_block().get_object_path()) ^^^^^^^^^^^^^^^^^^^ File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 285, in udisks_block assert block, 'did not find an UDisksBlock object for %s' % devname ^^^^^ AssertionError: did not find an UDisksBlock object for /dev/sdb ====================================================================== FAIL: test_luks_mount (__main__.Luks.test_luks_mount) LUKS mount/unmount ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 1438, in test_luks_mount encrypted = self.setup_crypto_device() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 1346, in setup_crypto_device self.fs_create(None, 'ext4', GLib.Variant('a{sv}', { File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 367, in fs_create block = cls.udisks_block(partition) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 285, in udisks_block assert block, 'did not find an UDisksBlock object for %s' % devname ^^^^^ AssertionError: did not find an UDisksBlock object for /dev/sdb ====================================================================== FAIL: test_luks_mount (__main__.Luks.test_luks_mount) LUKS mount/unmount ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 1363, in tearDown crypt_obj = self.client.get_object(self.udisks_block().get_object_path()) ^^^^^^^^^^^^^^^^^^^ File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 285, in udisks_block assert block, 'did not find an UDisksBlock object for %s' % devname ^^^^^ AssertionError: did not find an UDisksBlock object for /dev/sdb ====================================================================== FAIL: test_plaintext_keyfile (__main__.Luks.test_plaintext_keyfile) Setup a device using a plaintext keyfile. ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 1546, in test_plaintext_keyfile self.fs_create(None, 'ext4', GLib.Variant('a{sv}', { File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 367, in fs_create block = cls.udisks_block(partition) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 285, in udisks_block assert block, 'did not find an UDisksBlock object for %s' % devname ^^^^^ AssertionError: did not find an UDisksBlock object for /dev/sdb ====================================================================== FAIL: test_plaintext_keyfile (__main__.Luks.test_plaintext_keyfile) Setup a device using a plaintext keyfile. ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 1363, in tearDown crypt_obj = self.client.get_object(self.udisks_block().get_object_path()) ^^^^^^^^^^^^^^^^^^^ File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/integration-test", line 285, in udisks_block assert block, 'did not find an UDisksBlock object for %s' % devname ^^^^^ AssertionError: did not find an UDisksBlock object for /dev/sdb
https://beaker.engineering.redhat.com/recipes/19803497#task204187976
# after putting it back, it should be mountable again path = Luks.unlock_crypto_device(encrypted) self.client.settle()
re-get the encrypted reference after removed
self.client = UDisks.Client.new_sync(None)
self.client.settle()
crypt_obj = self.client.get_object(self.udisks_block().get_object_path())
encrypted = crypt_obj.get_property('encrypted')
path = Luks.unlock_crypto_device(encrypted)