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

Adapt to SCC API Change: 'base' -> 'isbase' [SLE-15-SP3] #593

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

shundhammer
Copy link
Contributor

Target Branch

This is for SLE-15-SP3.

See section Related PRs below for other target branches.

Bugzilla

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

Problem

Migration to a newer SLE-15 SP fails with an unrecoverable exception

Caught error: NoMethodError: "undefined method `friendly_name' for nil:NilClass"

Notice that this happens with the old release while preparing the migration, even before the installation media with the newer release is booted.

Cause

The API of SCC changed. The previous boolean field / method base was renamed to isbase.

This should never have happened in the first place during the lifetime of SLE-15. But now that the damage is done, we have to adapt to the change to minimize customer impact.

Fix

Cherry-picked @imobachgs's fix 431d937 which does a global s/base/isbase/ in this source repo for the code and the test case.

Affected Scenarios

@lslezak wrote on IRC:

This code is fortunately used in offline migration only, so it could only happen with new QU media.

Target Branches and Related PRs

@lslezak lslezak merged commit d7b7d2f into SLE-15-SP3 Nov 22, 2023
12 checks passed
@lslezak lslezak deleted the huha-isbase-15-sp3 branch November 22, 2023 17:46
@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #8 successfully finished
✔️ Created IBS submit request #313457

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

4 participants