set-boot-disk yields in a machine not being able to deploy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse | ||
curtin |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I commissioned a machine with 2 disks. Right after the machine was commissioned, "vda" was set as the root disk "/". However, Via the API I set-boot-disk to vdb. However, the deployment failed:
Ign http://
Ign http://
Get:1 http://
Ign http://
Hit http://
Get:2 http://
Get:3 http://
Get:4 http://
Hit http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Fetched 10.2 MB in 8s (1203 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libdevmapper-
Suggested packages:
thin-
postfix-pcre sasl2-bin dovecot-common postfix-cdb mail-reader postfix-doc
openssl-blacklist
Recommended packages:
default-mta mail-transport-
The following NEW packages will be installed:
bcache-tools libdevmapper-
ssl-cert watershed
0 upgraded, 8 newly installed, 0 to remove and 49 not upgraded.
Need to get 2101 kB of archives.
After this operation, 6837 kB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Preconfiguring packages ...
Fetched 2101 kB in 0s (20.5 MB/s)
Selecting previously unselected package libdevmapper-
(Reading database ... 56174 files and directories currently installed.)
Preparing to unpack .../libdevmappe
Unpacking libdevmapper-
Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../libreadline
Unpacking libreadline5:amd64 (5.2+dfsg-2) ...
Selecting previously unselected package bcache-tools.
Preparing to unpack .../bcache-
Unpacking bcache-tools (1.0.7-1~14.04.1) ...
Selecting previously unselected package watershed.
Preparing to unpack .../archives/
Unpacking watershed (7) ...
Selecting previously unselected package lvm2.
Preparing to unpack .../lvm2_
Unpacking lvm2 (2.02.98-6ubuntu2) ...
Selecting previously unselected package mdadm.
Preparing to unpack .../mdadm_
Unpacking mdadm (3.2.5-5ubuntu4.2) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../ssl-
Unpacking ssl-cert (1.0.33) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_
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-
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.
update-initramfs: deferring update (trigger activated)
/usr/sbin/
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 "node01".
make-ssl-cert: You may want to fix your /etc/hosts and/or DNS setup and run
make-ssl-cert: make-ssl-cert generate-
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/
Creating /etc/postfix/
Adding tcp map entry to /etc/postfix/
Adding sqlite map entry to /etc/postfix/
Adding group `postdrop' (GID 113) ...
Done.
setting myhostname: node01
setting alias maps
setting alias database
mailname is not a fully qualified domain name. Not changing /etc/mailname.
setting destinations: localdomain, localhost, localhost.
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:
setting mailbox_size_limit: 0
setting recipient_
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/
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.
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.
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/
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Error: /dev/vda: unrecognised disk label
mdadm: No arrays found in config file or automatically
mdadm: No arrays found in config file or automatically
Error: /dev/vdb: unrecognised disk label
--2015-09-30 15:47:30-- http://
Connecting to 192.168.
HTTP request sent, awaiting response... 200 OK
Length: 319472215 (305M) [text/html]
Saving to: 'STDOUT'
0K ........ ........ ........ ........ ........ ........ 0% 12.0M 25s
3072K ........ ........ ........ ........ ........ ........ 1% 29.0M 18s
6144K ........ ........ ........ ........ ........ ........ 2% 8.97M 23s
9216K ........ ........ ........ ........ ........ ........ 3% 18.7M 21s
12288K ........ ........ ........ ........ ........ ........ 4% 16.6M 20s
15360K ........ ........ ........ ........ ........ ........ 5% 21.0M 19s
18432K ........ ........ ........ ........ ........ ........ 6% 9.13M 20s
21504K ........ ........ ........ ........ ........ ........ 7% 29.3M 19s
24576K ........ ........ ........ ........ ........ ........ 8% 38.6M 17s
27648K ........ ........ ........ ........ ........ ........ 9% 16.6M 17s
30720K ........ ........ ........ ........ ........ ........ 10% 29.1M 16s
33792K ........ ........ ........ ........ ........ ........ 11% 16.5M 16s
36864K ........ ........ ........ ........ ........ ........ 12% 44.0M 15s
39936K ........ ........ ........ ........ ........ ........ 13% 18.7M 15s
43008K ........ ........ ........ ........ ........ ........ 14% 15.8M 15s
46080K ........ ........ ........ ........ ........ ........ 15% 18.9M 15s
49152K ........ ........ ........ ........ ........ ........ 16% 17.0M 14s
52224K ........ ........ ........ ........ ........ ........ 17% 7.39M 15s
55296K ........ ........ ........ ........ ........ ........ 18% 12.9M 15s
58368K ........ ........ ........ ........ ........ ........ 19% 21.6M 15s
61440K ........ ........ ........ ........ ........ ........ 20% 24.7M 15s
64512K ........ ........ ........ ........ ........ ........ 21% 6.46M 15s
67584K ........ ........ ........ ........ ........ ........ 22% 16.3M 15s
70656K ........ ........ ........ ........ ........ ........ 23% 12.3M 15s
73728K ........ ........ ........ ........ ........ ........ 24% 6.85M 16s
76800K ........ ........ ........ ........ ........ ........ 25% 8.91M 16s
79872K ........ ........ ........ ........ ........ ........ 26% 7.92M 16s
82944K ........ ........ ........ ........ ........ ........ 27% 11.3M 16s
86016K ........ ........ ........ ........ ........ ........ 28% 17.1M 16s
89088K ........ ........ ........ ........ ........ ........ 29% 22.9M 15s
92160K ........ ........ ........ ........ ........ ........ 30% 21.3M 15s
95232K ........ ........ ........ ........ ........ ........ 31% 20.3M 15s
98304K ........ ........ ........ ........ ........ ........ 32% 21.2M 14s
101376K ........ ........ ........ ........ ........ ........ 33% 18.6M 14s
104448K ........ ........ ........ ........ ........ ........ 34% 13.4M 14s
107520K ........ ........ ........ ........ ........ ........ 35% 13.3M 14s
110592K ........ ........ ........ ........ ........ ........ 36% 15.9M 13s
113664K ........ ........ ........ ........ ........ ........ 37% 10.4M 13s
116736K ........ ........ ........ ........ ........ ........ 38% 16.5M 13s
119808K ........ ........ ........ ........ ........ ........ 39% 15.5M 13s
122880K ........ ........ ........ ........ ........ ........ 40% 8.26M 13s
125952K ........ ........ ........ ........ ........ ........ 41% 12.9M 13s
129024K ........ ........ ........ ........ ........ ........ 42% 11.8M 12s
132096K ........ ........ ........ ........ ........ ........ 43% 11.8M 12s
135168K ........ ........ ........ ........ ........ ........ 44% 11.3M 12s
138240K ........ ........ ........ ........ ........ ........ 45% 4.25M 13s
141312K ........ ........ ........ ........ ........ ........ 46% 7.12M 13s
144384K ........ ........ ........ ........ ........ ........ 47% 20.7M 12s
147456K ........ ........ ........ ........ ........ ........ 48% 24.6M 12s
150528K ........ ........ ........ ........ ........ ........ 49% 18.2M 12s
153600K ........ ........ ........ ........ ........ ........ 50% 29.5M 11s
156672K ........ ........ ........ ........ ........ ........ 51% 25.7M 11s
159744K ........ ........ ........ ........ ........ ........ 52% 37.0M 11s
162816K ........ ........ ........ ........ ........ ........ 53% 4.57M 11s
165888K ........ ........ ........ ........ ........ ........ 54% 14.1M 11s
168960K ........ ........ ........ ........ ........ ........ 55% 10.3M 10s
172032K ........ ........ ........ ........ ........ ........ 56% 18.7M 10s
175104K ........ ........ ........ ........ ........ ........ 57% 13.2M 10s
178176K ........ ........ ........ ........ ........ ........ 58% 14.6M 10s
181248K ........ ........ ........ ........ ........ ........ 59% 3.35M 10s
184320K ........ ........ ........ ........ ........ ........ 60% 7.35M 10s
187392K ........ ........ ........ ........ ........ ........ 61% 7.80M 10s
190464K ........ ........ ........ ........ ........ ........ 62% 16.8M 9s
193536K ........ ........ ........ ........ ........ ........ 63% 16.8M 9s
196608K ........ ........ ........ ........ ........ ........ 64% 3.05M 9s
199680K ........ ........ ........ ........ ........ ........ 64% 15.6M 9s
202752K ........ ........ ........ ........ ........ ........ 65% 9.32M 9s
205824K ........ ........ ........ ........ ........ ........ 66% 26.3M 8s
208896K ........ ........ ........ ........ ........ ........ 67% 9.81M 8s
211968K ........ ........ ........ ........ ........ ........ 68% 7.54M 8s
215040K ........ ........ ........ ........ ........ ........ 69% 3.27M 8s
218112K ........ ........ ........ ........ ........ ........ 70% 12.7M 8s
221184K ........ ........ ........ ........ ........ ........ 71% 7.22M 8s
224256K ........ ........ ........ ........ ........ ........ 72% 16.6M 7s
227328K ........ ........ ........ ........ ........ ........ 73% 25.3M 7s
230400K ........ ........ ........ ........ ........ ........ 74% 13.0M 7s
233472K ........ ........ ........ ........ ........ ........ 75% 19.9M 6s
236544K ........ ........ ........ ........ ........ ........ 76% 3.01M 6s
239616K ........ ........ ........ ........ ........ ........ 77% 32.0M 6s
242688K ........ ........ ........ ........ ........ ........ 78% 18.6M 6s
245760K ........ ........ ........ ........ ........ ........ 79% 11.3M 5s
248832K ........ ........ ........ ........ ........ ........ 80% 8.13M 5s
251904K ........ ........ ........ ........ ........ ........ 81% 15.2M 5s
254976K ........ ........ ........ ........ ........ ........ 82% 23.4M 5s
258048K ........ ........ ........ ........ ........ ........ 83% 4.29M 4s
261120K ........ ........ ........ ........ ........ ........ 84% 20.5M 4s
264192K ........ ........ ........ ........ ........ ........ 85% 25.0M 4s
267264K ........ ........ ........ ........ ........ ........ 86% 19.6M 4s
270336K ........ ........ ........ ........ ........ ........ 87% 26.0M 3s
273408K ........ ........ ........ ........ ........ ........ 88% 18.6M 3s
276480K ........ ........ ........ ........ ........ ........ 89% 76.3M 3s
279552K ........ ........ ........ ........ ........ ........ 90% 73.8M 2s
282624K ........ ........ ........ ........ ........ ........ 91% 49.6M 2s
285696K ........ ........ ........ ........ ........ ........ 92% 36.0M 2s
288768K ........ ........ ........ ........ ........ ........ 93% 74.3M 2s
291840K ........ ........ ........ ........ ........ ........ 94% 5.87M 1s
294912K ........ ........ ........ ........ ........ ........ 95% 57.3M 1s
297984K ........ ........ ........ ........ ........ ........ 96% 56.7M 1s
301056K ........ ........ ........ ........ ........ ........ 97% 61.8M 1s
304128K ........ ........ ........ ........ ........ ........ 98% 34.4M 0s
307200K ........ ........ ........ ........ ........ ........ 99% 30.1M 0s
310272K ........ ........ ........ .. 100% 16.6M=25s
2015-09-30 15:47:55 (12.3 MB/s) - written to stdout [319472215/
Ign http://
Ign http://
Ign http://
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Fetched 14.7 MB in 9s (1499 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
linux-
linux-
linux-
Suggested packages:
fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
The following NEW packages will be installed:
linux-
linux-
The following packages will be upgraded:
linux-generic linux-headers-
3 upgraded, 4 newly installed, 0 to remove and 46 not upgraded.
Need to get 61.6 MB of archives.
After this operation, 271 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Fetched 61.6 MB in 2s (24.1 MB/s)
Selecting previously unselected package linux-image-
(Reading database ... 56174 files and directories currently installed.)
Preparing to unpack .../linux-
Done.
Unpacking linux-image-
Selecting previously unselected package linux-image-
Preparing to unpack .../linux-
Unpacking linux-image-
Preparing to unpack .../linux-
Unpacking linux-generic (3.13.0.65.71) over (3.13.0.62.69) ...
Preparing to unpack .../linux-
Unpacking linux-image-generic (3.13.0.65.71) over (3.13.0.62.69) ...
Selecting previously unselected package linux-headers-
Preparing to unpack .../linux-
Unpacking linux-headers-
Selecting previously unselected package linux-headers-
Preparing to unpack .../linux-
Unpacking linux-headers-
Preparing to unpack .../linux-
Unpacking linux-headers-
Setting up linux-image-
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
df: Warning: cannot read table of mounted file systems: No such file or directory
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Replacing config file /run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done
run-parts: executing /etc/kernel/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
done
Setting up linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
df: Warning: cannot read table of mounted file systems: No such file or directory
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Updating /boot/grub/menu.lst ... done
run-parts: executing /etc/kernel/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
done
Setting up linux-image-generic (3.13.0.65.71) ...
Setting up linux-headers-
Setting up linux-headers-
Setting up linux-headers-
Setting up linux-generic (3.13.0.65.71) ...
Leaving 'diversion of /etc/init/
Setting up swapspace version 1, size = 1548284 KiB
no label, UUID=13bff2df-
Replacing config file /etc/default/grub with new version
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
done
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
done
Installing for i386-pc platform.
grub-install: error: unable to identify a filesystem in hostdisk//dev/vdb; safety check can't be performed.
failed to install grub!
Unexpected error while running command.
Command: ['install-grub', '/tmp/tmpwJHv00
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Related branches
- Mike Pontillo (community): Approve
- Andres Rodriguez (community): Needs Information
-
Diff: 103 lines (+76/-3)2 files modifiedsrc/maasserver/preseed_storage.py (+9/-3)
src/maasserver/tests/test_preseed_storage.py (+67/-0)
Changed in maas: | |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Blake Rouse (blake-rouse) |
milestone: | none → 1.9.0 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Changed in curtin: | |
status: | New → Invalid |
partitioning_ commands: 12c9-49ce- 97dd-522d7d5d3b 16, wipe: superblock} 5ee9-42c1- 8d0e-074a487d0a c3,
builtin: [curtin, block-meta, custom]
storage:
config:
- {id: vda, name: vda, path: /dev/vda, ptable: msdos, type: disk, wipe: superblock}
- {grub_device: true, id: vdb, name: vdb, path: /dev/vdb, type: disk, wipe: superblock}
- {device: vda, id: vda-part1, name: vda-part1, number: 1, offset: 2097152B, size: 17176723456B,
type: partition, uuid: ca084ad5-
- {fstype: ext4, id: vda-part1_format, label: root, type: format, uuid: fe749e7a-
volume: vda-part1}
- {device: vda-part1_format, id: vda-part1_mount, path: /, type: mount}
version: 1