[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 Jan 21 11:33:29 UTC 2021


Just checked if this is fixed with the just released subiquity 21.01.1
(since I was unsure), but it's not - so leaving the bug open and sharing
some details:

 Verifying /dev/dasda part 1 size, expecting 21846 tracks, found 21846 tracks
 An error occured handling 'partition-dasda1': UnboundLocalError - local variable 'part_path' referenced before assignment
 finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring partition: partition-dasda1
 TIMED BLOCK_META: 2.257
 finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
 Traceback (most recent call last):
   File "/snap/subiquity/2252/lib/python3.6/site-packages/curtin/commands/main.py", line 202, in main
     ret = args.func(args)
   File "/snap/subiquity/2252/lib/python3.6/site-packages/curtin/log.py", line 97, in wrapper
     return log_time("TIMED %s: " % msg, func, *args, **kwargs)
   File "/snap/subiquity/2252/lib/python3.6/site-packages/curtin/log.py", line 79, in log_time
     return func(*args, **kwargs)
   File "/snap/subiquity/2252/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 111, in block_meta
     return meta_custom(args)
   File "/snap/subiquity/2252/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 1937, in meta_custom
     handler(command, storage_config_dict)
   File "/snap/subiquity/2252/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 894, in partition_handler
     LOG.debug('Partition %s already present, skipping create', part_path)
 UnboundLocalError: local variable 'part_path' referenced before assignment
 local variable 'part_path' referenced before assignment
 curtin: Installation failed with exception: Unexpected error while running command.
 Command: ['curtin', 'block-meta', 'simple']
 Exit code: 3


** Attachment added: "hwe0006-21012021.tgz"
   https://bugs.launchpad.net/ubuntu-z-systems/+bug/1901817/+attachment/5455147/+files/hwe0006-21012021.tgz

-- 
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:
  In Progress
Status in Ubuntu on IBM z Systems:
  In Progress
Status in subiquity package in Ubuntu:
  Invalid

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