RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1301592 - Different iPXE rom sizes break migration
Summary: Different iPXE rom sizes break migration
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-25 13:16 UTC by Fabian Deutsch
Modified: 2016-03-28 09:53 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-25 13:23:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Fabian Deutsch 2016-01-25 13:16:30 UTC
Description of problem:
The ipxe rom sizes used on the source and destination host of a migration need to (roughly?) match in size, this is an issue if - over time because of updates - the ipxe rom size will change.
qemu should be capable to handle different iPXE rom sizes on the source and destination.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Dr. David Alan Gilbert 2016-01-25 13:23:16 UTC
No, this shouldn't be a problem; the ROM sizes we distribute in the iPXE rom dirs are all padded much larger than they need to be, and that allows plenty of room for expansion.  e.g. the virtio-net ROM is only about 66k but is padded to 256k; so we've got plenty of room for growth.

Comment 2 Dr. David Alan Gilbert 2016-01-25 13:30:43 UTC
(In reply to Dr. David Alan Gilbert from comment #1)
> No, this shouldn't be a problem; the ROM sizes we distribute in the iPXE rom
> dirs are all padded much larger than they need to be, and that allows plenty
> of room for expansion.  e.g. the virtio-net ROM is only about 66k but is
> padded to 256k; so we've got plenty of room for growth.

Oh with an added note that we specify different ROM images for different machine types; so if we find that eventually it really does go over the boundary, we can elect that machine type rhel9 uses a different ROM path that's bigger.

(Note Fedora hasn't bothered doing this padding; I'm partially of a mind to make qemu do padding itself when it loads them which would also cure the problem).

Comment 3 Dan Kenigsberg 2016-01-26 09:45:42 UTC
bug 1293566 specifies to inconsistent roms shipped by Red Hat, which leads to

 2016-01-14T14:00:18.621239Z qemu-kvm: Length mismatch: 0000:00:03.0/virtio-net-pci.rom: 0x10000 in != 0x40000: Invalid argument

during migration (and most probably when restoring from a saved state).

ipxe-20130517-7.1fm.gitc4bce43.el7sat
ipxe-20130517-7.gitc4bce43.el7

I do not know what ipxe-20130517-7.1fm.gitc4bce43.el7sat was shipped and whether anything similar is expected in el7. However, if it does, we'd have a similar bug in a pure RHEL conditions.

Comment 4 Dr. David Alan Gilbert 2016-01-27 15:55:45 UTC
Dan:   Yes I'm aware of that bug, it's a packaging screwup, we explicitly pad the ROMs so that growth of the ROMs is not an issue.

Comment 5 Fabian Deutsch 2016-01-27 16:10:05 UTC
David, but what happens if the next RHEL update will bring an iPXE rom which is so large, that the padding is not enough?

Comment 6 Dr. David Alan Gilbert 2016-01-27 17:05:54 UTC
(In reply to Fabian Deutsch from comment #5)
> David, but what happens if the next RHEL update will bring an iPXE rom which
> is so large, that the padding is not enough?

The current ROM size is 64k, padded to 256k so we're pretty safe; however, if in some later version we needed to do a major change then we can do exactly what we do for rhel6 ROMs, which is we get qemu to use a different path based on machine type.  If started with a rhel-6.x machine type qemu uses a different path from when started with the rhel-7.x machine types.  If 7.5 needed a bigger ROM then we would still have to keep a smaller rom for the old machine types, but we can have the larger rom for the new machine types.


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