Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-59544

[RHEL10] udisksd error wiping device in case test_password_change

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.0
    • udisks2
    • None
    • No
    • None
    • sst_storage_management
    • ssg_filesystems_storage_and_HA
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1.  python3 src/tests/dbus-tests/run_tests.py -s test_70_encrypted.UdisksEncryptedTestLUKS1.test_password_change
      2.  
      3.  

      Expected results

      Actual results

       

      [root@storageqe-64 udisks-2.10.90]# 
      [root@storageqe-64 udisks-2.10.90]# python3 src/tests/dbus-tests/run_tests.py -s test_70_encrypted.UdisksEncryptedTestLUKS1.test_password_change
      Configuration restored from src/tests/dbus-tests/targetcli_config.json
      Not spawning own process: testing the system installed instance.
      test_password_change (test_70_encrypted.UdisksEncryptedTestLUKS1.test_password_change) ... ERROR======================================================================
      ERROR: test_password_change (test_70_encrypted.UdisksEncryptedTestLUKS1.test_password_change)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/dbus-tests/test_70_encrypted.py", line 57, in _remove_luks
          device.Format('empty', d, dbus_interface=self.iface_prefix + '.Block')
        File "/usr/lib64/python3.12/site-packages/dbus/proxies.py", line 141, in __call__
          return self._connection.call_blocking(self._named_service,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/root/rpmbuild/BUILD/udisks-2.10.90/src/tests/dbus-tests/udiskstestcase.py", line 38, in call_long
          return call(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/dbus/connection.py", line 634, in call_blocking
          reply_message = self.send_message_with_reply_and_block(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      dbus.exceptions.DBusException: org.freedesktop.UDisks2.Error.Failed: Error wiping device: Failed to open the device '/dev/sdb': Device or resource busy----------------------------------------------------------------------
      Ran 1 test in 18.259sFAILED (errors=1)
      All configuration cleared
      [root@storageqe-64 udisks-2.10.90]# uname -a
      Linux storageqe-64.rhts.eng.pek2.redhat.com 6.11.0-0.rc5.22.el10.x86_64+debug #1 SMP PREEMPT_DYNAMIC Tue Aug 27 17:58:09 EDT 2024 x86_64 GNU/Linux
       
      Sep 18 21:21:11 storageqe-64 kernel: MODE SENSE: unimplemented page/subpage: 0x0a/0x05
      Sep 18 21:21:11 storageqe-64 55-scsi-sg3_id.rules[10742]: WARNING: SCSI device dm-3 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
      Sep 18 21:21:11 storageqe-64 55-scsi-sg3_id.rules[10747]: WARNING: SCSI device dm-3 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
      Sep 18 21:21:11 storageqe-64 55-scsi-sg3_id.rules[10754]: WARNING: SCSI device dm-3 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
      Sep 18 21:21:11 storageqe-64 55-scsi-sg3_id.rules[10755]: WARNING: SCSI device dm-3 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
      Sep 18 21:21:17 storageqe-64 55-scsi-sg3_id.rules[10761]: WARNING: SCSI device dm-3 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
      Sep 18 21:21:17 storageqe-64 udisksd[1987]: Removing unlocked-crypto-dev entry {uint64 64771, {'crypto-device': <uint64 2064>, 'dm-uuid': <b'CRYPT-LUKS1-bca8ef13579a4b3180e87530c2d0ef92-luks-bca8ef13-579a-4b31-80e8-7530c2d0ef92'>, 'unlocked-by-uid': <uint32 0>}} because /dev/dm-3 now has another dm-uuid (NULL)
      Sep 18 21:21:17 storageqe-64 udisksd[1987]: Removing unlocked-crypto-dev entry {uint64 64771, {'crypto-device': <uint64 2064>, 'dm-uuid': <b'CRYPT-LUKS1-bca8ef13579a4b3180e87530c2d0ef92-luks-bca8ef13-579a-4b31-80e8-7530c2d0ef92'>, 'unlocked-by-uid': <uint32 0>}} because /dev/dm-3 now has another dm-uuid (NULL)
      Sep 18 21:21:17 storageqe-64 udisksd[1987]: Locked device /dev/sdb (was unlocked as /dev/dm-3)
      Sep 18 21:21:17 storageqe-64 55-scsi-sg3_id.rules[10771]: WARNING: SCSI device dm-3 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
      Sep 18 21:21:22 storageqe-64 kernel: MODE SENSE: unimplemented page/subpage: 0x0a/0x05
      Sep 18 21:21:22 storageqe-64 55-scsi-sg3_id.rules[10781]: WARNING: SCSI device dm-3 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
      Sep 18 21:21:22 storageqe-64 55-scsi-sg3_id.rules[10786]: WARNING: SCSI device dm-3 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
      Sep 18 21:21:22 storageqe-64 udisksd[1987]: Unlocked device /dev/sdb as /dev/dm-3
      Sep 18 21:21:22 storageqe-64 udisksd[1987]: Error wiping device: Failed to open the device '/dev/sdb': Device or resource busy
      Sep 18 21:21:23 storageqe-64 kernel: sd 14:0:1:0: [sde] Synchronizing SCSI cache
      Sep 18 21:21:23 storageqe-64 kernel: scsi 14:0:1:0: alua: Detached
      Sep 18 21:21:23 storageqe-64 kernel: sd 13:0:1:0: [sdd] Synchronizing SCSI cache
      Sep 18 21:21:23 storageqe-64 kernel: scsi 13:0:1:0: alua: Detached
      Sep 18 21:21:24 storageqe-64 kernel: sd 12:0:1:0: [sdc] Synchronizing SCSI cache
      Sep 18 21:21:24 storageqe-64 kernel: scsi 12:0:1:0: alua: Detached
      Sep 18 21:21:24 storageqe-64 udisksd[1987]: Cleaning up LUKS device /dev/dm-3 (backing device 8:16 no longer exists)
      Sep 18 21:21:24 storageqe-64 kernel: sd 11:0:1:0: [sdb] Synchronizing SCSI cache
      Sep 18 21:21:24 storageqe-64 kernel: scsi 11:0:1:0: alua: Detached
      Sep 18 21:21:24 storageqe-64 55-scsi-sg3_id.rules[10799]: WARNING: SCSI device dm-3 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
      Sep 18 21:21:24 storageqe-64 55-scsi-sg3_id.rules[10801]: WARNING: SCSI device dm-3 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
      Sep 18 21:21:34 storageqe-64 systemd[1]: systemd-hostnamed.service: Deactivated successfully.
       

            tbzatek Tomáš Bžatek
            guazhang@redhat.com Guangwu Zhang
            Tomáš Bžatek Tomáš Bžatek
            Guangwu Zhang Guangwu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: