[Bug 1991413] Re: Autoinstall with storage-version 2 should guess unspecified offsets

Olivier Gayot 1991413 at bugs.launchpad.net
Fri Sep 30 17:07:34 UTC 2022


After doing more tests, it seems that the error only occurs when there
is a size: -1 somewhere. Somehow, find_disk_parts_v2 never gets called
if all partitions have a size specified, so it reduces the impact.

** Description changed:

  When storage-version is 2, the following autoinstall excerpt produces an
- exception:
+ exception and the install fails.
  
  ```
          - type: disk
            ptable: gpt
            wipe: superblock-recursive
            path: /dev/sda
            grub_device: true
            id: disk-1
  
          - type: partition
            number: 1
            flag: boot
            device: disk-1
            size: 1G
            wipe: superblock
            id: partition-boot
  
          - type: partition
            number: 1
            flag: boot
            device: disk-1
            size: -1
            wipe: superblock
            id: partition-boot
  
  ```
  
  TypeError: '<' not supported between instances of 'NoneType' and
  'NoneType'
  
  Full traceback: https://pastebin.canonical.com/p/Gf5D2wVWhN/

-- 
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/1991413

Title:
  Autoinstall with storage-version 2 should guess unspecified offsets

Status in subiquity package in Ubuntu:
  New

Bug description:
  When storage-version is 2, the following autoinstall excerpt produces
  an exception and the install fails.

  ```
          - type: disk
            ptable: gpt
            wipe: superblock-recursive
            path: /dev/sda
            grub_device: true
            id: disk-1

          - type: partition
            number: 1
            flag: boot
            device: disk-1
            size: 1G
            wipe: superblock
            id: partition-boot

          - type: partition
            number: 1
            flag: boot
            device: disk-1
            size: -1
            wipe: superblock
            id: partition-boot

  ```

  TypeError: '<' not supported between instances of 'NoneType' and
  'NoneType'

  Full traceback: https://pastebin.canonical.com/p/Gf5D2wVWhN/

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1991413/+subscriptions




More information about the foundations-bugs mailing list