MAAS fails to deploy on 2TB+ disks with MBR partitions

Bug #1503468 reported by Andres Rodriguez
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Blake Rouse

Bug Description

We have a system with a 3TB+ disk that fails to deploy using LVM. Seems to be an issue with the calculation of partitions:

Hit http://archive.ubuntu.com trusty Release.gpg
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Hit http://archive.ubuntu.com trusty Release
Get:2 http://archive.ubuntu.com trusty-updates Release [63.5 kB]
Get:3 http://archive.ubuntu.com trusty/main Sources [1064 kB]
Get:4 http://archive.ubuntu.com trusty/universe Sources [6399 kB]
Ign http://security.ubuntu.com trusty-security InRelease
Get:5 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Get:6 http://security.ubuntu.com trusty-security Release [63.5 kB]
Get:7 http://archive.ubuntu.com trusty-updates/main Sources [237 kB]
Get:8 http://archive.ubuntu.com trusty-updates/universe Sources [139 kB]
Get:9 http://archive.ubuntu.com trusty-updates/main amd64 Packages [627 kB]
Get:10 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [319 kB]
Get:11 http://archive.ubuntu.com trusty-updates/main Translation-en [304 kB]
Get:12 http://security.ubuntu.com trusty-security/main Sources [96.9 kB]
Get:13 http://archive.ubuntu.com trusty-updates/universe Translation-en [169 kB]
Get:14 http://security.ubuntu.com trusty-security/universe Sources [31.0 kB]
Get:15 http://security.ubuntu.com trusty-security/main amd64 Packages [350 kB]
Get:16 http://security.ubuntu.com trusty-security/universe amd64 Packages [117 kB]
Get:17 http://security.ubuntu.com trusty-security/main Translation-en [191 kB]
Get:18 http://security.ubuntu.com trusty-security/universe Translation-en [68.2 kB]
Fetched 10.2 MB in 2s (3421 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libdevmapper-event1.02.1 libreadline5 postfix ssl-cert watershed
Suggested packages:
  thin-provisioning-tools procmail postfix-mysql postfix-pgsql postfix-ldap
  postfix-pcre sasl2-bin dovecot-common postfix-cdb mail-reader postfix-doc
  openssl-blacklist
Recommended packages:
  default-mta mail-transport-agent
The following NEW packages will be installed:
  bcache-tools libdevmapper-event1.02.1 libreadline5 lvm2 mdadm postfix
  ssl-cert watershed
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 2101 kB of archives.
After this operation, 6837 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libdevmapper-event1.02.1 amd64 2:1.02.77-6ubuntu2 [10.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main libreadline5 amd64 5.2+dfsg-2 [130 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main bcache-tools amd64 1.0.7-1~14.04.1 [17.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main watershed amd64 7 [11.4 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main lvm2 amd64 2.02.98-6ubuntu2 [470 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main mdadm amd64 3.2.5-5ubuntu4.2 [361 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main ssl-cert all 1.0.33 [16.6 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ trusty-updates/main postfix amd64 2.11.0-1ubuntu1 [1084 kB]
Preconfiguring packages ...
Fetched 2101 kB in 0s (39.0 MB/s)
Selecting previously unselected package libdevmapper-event1.02.1:amd64.
(Reading database ... 56173 files and directories currently installed.)
Preparing to unpack .../libdevmapper-event1.02.1_2%3a1.02.77-6ubuntu2_amd64.deb ...
Unpacking libdevmapper-event1.02.1:amd64 (2:1.02.77-6ubuntu2) ...
Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../libreadline5_5.2+dfsg-2_amd64.deb ...
Unpacking libreadline5:amd64 (5.2+dfsg-2) ...
Selecting previously unselected package bcache-tools.
Preparing to unpack .../bcache-tools_1.0.7-1~14.04.1_amd64.deb ...
Unpacking bcache-tools (1.0.7-1~14.04.1) ...
Selecting previously unselected package watershed.
Preparing to unpack .../archives/watershed_7_amd64.deb ...
Unpacking watershed (7) ...
Selecting previously unselected package lvm2.
Preparing to unpack .../lvm2_2.02.98-6ubuntu2_amd64.deb ...
Unpacking lvm2 (2.02.98-6ubuntu2) ...
Selecting previously unselected package mdadm.
Preparing to unpack .../mdadm_3.2.5-5ubuntu4.2_amd64.deb ...
Unpacking mdadm (3.2.5-5ubuntu4.2) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../ssl-cert_1.0.33_all.deb ...
Unpacking ssl-cert (1.0.33) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_2.11.0-1ubuntu1_amd64.deb ...
Unpacking postfix (2.11.0-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Setting up libdevmapper-event1.02.1:amd64 (2:1.02.77-6ubuntu2) ...
Setting up libreadline5:amd64 (5.2+dfsg-2) ...
Setting up bcache-tools (1.0.7-1~14.04.1) ...
update-initramfs: deferring update (trigger activated)
Setting up watershed (7) ...
update-initramfs: deferring update (trigger activated)
Setting up lvm2 (2.02.98-6ubuntu2) ...
update-initramfs: deferring update (trigger activated)
Setting up mdadm (3.2.5-5ubuntu4.2) ...
Generating mdadm.conf... done.
 Removing any system startup links for /etc/init.d/mdadm-raid ...
update-initramfs: deferring update (trigger activated)
/usr/sbin/grub-probe: error: failed to get canonical path of `overlayroot'.
invoke-rc.d: policy-rc.d denied execution of start.
Setting up ssl-cert (1.0.33) ...
hostname: Name or service not known
make-ssl-cert: Could not get FQDN, using "maas-1-01".
make-ssl-cert: You may want to fix your /etc/hosts and/or DNS setup and run
make-ssl-cert: make-ssl-cert generate-default-snakeoil --force-overwrite
make-ssl-cert: again.
Setting up postfix (2.11.0-1ubuntu1) ...
Adding group `postfix' (GID 112) ...
Done.
Adding system user `postfix' (UID 106) ...
Adding new user `postfix' (UID 106) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (GID 113) ...
Done.
setting myhostname: maas-1-01
setting alias maps
setting alias database
mailname is not a fully qualified domain name. Not changing /etc/mailname.
setting destinations: localdomain, localhost, localhost.localdomain, localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.

Postfix is now set up with a default configuration. If you need to make
changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
invoke-rc.d: policy-rc.d denied execution of restart.
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-65-generic
cryptsetup: WARNING: failed to detect canonical device of /media/root-ro/
cryptsetup: WARNING: could not determine root device from /etc/fstab
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
mdadm: No arrays found in config file or automatically
Error: /dev/sdb: unrecognised disk label
mdadm: No arrays found in config file or automatically
Error: /dev/sdb: unrecognised disk label
Error: /dev/sdc: unrecognised disk label
mdadm: No arrays found in config file or automatically
Error: /dev/sdc: unrecognised disk label
Error: /dev/sdd: unrecognised disk label
mdadm: No arrays found in config file or automatically
Error: /dev/sdd: unrecognised disk label
Error: partition length of 5860527025 sectors exceeds the msdos-partition-table-imposed maximum of 4294967295
An error occured handling 'sda-part1': ProcessExecutionError - Unexpected error while running command.
Command: ['parted', '/dev/sda', '--script', 'mkpart', 'primary', '2048s', '5860529072s']
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Unexpected error while running command.
Command: ['parted', '/dev/sda', '--script', 'mkpart', 'primary', '2048s', '5860529072s']
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: 'Ign http://archive.ubuntu.com trusty InRelease\nIgn http://archive.ubuntu.com trusty-updates InRelease\nHit http://archive.ubuntu.com trusty Release.gpg\nGet:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]\nHit http://archive.ubuntu.com trusty Release\nGet:2 http://archive.ubuntu.com trusty-updates Release [63.5 kB]\nGet:3 http://archive.ubuntu.com trusty/main Sources [1064 kB]\nGet:4 http://archive.ubuntu.com trusty/universe Sources [6399 kB]\nIgn http://security.ubuntu.com trusty-security InRelease\nGet:5 http://security.ubuntu.com trusty-security Release.gpg [933 B]\nHit http://archive.ubuntu.com trusty/main amd64 Packages\nHit http://archive.ubuntu.com trusty/universe amd64 Packages\nHit http://archive.ubuntu.com trusty/main Translation-en\nHit http://archive.ubuntu.com trusty/universe Translation-en\nGet:6 http://security.ubuntu.com trusty-security Release [63.5 kB]\nGet:7 http://archive.ubuntu.com trusty-updates/main Sources [237 kB]\nGet:8 http://archive.ubuntu.com trusty-updates/universe Sources [139 kB]\nGet:9 http://archive.ubuntu.com trusty-updates/main amd64 Packages [627 kB]\nGet:10 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [319 kB]\nGet:11 http://archive.ubuntu.com trusty-updates/main Translation-en [304 kB]\nGet:12 http://security.ubuntu.com trusty-security/main Sources [96.9 kB]\nGet:13 http://archive.ubuntu.com trusty-updates/universe Translation-en [169 kB]\nGet:14 http://security.ubuntu.com trusty-security/universe Sources [31.0 kB]\nGet:15 http://security.ubuntu.com trusty-security/main amd64 Packages [350 kB]\nGet:16 http://security.ubuntu.com trusty-security/universe amd64 Packages [117 kB]\nGet:17 http://security.ubuntu.com trusty-security/main Translation-en [191 kB]\nGet:18 http://security.ubuntu.com trusty-security/universe Translation-en [68.2 kB]\nFetched 10.2 MB in 2s (3421 kB/s)\nReading package lists...\nReading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n libdevmapper-event1.02.1 libreadline5 postfix ssl-cert watershed\nSuggested packages:\n thin-provisioning-tools procmail postfix-mysql postfix-pgsql postfix-ldap\n postfix-pcre sasl2-bin dovecot-common postfix-cdb mail-reader postfix-doc\n openssl-blacklist\nRecommended packages:\n default-mta mail-transport-agent\nThe following NEW packages will be installed:\n bcache-tools libdevmapper-event1.02.1 libreadline5 lvm2 mdadm postfix\n ssl-cert watershed\n0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 2101 kB of archives.\nAfter this operation, 6837 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu/ trusty/main libdevmapper-event1.02.1 amd64 2:1.02.77-6ubuntu2 [10.8 kB]\nGet:2 http://archive.ubuntu.com/ubuntu/ trusty/main libreadline5 amd64 5.2+dfsg-2 [130 kB]\nGet:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main bcache-tools amd64 1.0.7-1~14.04.1 [17.4 kB]\nGet:4 http://archive.ubuntu.com/ubuntu/ trusty/main watershed amd64 7 [11.4 kB]\nGet:5 http://archive.ubuntu.com/ubuntu/ trusty/main lvm2 amd64 2.02.98-6ubuntu2 [470 kB]\nGet:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main mdadm amd64 3.2.5-5ubuntu4.2 [361 kB]\nGet:7 http://archive.ubuntu.com/ubuntu/ trusty/main ssl-cert all 1.0.33 [16.6 kB]\nGet:8 http://archive.ubuntu.com/ubuntu/ trusty-updates/main postfix amd64 2.11.0-1ubuntu1 [1084 kB]\nPreconfiguring packages ...\nFetched 2101 kB in 0s (39.0 MB/s)\nSelecting previously unselected package libdevmapper-event1.02.1:amd64.\n(Reading database ... 56173 files and directories currently installed.)\nPreparing to unpack .../libdevmapper-event1.02.1_2%3a1.02.77-6ubuntu2_amd64.deb ...\nUnpacking libdevmapper-event1.02.1:amd64 (2:1.02.77-6ubuntu2) ...\nSelecting previously unselected package libreadline5:amd64.\nPreparing to unpack .../libreadline5_5.2+dfsg-2_amd64.deb ...\nUnpacking libreadline5:amd64 (5.2+dfsg-2) ...\nSelecting previously unselected package bcache-tools.\nPreparing to unpack .../bcache-tools_1.0.7-1~14.04.1_amd64.deb ...\nUnpacking bcache-tools (1.0.7-1~14.04.1) ...\nSelecting previously unselected package watershed.\nPreparing to unpack .../archives/watershed_7_amd64.deb ...\nUnpacking watershed (7) ...\nSelecting previously unselected package lvm2.\nPreparing to unpack .../lvm2_2.02.98-6ubuntu2_amd64.deb ...\nUnpacking lvm2 (2.02.98-6ubuntu2) ...\nSelecting previously unselected package mdadm.\nPreparing to unpack .../mdadm_3.2.5-5ubuntu4.2_amd64.deb ...\nUnpacking mdadm (3.2.5-5ubuntu4.2) ...\nSelecting previously unselected package ssl-cert.\nPreparing to unpack .../ssl-cert_1.0.33_all.deb ...\nUnpacking ssl-cert (1.0.33) ...\nSelecting previously unselected package postfix.\nPreparing to unpack .../postfix_2.11.0-1ubuntu1_amd64.deb ...\nUnpacking postfix (2.11.0-1ubuntu1) ...\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\nProcessing triggers for ureadahead (0.100.0-16) ...\nProcessing triggers for ufw (0.34~rc-0ubuntu2) ...\nSetting up libdevmapper-event1.02.1:amd64 (2:1.02.77-6ubuntu2) ...\nSetting up libreadline5:amd64 (5.2+dfsg-2) ...\nSetting up bcache-tools (1.0.7-1~14.04.1) ...\nupdate-initramfs: deferring update (trigger activated)\nSetting up watershed (7) ...\nupdate-initramfs: deferring update (trigger activated)\nSetting up lvm2 (2.02.98-6ubuntu2) ...\nupdate-initramfs: deferring update (trigger activated)\nSetting up mdadm (3.2.5-5ubuntu4.2) ...\nGenerating mdadm.conf... done.\n Removing any system startup links for /etc/init.d/mdadm-raid ...\nupdate-initramfs: deferring update (trigger activated)\n/usr/sbin/grub-probe: error: failed to get canonical path of `overlayroot\'.\ninvoke-rc.d: policy-rc.d denied execution of start.\nSetting up ssl-cert (1.0.33) ...\nhostname: Name or service not known\nmake-ssl-cert: Could not get FQDN, using "maas-1-01".\nmake-ssl-cert: You may want to fix your /etc/hosts and/or DNS setup and run\nmake-ssl-cert: make-ssl-cert generate-default-snakeoil --force-overwrite\nmake-ssl-cert: again.\nSetting up postfix (2.11.0-1ubuntu1) ...\nAdding group `postfix\' (GID 112) ...\nDone.\nAdding system user `postfix\' (UID 106) ...\nAdding new user `postfix\' (UID 106) with group `postfix\' ...\nNot creating home directory `/var/spool/postfix\'.\nCreating /etc/postfix/dynamicmaps.cf\nAdding tcp map entry to /etc/postfix/dynamicmaps.cf\nAdding sqlite map entry to /etc/postfix/dynamicmaps.cf\nAdding group `postdrop\' (GID 113) ...\nDone.\nsetting myhostname: maas-1-01\nsetting alias maps\nsetting alias database\nmailname is not a fully qualified domain name. Not changing /etc/mailname.\nsetting destinations: localdomain, localhost, localhost.localdomain, localhost\nsetting relayhost: \nsetting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128\nsetting mailbox_size_limit: 0\nsetting recipient_delimiter: +\nsetting inet_interfaces: all\nsetting inet_protocols: all\n/etc/aliases does not exist, creating it.\nWARNING: /etc/aliases exists, but does not have a root alias.\n\nPostfix is now set up with a default configuration. If you need to make \nchanges, edit\n/etc/postfix/main.cf (and others) as needed. To view Postfix configuration\nvalues, see postconf(1).\n\nAfter modifying main.cf, be sure to run \'/etc/init.d/postfix reload\'.\n\nRunning newaliases\ninvoke-rc.d: policy-rc.d denied execution of restart.\nProcessing triggers for libc-bin (2.19-0ubuntu6.6) ...\nProcessing triggers for initramfs-tools (0.103ubuntu4.2) ...\nupdate-initramfs: Generating /boot/initrd.img-3.13.0-65-generic\ncryptsetup: WARNING: failed to detect canonical device of /media/root-ro/\ncryptsetup: WARNING: could not determine root device from /etc/fstab\nW: mdadm: /etc/mdadm/mdadm.conf defines no arrays.\nProcessing triggers for ureadahead (0.100.0-16) ...\nProcessing triggers for ufw (0.34~rc-0ubuntu2) ...\nmdadm: No arrays found in config file or automatically\nError: /dev/sdb: unrecognised disk label\nmdadm: No arrays found in config file or automatically\nError: /dev/sdb: unrecognised disk label\nError: /dev/sdc: unrecognised disk label\nmdadm: No arrays found in config file or automatically\nError: /dev/sdc: unrecognised disk label\nError: /dev/sdd: unrecognised disk label\nmdadm: No arrays found in config file or automatically\nError: /dev/sdd: unrecognised disk label\nError: partition length of 5860527025 sectors exceeds the msdos-partition-table-imposed maximum of 4294967295\nAn error occured handling \'sda-part1\': ProcessExecutionError - Unexpected error while running command.\nCommand: [\'parted\', \'/dev/sda\', \'--script\', \'mkpart\', \'primary\', \'2048s\', \'5860529072s\']\nExit code: 1\nReason: -\nStdout: \'\'\nStderr: \'\'\nUnexpected error while running command.\nCommand: [\'parted\', \'/dev/sda\', \'--script\', \'mkpart\', \'primary\', \'2048s\', \'5860529072s\']\nExit code: 1\nReason: -\nStdout: \'\'\nStderr: \'\'\n'
Stderr: ''

Tags: storage

Related branches

Changed in maas:
assignee: nobody → Blake Rouse (blake-rouse)
milestone: none → 1.9.0
summary: - MAAS fails to deploy with LVM on 3TB+ disks
+ MAAS fails to deploy with LVM on 2TB+ disks
Changed in maas:
status: New → In Progress
importance: Undecided → Critical
tags: added: storage
summary: - MAAS fails to deploy with LVM on 2TB+ disks
+ MAAS fails to deploy on 2TB+ disks with MBR partitions
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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