FAIL: installing grub to target devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
curtin |
New
|
Undecided
|
Unassigned |
Bug Description
MAAS: 2.6.2
Today deployment is constantly failing. I've tried recommissioning and went through a live DVD of Gparted and wiped the storages to be sure. Still, I can't get past this:
start: cmd-install/
setup grub on target /tmp/tmplwfmv7x
Found primary UEFI ESP: sda-part1
finish: cmd-install/
finish: cmd-install/
finish: cmd-install/
Traceback (most recent call last):
File "/curtin/
ret = args.func(args)
File "/curtin/
builtin_
File "/curtin/
setup_grub(cfg, target, osfamily=osfamily)
File "/curtin/
for dev_id in uefi_find_
File "/curtin/
if item['type'] == 'mount' and item['path'] == '/boot/efi':
KeyError: 'path'
'path'
Stderr: ''
Previous deployment that worked used: curtin: Installation started. (19.3-26-
This failing one uses: curtin: Installation started. (20.1-2-
I believe I am facing a similar situation, but with MAAS 2.9.1 and the latest grub. I also noticed that sudo apt-get upgrade on my nodes is having issues with installing the latest grub. I have also tried the above fix of using gparted and clearing everything of the disks and recomissioning, but the issue remains. Here are the MAAS logs for the deployment:
Using grub install command: /usr/lib/ grub/grub- multi-install reconfigure' , 'grub-efi-amd64'], ['update-grub'], ['/usr/ lib/grub/ grub-multi- install' ], ['efibootmgr', '-v']] j3sjq8/ target/ dev'] with allowed return codes [0] (capture=False) j3sjq8/ target/ proc'] with allowed return codes [0] (capture=False) j3sjq8/ target/ run'] with allowed return codes [0] (capture=False) j3sjq8/ target/ sys'] with allowed return codes [0] (capture=False) efi/efivars' , '/tmp/tmpp_ j3sjq8/ target/ sys/firmware/ efi/efivars' ] with allowed return codes [0] (capture=False) j3sjq8/ target' , 'efibootmgr', '-v'] with allowed return codes [0] (capture=True) j3sjq8/ target' , 'dpkg-reconfigure', 'grub-efi-amd64'] with allowed return codes [0] (capture=True) j3sjq8/ target' , 'update-grub'] with allowed return codes [0] (capture=True) j3sjq8/ target' , '/usr/lib/ grub/grub- multi-install' ] with allowed return codes [0] (capture=True) j3sjq8/ target/ sys/firmware/ efi/efivars' ] with allowed return codes [0] (capture=False) j3sjq8/ target/ sys'] with allowed return codes [0] (capture=False) j3sjq8/ target/ run'] with allowed return codes [0] (capture=False) j3sjq8/ target/ proc'] with allowed return codes [0] (capture=False) j3sjq8/ target/ dev'] with allowed return codes [0] (capture=False) stage-curthooks /builtin/ cmd-curthooks/ install- grub: FAIL: installing grub to target devices stage-curthooks /builtin/ cmd-curthooks/ configuring- bootloader: FAIL: configuring target system bootloader stage-curthooks /builtin/ cmd-curthooks: FAIL: curtin command curthooks curtin/ commands/ main.py" , line 202, in main curtin/ commands/ curthooks. py", line 1884, in curthooks curthooks( cfg, target, state) curtin/ commands/ curthooks. py", line 1849, in builtin_curthooks
Grub install cmds:
[['efibootmgr', '-v'], ['dpkg-
Running command ['mount', '--bind', '/dev', '/tmp/tmpp_
Running command ['mount', '--bind', '/proc', '/tmp/tmpp_
Running command ['mount', '--bind', '/run', '/tmp/tmpp_
Running command ['mount', '--bind', '/sys', '/tmp/tmpp_
Running command ['mount', '--bind', '/sys/firmware/
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpp_
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpp_
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpp_
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpp_
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED subp(['udevadm', 'settle']): 0.021
Running command ['umount', '/tmp/tmpp_
Running command ['umount', '/tmp/tmpp_
Running command ['umount', '/tmp/tmpp_
Running command ['umount', '/tmp/tmpp_
Running command ['umount', '/tmp/tmpp_
finish: cmd-install/
finish: cmd-install/
finish: cmd-install/
Traceback (most recent call last):
File "/curtin/
ret = args.func(args)
File "/curtin/
builtin_
File "/curtin/
setup_grub(...