curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #00660
[Bug 1887669] Re: subiquity on s390x doesn't handle pristine DASD disks that need an initial low-level format
I'm marking the curtin task invalid for now. If you find out more
information indicating that curtin needs to be changed, please mark this
task back to new.
** Changed in: curtin
Status: New => Invalid
--
You received this bug notification because you are a member of curtin
developers, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/1887669
Title:
subiquity on s390x doesn't handle pristine DASD disks that need an
initial low-level format
Status in curtin:
Invalid
Status in subiquity:
New
Status in Ubuntu on IBM z Systems:
New
Bug description:
In case a DASD (ECKD) disk is used for the very first time, it needs
to be initially low-level formatted with dasdfmt (this is needed only
once, at the very first usage).
I found a DASD disk in my environment that was not yet used before
(262f) and the installer should have identified that and should have
either called dasdfmt automatically or should have provided an option
in the menu for doing the low-level format.
But I couldn't see any of the two options, instead I saw a crash
saying that mke2fs failed - presumably because the disk was not low-
level formatted before and does not have a partition with vtoc on top:
mkfs /dev/dasda info: {'fstype': 'ext4', 'volume': 'disk-dasda', 'preserve': False, 'type': 'format', 'id': 'format-0'}
Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/dasda'] with allowed return codes [0] (capture=True)
get_blockdev_sector_size: (log=512
, phys=512
)
Running command ['mkfs.ext4', '-F', '-U', 'bd2d8254-9273-4f64-b6e6-d6c89ce0a1c5', '/dev/dasda'] with allowed return codes [0] (capture=True)
An error occured handling 'format-0': ProcessExecutionError - Unexpected error while running command.
Command: ['mkfs.ext4', '-F', '-U', 'bd2d8254-9273-4f64-b6e6-d6c89ce0a1c5', '/dev/dasda']
Exit code: 1
Reason: -
Stdout: ''
Stderr: mke2fs 1.45.5 (07-Jan-2020)
mkfs.ext4: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring format: format-0
TIMED BLOCK_META: 1.794
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
Traceback (most recent call last):
File "/snap/subiquity/1946/lib/python3.6/site-packages/curtin/commands/main.py", line 202, in main
ret = args.func(args)
File "/snap/subiquity/1946/lib/python3.6/site-packages/curtin/log.py", line 97, in wrapper
return log_time("TIMED %s: " % msg, func, *args, **kwargs)
File "/snap/subiquity/1946/lib/python3.6/site-packages/curtin/log.py", line 79, in log_time
return func(*args, **kwargs)
File "/snap/subiquity/1946/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 111, in block_meta
return meta_custom(args)
File "/snap/subiquity/1946/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 1911, in meta_custom
handler(command, storage_config_dict)
File "/snap/subiquity/1946/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 988, in format_handler
mkfs.mkfs_from_config(volume_path, info)
File "/snap/subiquity/1946/lib/python3.6/site-packages/curtin/block/mkfs.py", line 235, in mkfs_from_config
label=info.get('label'), extra_options=info.get('extra_options'))
File "/snap/subiquity/1946/lib/python3.6/site-packages/curtin/block/mkfs.py", line 211, in mkfs
util.subp(cmd, capture=True)
File "/snap/subiquity/1946/lib/python3.6/site-packages/curtin/util.py", line 275, in subp
return _subp(*args, **kwargs)
File "/snap/subiquity/1946/lib/python3.6/site-packages/curtin/util.py", line 141, in _subp
cmd=args)
curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: ['mkfs.ext4', '-F', '-U', 'bd2d8254-9273-4f64-b6e6-d6c89ce0a1c5', '/dev/dasda']
Exit code: 1
Reason: -
Stdout: ''
In the storage configuration screen:
USED DEVICES
DEVICE TYPE SIZE ┌─────────────────────────┐
[ /dev/dasda local disk 0B ▸│◂ (close) │
unused │ Info ▸│
│ Reformat ▸│
│ Add VTOC Partition ▸│
[ Done │ Format ▸│
[ Reset│ Remove from RAID/LVM │
[ Back └─────────────────────────┘
'Format' was the only active option (that wasn't grayed out), but this
seem to be for the Linux filesystem format only, not for the low-level
dasdfmt.
Btw. I used subiquity 20.06.1+git7.317648ae (1946) - used the 20.04 GA
live installer image, but updated to the latest installer version.
The attached doc shows the (relevant) steps I performed during the installation.
I'll also attach the logs ...
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1887669/+subscriptions