MAAS fails to deploy on a system with 4Kn (4096-byte native sector size) disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Incomplete
|
Undecided
|
Unassigned | ||
1.9 |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
In testing a node with a 4Kn (4096-byte physical AND logical sector size) disk, MAAS fails to deploy the node. The "machine output" is as follows:
Creating new GPT entries.
Could not create partition 1 from 133120 to 15628051120
Could not change partition 1's type code to 8300!
Error encountered; not saving changes.
failed to sgdisk for uefi to /dev/sda
Unexpected error while running command.
Command: ['partition', '--format=uefi', '/dev/sda']
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'simple']
Exit code: 3
Reason: -
Stdout: "Creating new GPT entries.\nCould not create partition 1 from 133120 to 15628051120\nCould not change partition 1's type code to 8300!\nError encountered; not saving changes.\nfailed to sgdisk for uefi to /dev/sda\
Stderr: ''
The disk in question is an ~8TB HGST 0F23666, which is ~1,953,125,000 sectors; however, the preceding output shows that MAAS is attempting to create a partition that ends at sector 15,628,051,120 -- eight times the size of the disk. In other words, it appears that MAAS includes an assumption of 512-byte sectors somewhere in its code.
We can provide access to the disk in the Certification lab in Lexington.
$ dpkg -l '*maas*'|cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 1.9.0+bzr4533-
ii maas-cert-server 0.2.13-
ii maas-cli 1.9.0+bzr4533-
ii maas-cluster-
ii maas-common 1.9.0+bzr4533-
ii maas-dhcp 1.9.0+bzr4533-
ii maas-dns 1.9.0+bzr4533-
ii maas-proxy 1.9.0+bzr4533-
ii maas-region-
ii maas-region-
ii python-django-maas 1.9.0+bzr4533-
ii python-maas-client 1.9.0+bzr4533-
ii python-
Hi rod, please get the curting config using MAAS's CLI and attach it to the bug!
Thanks