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 add_on_others in autoyast profile are added (bsc#1223301) #600

Merged
merged 2 commits into from
May 30, 2024

Conversation

mvidner
Copy link
Member

@mvidner mvidner commented May 24, 2024

Problem

When upgrading from SLE12 (SP5) to SLE15-SP5 via AutoYaST,
when <add_on_others> repositories are specified in the profile ("others" meaning, plain, non-product repos),
these repos are not present when the upgrade finishes.

Solution

Add a Pkg.SourceSaveAll call to reinit_repos that reinits the repos in the middle of the upgrade.

Testing

Tested manually. After the upgrade, the add_on_others repo is present and SLE12 repos are not present.

  • with AutoYaST and registration
  • manually, with registration
  • manually, without registration (full medium)

Helpful tools:

Screenshots

N/A

by using Pkg.SourceSaveAll before Pkg.SourceFinishAll
@lslezak
Copy link
Member

lslezak commented May 28, 2024

The fix looks OK to me. Please add changes and update the PR description.

@mvidner mvidner marked this pull request as ready for review May 29, 2024 13:36
Copy link
Member

@lslezak lslezak left a comment

Choose a reason for hiding this comment

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

LGTM

However, please test it also in manual (non-AutoYaST) migration. Test both cases - offline upgrade from DVD medium (without registration) and online upgrade using SCC (registered system).

This code was originally added to fix some problem with removing the old repositories during migration, we should be sure there is no regression regarding this.

Copy link
Member

@lslezak lslezak left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mvidner mvidner merged commit eea4393 into SLE-15-SP5 May 30, 2024
12 checks passed
@mvidner mvidner deleted the add-on-others-sp5 branch May 30, 2024 14:11
@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #753 successfully finished
✔️ Created IBS submit request #332704

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.

3 participants