[Bug 2061073] [NEW] When setting up RAID installation, curtin tried to run partprobe on imsm container and failed
Yao Wei
2061073 at bugs.launchpad.net
Fri Apr 12 06:23:43 UTC 2024
Public bug reported:
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.
** Affects: oem-priority
Importance: Undecided
Status: New
** Affects: curtin (Ubuntu)
Importance: Undecided
Status: New
** Tags: oem-priority
** Attachment added: "curtin-partprobe-imsm.tar.xz"
https://bugs.launchpad.net/bugs/2061073/+attachment/5764056/+files/curtin-partprobe-imsm.tar.xz
** Also affects: oem-priority
Importance: Undecided
Status: New
** Tags added: oem-priority
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to curtin in Ubuntu.
https://bugs.launchpad.net/bugs/2061073
Title:
When setting up RAID installation, curtin tried to run partprobe on
imsm container and failed
Status in OEM Priority Project:
New
Status in curtin package in Ubuntu:
New
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2061073/+subscriptions
More information about the foundations-bugs
mailing list