curtin custom install fails with spare unused disk

Bug #1488150 reported by Ryan Harper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Fix Released
Critical
Unassigned

Bug Description

[ 52.809564] cloud-init[931]: An error occured handling 'vdb': UnboundLocalError - local variable 'ptuuid' referenced before assignment
[ 52.816943] cloud-init[931]: local variable 'ptuuid' referenced before assignment
[ 52.836756] cloud-init[931]: Installation failed with exception: Unexpected error while running command.
[ 52.838824] cloud-init[931]: Command: ['curtin', 'block-meta', 'simple']

storage.cfg

storage:
    version: 1
    config:
    - id: vda
        type: disk
        ptable: msdos
        path: /dev/vdc
        name: vda
        wipe: superblock
        grub_device: true
    - device: vda
        id: vda-part1
        name: vda-part1
        number: 1
        offset: 2097152B
        size: 17176723456B
        type: partition
        uuid: d9a3d0e8-1a4c-4b62-a666-286902f7ffd8
        wipe: superblock
    - fstype: ext4
        id: vda-part1_format
        label: root
        type: format
        uuid: 22c010b5-bcfd-40cc-9f96-cefa1bcf7c64
        volume: vda-part1
    - device: vda-part1_format
        id: vda-part1_mount
        path: /
        type: mount
    - id: vdb
        type: disk
        path: /dev/vdd
        name: sparedisk
        wipe: superblock

Related branches

Revision history for this message
Ryan Harper (raharper) wrote :

Workaround is to apply a partition table to the disk.

ptable: gtp | ptable: msdos

Changed in curtin:
status: New → Fix Committed
importance: Undecided → Critical
Revision history for this message
Scott Moser (smoser) wrote : Fixed in Curtin 17.1

This bug is believed to be fixed in curtin in 17.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in curtin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.