This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 1957192 - RFE: handle in-place upgrades with software RAIDs (mdadm)
Summary: RFE: handle in-place upgrades with software RAIDs (mdadm)
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: leapp-repository
Version: 7.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Leapp Notifications Bot
QA Contact: upgrades-and-conversions
URL:
Whiteboard:
Depends On: 2219544
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-05 10:45 UTC by Petr Stodulka
Modified: 2023-09-12 11:09 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-12 11:09:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OAMG-4856 0 None None None 2023-05-11 08:19:08 UTC
Red Hat Issue Tracker   RHEL-3279 0 None Migrated None 2023-09-12 11:08:28 UTC
Red Hat Knowledge Base (Solution) 7004676 0 None None None 2023-03-28 10:48:43 UTC

Internal Links: 1934175

Description Petr Stodulka 2021-05-05 10:45:00 UTC
Systems using software raids cannot realiably upgrade to the next major version of RHEL (e.g. RHEL 7 -> 8). The problem is that such systems expects mdadm module inside the initramfs, but the upgrade initramfs doesn't include the mdadm dracut module, nor the configuration file is present when the initramfs is created.

It's possible that another problems could be discovered, but this seems as the minimum change that needs to be done.

Comment 23 evcz 2023-02-07 11:18:36 UTC
Hi

has there been any progress on this?

or any suggested workaround to rebuild the upgrade initramfs before doing the upgrade reboot?

kind regards

Comment 24 Petr Stodulka 2023-02-07 13:16:44 UTC
Hi, no updates here - not even sure whether it will be delivered during this year as we have many others tasks with higher priority right now.

Also we are not sure whether the mdadm missing in the initramfs is the only problem around software RAIDs, it's just first thing we realize it's possibly the source of some problems that have been discovered. I am not aware about any official workaround, however, I heard about some successes with software raids - but I do not know any details so I cannot say why it worked for someone and for someone not.

If you want to experiment, you could possible create a custom actor that will include the mdadm dracut module into the initramfs and copy the config file, using the UpgradeInitramfsTasks msg: 

* https://github.com/oamg/leapp-repository/blob/8a1fec72592e6d824f53009eb0692ef743bbcb36/repos/system_upgrade/common/models/initramfs.py#L43

Here is an upstream documentation for the creation of actors:
* https://leapp.readthedocs.io/en/latest/el7toel8/actor-rhel7-to-rhel8.html#creating-an-actor

and here is documented how to install custom actors on the system:
* https://access.redhat.com/articles/4977891#extend-upgrade-using-custom-actors


But as I told, I cannot say whether this will actually work or not as we have not experimented with upgrades on systems with RAID configured.

Comment 25 Petr Stodulka 2023-02-07 13:18:51 UTC
Adding an example of actor that is producing the UpgradeInitramfsTasks msg:
* https://github.com/oamg/leapp-repository/tree/master/repos/system_upgrade/common/actors/commonleappdracutmodules

Comment 26 evcz 2023-02-08 10:03:00 UTC
Hi

thank you for the links, I'm checking those.

Meanwhile I can confirm that fakeraid might not be the reason of failure: just by booting with a live linux, chroot on the updated one and reinstall grub/regenerate grub.cfg fixes it and allowed it to get a test machine back working without any initrd changes

Comment 27 evcz 2023-05-11 08:46:56 UTC
Don't have access to OAMG-4856 but can confirm that in the cases I tested found out that by just blindly patching

/usr/share/leapp-repository/repositories/system_upgrade/common/actors/updategrubcore/libraries/updategrubcore.py

by changing 

cmd = ['grub2-install', grub_dev]

to something like:

cmd = ['grub2-install /dev/sda ; grub2-install /dev/sdb ; grub2-mkconfig > /boot/grub2/grub.cfg']

took care of it and the system was able to properly reboot and continue the upgrade.

Didn't spend much time into it to properly add a list of all actual disks along with proper grub2-mkconfig command as this was a one off test

kind regards

Comment 29 RHEL Program Management 2023-09-12 11:04:29 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 30 RHEL Program Management 2023-09-12 11:09:30 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


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