curtin custom install fails with spare unused disk
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
- device: vda
id: vda-part1
name: vda-part1
number: 1
offset: 2097152B
size: 17176723456B
type: partition
uuid: d9a3d0e8-
wipe: superblock
- fstype: ext4
id: vda-part1_format
label: root
type: format
uuid: 22c010b5-
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
- Blake Rouse (community): Approve
- Scott Moser: Pending requested
-
Diff: 26 lines (+9/-1)1 file modifiedcurtin/commands/block_meta.py (+9/-1)
Changed in curtin: | |
status: | New → Fix Committed |
importance: | Undecided → Critical |
Workaround is to apply a partition table to the disk.
ptable: gtp | ptable: msdos