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

[RHEL10.2] MD ChildConfiguration get empty

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.2
    • udisks2
    • None
    • No
    • None
    • rhel-storage-management
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

                  print(f"Found UDisks2 MD object: {md_object_path}")            # Get the MD object
                  md_obj = self.udisks.get_object(md_object_path)            # Test various properties
                  properties_to_test = [
                      'Name', 'UUID', 'Level', 'NumDevices', 'Size', 'ActiveDevices',
                      'ChildConfiguration', 'Running', 'Degraded'
                  ]            for prop in properties_to_test:
                      try:
                          value = self.udisks.get_property_raw(md_obj, '.MDRaid', prop)
                          if prop == 'ChildConfiguration':
                              print(f"\n*** {prop}: {value} (type: {type(value)}) ***")
                              if hasattr(value, '__len__'):
                                  print(f"    Length: {len(value)}")
                                  if len(value) > 0:
                                      for i, item in enumerate(value):
                                          print(f"    Item {i}: {item}")
                              results['child_config'] = value
                          else:
                              display_value = value
                              if prop in ['Name', 'UUID'] and isinstance(value, dbus.Array):
                                  display_value = self.udisks.ay_to_str(value)
                              print(f"{prop}: {display_value}")
                              results[prop.lower()] = value
                      except Exception as e:
                          print(f"Failed to get {prop}: {e}")
                          results[f'{prop.lower()}_error'] = str(e)
       

      the ChildConfiguration is empty

      mdadm-4.4-2.el10.x86_64

      udisks2-2.10.90-6.el10_1.x86_64

              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:
              4 Start watching this issue

                Created:
                Updated: