Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure adding Storage Support Software Packages for MicroOS [SLE-15-SP5] #1350

Merged
merged 15 commits into from Jul 11, 2023

Conversation

shundhammer
Copy link
Contributor

@shundhammer shundhammer commented Jul 10, 2023

Target Branch / Product

This is the merge to SLE-15-SP5 of #1346 .

Bugzilla

https://bugzilla.suse.com/show_bug.cgi?id=1212452

Trello

https://trello.com/c/T9nqET80/

Problem

On an system with a multipath storage setup, the reboot after the installation failed. It turned out that the multipath-tools package was not installed.

Cause

A regular SLE-15-SPx or Leap 15.x or Tumbleweed installation uses the inst_disk_proposal client in the installation workflow which at its end determines which storage features (e.g. Btrfs, XFS, LVM, multipath) are used and adds the software packages that are needed for those technologies to the pool of packages that are going to be installed.

But MicroOS has a different installation workflow, and it doesn't use that default inst_disk_proposal client at all; instead, it uses a custom partitions_proposal client to handle the storage proposal. And in that client, the packages handling was missing.

Fix

Added the packages handling to that partitions_proposal client.

To avoid code duplication, that handling was factored out from the inst_disk_proposal client: It is now done by a new PackageHandler::set_proposal_packages_for(devicegraph) method which is now called from both clients.

Test

  • New unit tests for that new method and for fringe cases

  • Manual test in a Leap 15.5 VM with the changed files to test against regressions

  • Manual test in a MicroOS 5.3 VM to check if the support packages are added; changed the storage setup between the default Btrfs to a nonstandard XFS and observed the log file if the packages were added correctly.

Installer Self-Update / Maintenance Update

  • No self-update needed for SLE-15-SP5 / Leap 15.5

  • The change can wait for the next QU for SLE-15-SP5 / Leap 15.5

Related PRs

@shundhammer shundhammer marked this pull request as ready for review July 10, 2023 15:12
@coveralls
Copy link

coveralls commented Jul 10, 2023

Coverage Status

coverage: 97.749% (+0.001%) from 97.748% when pulling 985006e on huha-pkg-sp5 into 5884c80 on SLE-15-SP5.

Copy link
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I think CC commits are safe. Nothing changes until CC role is adapted.

@shundhammer shundhammer merged commit 8e00070 into SLE-15-SP5 Jul 11, 2023
12 checks passed
@shundhammer shundhammer deleted the huha-pkg-sp5 branch July 11, 2023 08:27
@yast-bot
Copy link

✔️ Internal Jenkins job #755 successfully finished
✔️ Created IBS submit request #302935

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants