Fuel ISO image has a no MBR

Bug #1387033 reported by Marc Koderer
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Stanislaw Bogatkin
6.0.x
Won't Fix
Undecided
Stanislaw Bogatkin

Bug Description

The MBR of the ISO image of the fuel installer is not present. Some servers cannot be booted.

Check disk partion with gdisk and fdisk:

gdisk MirantisOpenStack-5.1.iso
GPT fdisk (gdisk) version 0.8.1

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

fdisk MirantisOpenStack-5.1.iso
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x6c318196.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Changed in fuel:
milestone: none → 6.0
Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: nobody → Fuel for Openstack (fuel)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

Why are you trying to treat the ISO like a real disk? There's a .img file that can be booted, but ISO is in CD format.

Changed in fuel:
status: Confirmed → Invalid
Revision history for this message
Alexander Gordeev (a-gordeev) wrote :

It shouldn't have MBR at all.

It uses another mechanism called El Torito
http://en.wikipedia.org/wiki/El_Torito_%28CD-ROM_standard%29

to check if the ISO is bootable, just use `isoinfo` tool.
Eg.:
isoinfo -d -i <filename.iso>

will show something like this:

Eltorito validation header:
    Hid 1
    Arch 0 (x86)
    ID ''
    Key 55 AA
    Eltorito defaultboot header:
        Bootid 88 (bootable)
        Boot media 0 (No Emulation Boot)
        Load segment 0
        Sys type 0
        Nsect 4
        Bootoff 1FA 506

Revision history for this message
Marc Koderer (m-koderer) wrote :

@Aleksandr: ok but why all other enterprise distro's have a MBR? All other ISO's are producing bootable USB sticks but OpenStack-Mirantis ISO don't:

>gdisk rhel-server-7.0-x86_64-boot.iso
GPT fdisk (gdisk) version 0.8.1

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: present

>gdisk ubuntu-14.04.1-server-amd64.iso
GPT fdisk (gdisk) version 0.8.1

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present

>gdisk CentOS-7.0-1406-x86_64-livecd.iso
GPT fdisk (gdisk) version 0.8.1

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present

Changed in fuel:
status: Invalid → New
Mike Scherbakov (mihgen)
Changed in fuel:
assignee: Fuel for Openstack (fuel) → Vladimir Kozhukalov (kozhukalov)
Changed in fuel:
status: New → Confirmed
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

Marc, did you try img for you issue?

tags: added: customer-found
Changed in fuel:
importance: Medium → High
Changed in fuel:
importance: High → Low
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
importance: Low → Medium
assignee: Vladimir Kozhukalov (kozhukalov) → Fuel Library Team (fuel-library)
Revision history for this message
Vladimir Kozhukalov (kozhukalov) wrote :

Marc,

The reason for having two separate files: one is ISO image and another is the image for flash stick is that when we tried to put mbr into ISO image we had some issues related to inability to make installation fully automatic (it is one of our basic features). I don't remember exactly but maybe it was somehow connected to placing image file system UUID into kickstart so as to avoid anaconda dialog about source device. We had no time to go deeper and decided to make two separate files. Many things changed since that time and maybe now it is not a problem any more. If you have an obvious solution you are welcome to contribute. But if you just need to have a possibility to install a node from a flash stick you can just download .img file and put it into a stick and then use this stick as a bootable device.

Changed in fuel:
milestone: 6.0 → 6.1
Revision history for this message
Ryan Moe (rmoe) wrote :

Besides duplicating resources, maintaining separate img and iso files lead to a regression (see https://bugs.launchpad.net/fuel/+bug/1410333).

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Stanislaw Bogatkin (sbogatkin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Stanislaw Bogatkin (sbogatkin) wrote :

We don't port medium bugs to 6.0 branch, so closed for it.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/154960
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=d6093811e73fb177195ef7374b45fd327367ae52
Submitter: Jenkins
Branch: master

commit d6093811e73fb177195ef7374b45fd327367ae52
Author: Stanislaw Bogatkin <email address hidden>
Date: Wed Feb 11 20:09:55 2015 +0300

    Add to ISO ability to boot from USB

    DocImpact
    Change-Id: I7b2dc2757c28881e02ed3bdb6edb7568af7bcf4d
    Closes-Bug: #1387033

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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