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-SP1] #591

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

shundhammer
Copy link
Contributor

@shundhammer shundhammer commented Nov 22, 2023

Target Branch

This is for SLE-15-SP1.

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

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! 👍

@shundhammer shundhammer merged commit 283d595 into SLE-15-SP1 Nov 22, 2023
@shundhammer shundhammer deleted the huha-isbase-15-sp1 branch November 22, 2023 10:32
@shundhammer
Copy link
Contributor Author

Submitted to IBS as https://build.suse.de/request/show/313363

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