Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1391022 - Localboot doesn't work with RHEL6
Localboot doesn't work with RHEL6
Status: CLOSED WONTFIX
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic-python-agent (Show other bugs)
10.0 (Newton)
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Lucas Alvares Gomes
Raviv Bar-Tal
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-02 08:21 EDT by Derek Higgins
Modified: 2016-11-20 23:17 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Known Issue
Doc Text:
Red Hat Enterprise Linux 6 only contains GRUB Legacy, while OpenStack bare metal provisioning (ironic) only supports the installation of GRUB2. As a result, deploying a partition image with local boot will fail during the bootloader installation. As a workaround, if using RHEL 6 for bare metal instances, do not set boot_option to local in the flavor settings. You can also consider deploying a RHEL 6 whole disk image which already has GRUB Legacy installed.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-02 09:38:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Derek Higgins 2016-11-02 08:21:17 EDT
Using localboot on RHEL6 images fails when installing the bootloader with the following error

chroot /tmp/tmpBo_mZh /bin/bash -c "/usr/sbin/grub-install /dev/vda"
Exit code: 127
Stdout: u''
Stderr: u'/bin/bash: /usr/sbin/grub-install: No such file or directory'


as grub-install is available at the path "/sbin/grub-install" not "/usr/sbin/grub-install"

Adding a symbolic link to the image so it finds the grub-install command shows another failure
$ ln -s /usr/sbin/grub-install -> /sbin/grub-install

chroot /tmp/tmpb2FNYF /bin/bash -c "/usr/sbin/grub-install /dev/vda"
Exit code: 1
Stdout: u\''
Stderr: u\'The file /boot/grub/stage1 not read correctly.'


netboot works find as IPA doesn't attempt to install a bootloader
Comment 1 Lucas Alvares Gomes 2016-11-02 09:38:50 EDT
Hi Derek,

So I believe this happens because RHEL6 only have GRUB Legacy and Ironic only supports installing GRUB2. 

As you said, netboot should work. And if localboot is a requirement, what can be done is to create a whole disk image with RHEL6 + GRUB Legacy installed and deploy it [0].



[0] http://docs.openstack.org/project-install-guide/baremetal/draft/configure-integration.html#configure-the-image-service

Note You need to log in before you can comment on or make changes to this bug.