When setting up RAID installation, curtin failed on/after wiping RAID block device backed by IMSM

Bug #2061073 reported by Yao Wei
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
New
Undecided
Unassigned
subiquity
New
Undecided
Unassigned
curtin (Ubuntu)
New
Undecided
Unassigned
subiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

The following error in curtin is captured when using ubuntu-desktop-installer to install noble:

        Running command ['partprobe', '/dev/md127'] with allowed return codes [0, 1] (capture=False)
        Warning: Error fsyncing/closing /dev/md127: Input/output error
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.002
        devsync happy - path /dev/md127 now exists
        return volume path /dev/md127
        RAID validation: name=/dev/md126 raidlevel=raid1 devices=[] spares=[] container=/dev/md127
        Running command ['mdadm', '--query', '--detail', '--export', '/dev/md126'] with allowed return codes [0] (capture=True)
        Running command ['mdadm', '--query', '--detail', '--export', '/dev/md126'] with allowed return codes [0] (capture=True)
        RAID array OK: /dev/md126
        Verified /dev/md126 raid composition, raid is OK
        raid /dev/md126 already present, skipping create
        Wiping raid device /dev/md126 mode=superblock-recursive
        Running command ['wipefs', '--all', '--force', '/dev/md126'] with allowed return codes [0] (capture=False)
        /dev/md126: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
        /dev/md126: 8 bytes were erased at offset 0x3b9dc7ffe00 (gpt): 45 46 49 20 50 41 52 54
        /dev/md126: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
        An error occured handling 'raid-md126': KeyError - 'partition'
        finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring raid: raid-md126
        TIMED BLOCK_META: 1.442
        finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
        Traceback (most recent call last):
          File "/snap/ubuntu-desktop-bootstrap/113/lib/python3.10/site-packages/curtin/commands/main.py", line 202, in main
            ret = args.func(args)
          File "/snap/ubuntu-desktop-bootstrap/113/lib/python3.10/site-packages/curtin/log.py", line 97, in wrapper
            return log_time("TIMED %s: " % msg, func, *args, **kwargs)
          File "/snap/ubuntu-desktop-bootstrap/113/lib/python3.10/site-packages/curtin/log.py", line 79, in log_time
            return func(*args, **kwargs)
          File "/snap/ubuntu-desktop-bootstrap/113/lib/python3.10/site-packages/curtin/commands/block_meta.py", line 127, in block_meta
            return meta_custom(args)
          File "/snap/ubuntu-desktop-bootstrap/113/lib/python3.10/site-packages/curtin/commands/block_meta.py", line 2278, in meta_custom
            handler(command, storage_config_dict, context)
          File "/snap/ubuntu-desktop-bootstrap/113/lib/python3.10/site-packages/curtin/commands/block_meta.py", line 1853, in raid_handler
            block.wipe_volume(md_devname, mode=wipe_mode, exclusive=False)
          File "/snap/ubuntu-desktop-bootstrap/113/lib/python3.10/site-packages/curtin/block/__init__.py", line 1345, in wipe_volume
            quick_zero(path, partitions=True, exclusive=exclusive)
          File "/snap/ubuntu-desktop-bootstrap/113/lib/python3.10/site-packages/curtin/block/__init__.py", line 1245, in quick_zero
            ptdata = sysfs_partition_data(path)
          File "/snap/ubuntu-desktop-bootstrap/113/lib/python3.10/site-packages/curtin/block/__init__.py", line 1014, in sysfs_partition_data
            data['partition'],
        KeyError: 'partition'
        'partition'

All logs attached in the attachment.

Revision history for this message
Yao Wei (medicalwei) wrote :
tags: added: oem-priority
Yao Wei (medicalwei)
summary: - When setting up RAID installation, curtin tried to run partprobe on imsm
- container and failed
+ When setting up RAID installation, curtin failed to wipe imsm RAID block
+ device
summary: - When setting up RAID installation, curtin failed to wipe imsm RAID block
- device
+ When setting up RAID installation, curtin failed on/after wiping RAID
+ block device backed by IMSM
Dan Bungert (dbungert)
tags: added: foundations-todo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.