'PMBR' is not one of ['dos', 'gpt', 'mac', 'msdos', 'vtoc']

Bug #1848535 reported by Andreas Hasenack on 2019-10-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I had a successful installation with subiquity on a T420 with two disks. I then zapped both disks (sgdisk -Z /dev/sda and /dev/sdb) and rebooted into the installer to try another installation.

This time, however, it failed at "Probing for devices to isntall to failed". Logs show this traceback:
2019-10-17 15:33:34,481 ERROR curtin:1230 Validation error: 'PMBR' is not one of ['dos', 'gpt', 'mac', 'msdos', 'vtoc'] in
 "id": "disk-sdb",
 "path": "/dev/sdb",
 "ptable": "PMBR",
 "serial": "ST9500420AS_5VJEJ147",
 "type": "disk",
 "wwn": "0x5000c50044423236"
NoneType: None
2019-10-17 15:33:34,481 ERROR block-discover:161 load_probe_data failed restricted=False
Traceback (most recent call last):
  File "/snap/subiquity/1284/lib/python3.6/site-packages/subiquity/controllers/filesystem.py", line 158, in _probe_done
  File "/snap/subiquity/1284/lib/python3.6/site-packages/subiquity/models/filesystem.py", line 1310, in load_probe_data
  File "/snap/subiquity/1284/lib/python3.6/site-packages/subiquity/models/filesystem.py", line 1138, in reset
    config = storage_config.extract_storage_config(self._probe_data)
  File "/snap/subiquity/1284/lib/python3.6/site-packages/curtin/storage_config.py", line 1232, in extract_storage_config
    raise RuntimeError("Extract storage config does not validate.")
RuntimeError: Extract storage config does not validate.

isk /dev/sda: 447.13 GiB, 480103981056 bytes, 937703088 sectors
Disk model: INTEL SSDSC2BP48
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/sdb: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST9500420AS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device Boot Start End Sectors Size Id Type
/dev/sdb1 1 976773167 976773167 465.8G ee GPT

Related branches

Andreas Hasenack (ahasenack) wrote :
Ryan Harper (raharper) wrote :

This is a bit of whack-a-mole game with ptable values that we probe. I plan to omit included probed values that curtin cannot use; 'mac' and 'PMBR' are present on the source disk, but curtin will never create partition tables of these types. When we omit a ptable entry on a disk, subiquity (or curtin) will provide a valid default value.

Changed in curtin:
importance: Undecided → High
status: New → In Progress

This bug is fixed with commit f4f329c2 to curtin on branch master.
To view that commit see the following URL:

Changed in curtin:
status: In Progress → Fix Committed

This bug is believed to be fixed in curtin in version 19.3. 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
Changed in subiquity:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers