[Bug 1901817] Re: subiquity installation (on s390x) reusing existing partitions fails with 'Network plugin raised an exception'
Frank Heimes
1901817 at bugs.launchpad.net
Thu Oct 29 08:43:27 UTC 2020
While I was doing a custom installation I ran into this error and the
subiquity session terminated:
get_blockdev_sector_size: (log=4096, phys=4096)
dasda logical_block_size_bytes: 4096
Verifying /dev/dasda1 exists
Running command ['sfdisk', '--json', '/dev/dasda'] with allowed return codes [0] (capture=True)
Unexpected error while running command.
Command: ['sfdisk', '--json', '/dev/dasda']
Exit code: 1
Reason: -
Stdout: ''
Stderr: sfdisk: /dev/dasda: does not contain a recognized partition table
Traceback (most recent call last):
File "/snap/subiquity/2100/lib/python3.6/site-packages/curtin/block/__init__.py", line 297, in sfdisk_info
(out, _err) = util.subp(['sfdisk', '--json', parent], capture=True)
File "/snap/subiquity/2100/lib/python3.6/site-packages/curtin/util.py", line 275, in subp
return _subp(*args, **kwargs)
File "/snap/subiquity/2100/lib/python3.6/site-packages/curtin/util.py", line 141, in _subp
cmd=args)
curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: ['sfdisk', '--json', '/dev/dasda']
Exit code: 1
Reason: -
Stdout: ''
Stderr: sfdisk: /dev/dasda: does not contain a recognized partition table
An error occured handling 'partition-dasda1': RuntimeError - Failed to extract sfdisk info from /dev/dasda1
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring partition: partition-dasda1
TIMED BLOCK_META: 2.768
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
Traceback (most recent call last):
File "/snap/subiquity/2100/lib/python3.6/site-packages/curtin/commands/main.py", line 202, in main
ret = args.func(args)
File "/snap/subiquity/2100/lib/python3.6/site-packages/curtin/log.py", line 97, in wrapper
return log_time("TIMED %s: " % msg, func, *args, **kwargs)
File "/snap/subiquity/2100/lib/python3.6/site-packages/curtin/log.py", line 79, in log_time
return func(*args, **kwargs)
File "/snap/subiquity/2100/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 111, in block_meta
return meta_custom(args)
File "/snap/subiquity/2100/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 1916, in meta_custom
handler(command, storage_config_dict)
File "/snap/subiquity/2100/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 880, in partition_handler
partition_verify(part_path, info)
File "/snap/subiquity/2100/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 779, in partition_verify
raise RuntimeError('Failed to extract sfdisk info from %s' % devpath)
RuntimeError: Failed to extract sfdisk info from /dev/dasda1
Failed to extract sfdisk info from /dev/dasda1
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'simple']
Exit code: 3
Reason: -
Stdout: start: cmd-install/stage-partitioning/builtin/cmd-block-meta: curtin command block-meta
get_path_to_storage_volume for volume partition-dasda1({'device': 'disk-dasda', 'size': 7385235456, 'wipe': 'superblock', 'flag': 'swap', 'number': 1, 'preserve': True, 'grub_device': False, 'type': 'partition', 'id': 'partition-dasda1'})
get_path_to_storage_volume for volume disk-dasda({'ptable': 'vtoc', 'serial': '0X1605', 'path': '/dev/dasda', 'preserve': True, 'name': '', 'grub_device': False, 'device_id': '0.0.1605', 'type': 'disk', 'id': 'disk-dasda'})
Since this again points to sfdisk, I belief that it's related to this ticket.
I'm attaching entire /var/crash and /var/log and mark this as affecting
curtin, too.
** Changed in: ubuntu-z-systems
Importance: Undecided => High
** Changed in: ubuntu-z-systems
Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team)
** Attachment added: "29102020.tgz"
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1901817/+attachment/5428895/+files/29102020.tgz
** Also affects: curtin
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1901817
Title:
subiquity installation (on s390x) reusing existing partitions fails
with 'Network plugin raised an exception'
Status in curtin:
New
Status in Ubuntu on IBM z Systems:
New
Status in subiquity package in Ubuntu:
New
Bug description:
While doing a 20.10 installation and trying to re-use existing partitions:
DASD 1:
/boot
swap
DASD 2:
root
the ssh session of the installer broke like this:
$ ssh installer at lpar
installer at lpar's password:
Welcome to Ubuntu 20.10 (GNU/Linux 5.8.0-25-generic s390x)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Wed Oct 28 07:39:05 UTC 2020
System load: 0.21 Memory usage: 2% Processes: 158
Usage of /home: unknown Swap usage: 0% Users logged in: 0
=> There were exceptions while processing one or more plugins. See
/var/log/landscape/sysinfo.log for more information.
0 updates can be installed immediately.
0 of these updates are security updates.
Last login: Wed Oct 28 07:34:11 2020 from 10.172.194.67
Connection to lpar closed.
$
in /var/log/landscape/sysinfo.log the following error is mentioned:
2020-10-28 07:39:05,527 ERROR Network plugin raised an exception.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/landscape/sysinfo/sysinfo.py", line 99, in run
result = plugin.run()
File "/usr/lib/python3/dist-packages/landscape/sysinfo/network.py", line 36, in run
device_info = self._get_device_info()
File "/usr/lib/python3/dist-packages/landscape/lib/network.py", line 163, in get_active_device_info
speed, duplex = get_network_interface_speed(
File "/usr/lib/python3/dist-packages/landscape/lib/network.py", line 256, in get_network_interface_speed
raise e
File "/usr/lib/python3/dist-packages/landscape/lib/network.py", line 248, in get_network_interface_speed
fcntl.ioctl(sock, SIOCETHTOOL, packed) # Status ioctl() call
InterruptedError: [Errno 4] Interrupted system call
2020-10-28 07:44:24,510 ERROR Network plugin raised an exception.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/landscape/sysinfo/sysinfo.py", line 99, in run
result = plugin.run()
I've also attached the entire content of /var/crash and /var/log
(according to /var/crash it looks like there is also another problem, since I see UI.crash and install_fail.crash)
I logs let me assume that there is an issue with sfdisk that makes me
remembering LP 1899471.
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1901817/+subscriptions
More information about the foundations-bugs
mailing list