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

[RHEL10] create MD failed if don't set bitmap

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.0.beta
    • rhel-10.0
    • libblockdev
    • None
    • libblockdev-3.1.0-3.el10
    • None
    • None
    • rhel-sst-storage-management
    • ssg_filesystems_storage_and_HA
    • 12
    • 12
    • 1
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

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

      https://github.com/storaged-project/libblockdev/pull/1014

      Please provide the package NVR for which bug is seen:

      How reproducible:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

       

      [2024-04-02 23:18:01] [1;32m INFO: free disk is ['/dev/sda', '/dev/sdc'] [0m
      Traceback (most recent call last):
        File "/mnt/tests/gitlab.cee.redhat.com/guazhang/mycase/-/archive/master/mycase-master.zip/storage/dm-crypt/cryptsetup_libblockdev/luks_main.py", line 132, in <module>
          target = obj.make_test_target(i)
                   ^^^^^^^^^^^^^^^^^^^^^^^
        File "/mnt/tests/gitlab.cee.redhat.com/guazhang/mycase/-/archive/master/mycase-master.zip/storage/dm-crypt/cryptsetup_libblockdev/luks.py", line 1194, in make_test_target
          dev = self.add_raid(self.raid_name, self.raid_mem, self.raid_level, size="3G")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/mnt/tests/gitlab.cee.redhat.com/guazhang/mycase/-/archive/master/mycase-master.zip/storage/dm-crypt/cryptsetup_libblockdev/luks.py", line 941, in add_raid
          succ = bd.md_create(raid_name, raid_level, raid_mem, **kwrags)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/gi/overrides/BlockDev.py", line 1023, in md_create
          return _md_create(device_name, level, disks, spares, version, bitmap, chunk_size, extra)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      TypeError: Must be string, not bool

              vtrefny@redhat.com Vojtěch Trefný
              guazhang@redhat.com Guangwu Zhang
              Vojtěch Trefný Vojtěch Trefný
              Guangwu Zhang Guangwu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: