image based provisioning failed: error when installing grub

Bug #1407221 reported by Alexei Sheplyakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Alexei Sheplyakov

Bug Description

The installation script runs grub-install without chrooting into the target system. This fails because some
shared libraries are not available in the initramfs:

2015-01-03 09:09:35.086 1180 DEBUG fuel_agent.utils.grub_utils [-] Looking for grub-install: trying /sbin/grub-install
2015-01-03 09:09:35.093 1180 DEBUG fuel_agent.utils.grub_utils [-] Looking for grub-install: trying /sbin/grub2-install
2015-01-03 09:09:35.093 1180 DEBUG fuel_agent.utils.grub_utils [-] Looking for grub-install: trying /usr/sbin/grub-install
2015-01-03 09:09:35.099 1180 DEBUG fuel_agent.utils.grub_utils [-] grub-install found: /usr/sbin/grub-install
2015-01-03 09:09:35.099 1180 DEBUG fuel_agent.utils.grub_utils [-] Trying to run /usr/sbin/grub-install -v
2015-01-03 09:09:35.099 1180 DEBUG fuel_agent.utils.utils [-] Trying to execute command: /tmp/target/usr/sbin/grub-install -v
2015-01-03 09:09:35.102 1180 CRITICAL fuel-agent [-] ProcessExecutionError: Unexpected error while running command.
Command: /tmp/target/usr/sbin/grub-install -v
Exit code: 127
Stdout: ''
Stderr: '/tmp/target/usr/sbin/grub-install: error while loading shared libraries: liblzma.so.5: cannot open shared object file: No such file or directory\n'

Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/144862

Changed in fuel:
assignee: nobody → Alexei Sheplyakov (asheplyakov)
status: New → In Progress
Changed in fuel:
importance: Undecided → High
Changed in fuel:
milestone: none → 6.1
tags: added: based image provision
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/144862
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=37afb36c14ae554c272958af6a1ec183b51e9e3f
Submitter: Jenkins
Branch: master

commit 37afb36c14ae554c272958af6a1ec183b51e9e3f
Author: Alexei Sheplyakov <email address hidden>
Date: Sat Jan 3 15:12:11 2015 +0300

    make guess_grub_version actually work with GRUB 2

    * the correct switch to ask for the grub-install version is --version,
      -v has a totally different meaning (--verbose). Older versions of
      grub-install recognize the --version switch too.
    * grub-install from GRUB 2.x is a binary, not a shell script, and it might
      require the shared libraries which are available inside the chroot only
      (and not in the bootstrap system). Therefore grub-install should be run
      in the chroot even if we are asking for its version.

    blueprint support-ubuntu-trusty
    Closes-bug: #1407221

    Change-Id: I08db41dc6d65c152a62f6a1544c0c1de5922f7d5

Changed in fuel:
status: In Progress → Fix Committed
tags: added: image-based
removed: based image
tags: added: ubuntu14
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #210 for CentOS and Ubuntu

"build_id": "2015-03-19_22-54-44", "ostf_sha": "b9a090c71682fbea5d9351051827d7d654d07be3", "build_number": "210", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-03-19_22-54-44", "ostf_sha": "b9a090c71682fbea5d9351051827d7d654d07be3", "build_number": "210", "api": "1.0", "nailgun_sha": "1d2bd383caecc5ec3f86bf93ccca940326f23e97", "production": "docker", "python-fuelclient_sha": "b223dcaf5fdad2f714cd245958fefe03995d6207", "astute_sha": "4a117a1ca6bdcc34fe4d086959ace1a6d18eeca9", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "f3d6353c08d8eb709c7ab100b56dc2bebef4157f", "fuellib_sha": "7764225db5bc653563309912afbb4058283c808b"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "1d2bd383caecc5ec3f86bf93ccca940326f23e97", "production": "docker", "python-fuelclient_sha": "b223dcaf5fdad2f714cd245958fefe03995d6207", "astute_sha": "4a117a1ca6bdcc34fe4d086959ace1a6d18eeca9", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "f3d6353c08d8eb709c7ab100b56dc2bebef4157f", "fuellib_sha": "7764225db5bc653563309912afbb4058283c808b"

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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