** Summary changed: - Fast installer - failure to install grub (UEFI mode) + [SRU] Fast installer - failure to install grub (UEFI mode)
** Description changed: + [Impact] + This causes machines that MAAS / curtin will fail to install to those machines that have UEFI enabled. + + [Test Case] + 1. Install maas + 2. register a system with UEFI enabled. + 3. Deploy Ubuntu. It will fail because curtin will fail to deal with UEFI. + + [Regression Potential] + Minimal. This actually fixes a regression. + + [Other Info] + + After recent upgrade to 1.7, fast installer trusty deployment with /dev/fioa as boot device does not work. This is for UEFI mode. It worked prior to upgrade. Below is output cloud-init-output.log: " ... grub-install: error: /usr/lib/grub/modinfo.sh doesn't exist. Please specify --target or --directory. failed to install grub! Unexpected error while running command. Command: ['install-grub', '--uefi', '/tmp/tmpBpbjAX/target', '/dev/fioa'] Exit code: 1 Reason: - Stdout: '' Stderr: '' Installation failed with exception: Unexpected error while running command. Command: ['curtin', 'curthooks'] Exit code: 3 Reason: - Stdout: " << additional log goes here >> - ...\nSetting up efibootmgr (0.5.4-7ubuntu1) ...\nSetting up grub-efi-amd64-bin (2.02~beta2-9ubuntu1) ...\nSetting up grub-efi-amd64 (2.02~beta2-9ubuntu1) ...\nReplacing config file /etc/default/grub with new version\nGenerating grub configuration file ...\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\nSetting up grub-efi-amd64-signed (1.34.1+2.02~beta2-9ubuntu1) ...\nSetting up sbsigntool (0.6-0ubuntu7) ...\nSetting up secureboot-db (1.1) ...\nCan't access efivars filesystem at /sys/firmware/efi/efivars, aborting\nSetting up shim (0.4-0ubuntu4) ...\nSetting up shim-signed (1.6+0.4-0ubuntu4) ...\nReplacing config file /etc/default/grub with new version\nGenerating grub configuration file ...\nWarning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\nGenerating grub configuration file ...\nWarning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\ngrub-install: error: /usr/lib/grub/modinfo.sh doesn't exist. Please specify --target or --directory.\nfailed to install grub!\nUnexpected error while running command.\nCommand: ['install-grub', '--uefi', '/tmp/tmpBpbjAX/target', '/dev/fioa']\nExit code: 1\nReason: -\nStdout: ''\nStderr: ''\n" + ...\nSetting up efibootmgr (0.5.4-7ubuntu1) ...\nSetting up grub-efi-amd64-bin (2.02~beta2-9ubuntu1) ...\nSetting up grub-efi-amd64 (2.02~beta2-9ubuntu1) ...\nReplacing config file /etc/default/grub with new version\nGenerating grub configuration file ...\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\nSetting up grub-efi-amd64-signed (1.34.1+2.02~beta2-9ubuntu1) ...\nSetting up sbsigntool (0.6-0ubuntu7) ...\nSetting up secureboot-db (1.1) ...\nCan't access efivars filesystem at /sys/firmware/efi/efivars, aborting\nSetting up shim (0.4-0ubuntu4) ...\nSetting up shim-signed (1.6+0.4-0ubuntu4) ...\nReplacing config file /etc/default/grub with new version\nGenerating grub configuration file ...\nWarning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\nGenerating grub configuration file ...\nWarning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\ngrub-install: error: /usr/lib/grub/modinfo.sh doesn't exist. Please specify --target or --directory.\nfailed to install grub!\nUnexpected error while running command.\nCommand: ['install-grub', '--uefi', '/tmp/tmpBpbjAX/target', '/dev/fioa']\nExit code: 1\nReason: -\nStdout: ''\nStderr: ''\n" Stderr: '' Success umount: /tmp/tmpBpbjAX/target: device is busy. - (In some cases useful info about processes that use - the device is found by lsof(8) or fuser(1)) + (In some cases useful info about processes that use + the device is found by lsof(8) or fuser(1)) Unexpected error while running command. Command: ['umount', '/tmp/tmpBpbjAX/target'] Exit code: 1 Reason: - Stdout: '' Stderr: '' 2014-10-21 13:04:31,654 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [3] 2014-10-21 13:04:31,656 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts) 2014-10-21 13:04:31,656 - util.py[WARNING]: Running scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'>) failed Cloud-init v. 0.7.5 finished at Tue, 21 Oct 2014 13:04:32 +0000. Datasource DataSourceMAAS [http://10.245.0.10/MAAS/metadata/curtin]. Up 122.36 seconds " ** Description changed: - [Impact] - This causes machines that MAAS / curtin will fail to install to those machines that have UEFI enabled. + [Impact] + This causes machines that MAAS / curtin will fail to install to those machines that have UEFI enabled. [Test Case] 1. Install maas 2. register a system with UEFI enabled. 3. Deploy Ubuntu. It will fail because curtin will fail to deal with UEFI. - [Regression Potential] - Minimal. This actually fixes a regression. + [Regression Potential] + Minimal. This actually fixes a regression. This has been tested in various labs and proven to be working on production environments. [Other Info] - After recent upgrade to 1.7, fast installer trusty deployment with /dev/fioa as boot device does not work. This is for UEFI mode. It worked prior to upgrade. Below is output cloud-init-output.log: " ... grub-install: error: /usr/lib/grub/modinfo.sh doesn't exist. Please specify --target or --directory. failed to install grub! Unexpected error while running command. Command: ['install-grub', '--uefi', '/tmp/tmpBpbjAX/target', '/dev/fioa'] Exit code: 1 Reason: - Stdout: '' Stderr: '' Installation failed with exception: Unexpected error while running command. Command: ['curtin', 'curthooks'] Exit code: 3 Reason: - Stdout: " << additional log goes here >> ...\nSetting up efibootmgr (0.5.4-7ubuntu1) ...\nSetting up grub-efi-amd64-bin (2.02~beta2-9ubuntu1) ...\nSetting up grub-efi-amd64 (2.02~beta2-9ubuntu1) ...\nReplacing config file /etc/default/grub with new version\nGenerating grub configuration file ...\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\nSetting up grub-efi-amd64-signed (1.34.1+2.02~beta2-9ubuntu1) ...\nSetting up sbsigntool (0.6-0ubuntu7) ...\nSetting up secureboot-db (1.1) ...\nCan't access efivars filesystem at /sys/firmware/efi/efivars, aborting\nSetting up shim (0.4-0ubuntu4) ...\nSetting up shim-signed (1.6+0.4-0ubuntu4) ...\nReplacing config file /etc/default/grub with new version\nGenerating grub configuration file ...\nWarning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\nGenerating grub configuration file ...\nWarning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\ngrub-install: error: /usr/lib/grub/modinfo.sh doesn't exist. Please specify --target or --directory.\nfailed to install grub!\nUnexpected error while running command.\nCommand: ['install-grub', '--uefi', '/tmp/tmpBpbjAX/target', '/dev/fioa']\nExit code: 1\nReason: -\nStdout: ''\nStderr: ''\n" Stderr: '' Success umount: /tmp/tmpBpbjAX/target: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) Unexpected error while running command. Command: ['umount', '/tmp/tmpBpbjAX/target'] Exit code: 1 Reason: - Stdout: '' Stderr: '' 2014-10-21 13:04:31,654 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [3] 2014-10-21 13:04:31,656 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts) 2014-10-21 13:04:31,656 - util.py[WARNING]: Running scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'>) failed Cloud-init v. 0.7.5 finished at Tue, 21 Oct 2014 13:04:32 +0000. Datasource DataSourceMAAS [http://10.245.0.10/MAAS/metadata/curtin]. Up 122.36 seconds " -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1383727 Title: [SRU] Fast installer - failure to install grub (UEFI mode) To manage notifications about this bug go to: https://bugs.launchpad.net/curtin/+bug/1383727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs