Skip to content

Skip ctc partition links in hipersocket adapter delete. - #2289

Merged
andy-maier merged 6 commits into
masterfrom
simon/hisodelete
Sep 15, 2026
Merged

andy-maier merged 6 commits into
masterfrom
simon/hisodelete

Conversation

@simon-spinner

@simon-spinner simon-spinner commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

This pull request fixes a KeyError bug that occurred when deleting a Hipersocket adapter on a CPC that also has CTC-type partition links present (issue #2276). CTC partition links do not have an adapter-uri property, which caused the deletion logic to fail when attempting to look up that property. The fix skips CTC partition links during the adapter URI comparison.

Signed-off-by: Simon Spinner <sspinner@de.ibm.com>
@simon-spinner simon-spinner self-assigned this Sep 14, 2026
Signed-off-by: Simon Spinner <sspinner@de.ibm.com>
Signed-off-by: Simon Spinner <sspinner@de.ibm.com>
@simon-spinner simon-spinner added this to the 1.27.0 milestone Sep 14, 2026
Signed-off-by: Simon Spinner <sspinner@de.ibm.com>
Signed-off-by: Simon Spinner <sspinner@de.ibm.com>
@coveralls

coveralls commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 78.991% (+0.1%) from 78.865% — simon/hisodelete into master

@andy-maier andy-maier added the backport Create backport PR when PR gets merged label Sep 15, 2026

@andy-maier andy-maier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add a change log file that mentions the bug fix.

The other changes in the PR (improved mock support for PartitionLink.list()) should probably also be mentioned (in a separate change log file).

Signed-off-by: Simon Spinner <sspinner@de.ibm.com>
@andy-maier
andy-maier merged commit 939668c into master Sep 15, 2026
11 checks passed
@andy-maier
andy-maier deleted the simon/hisodelete branch September 15, 2026 08:15
@github-actions

Copy link
Copy Markdown

Backport failed for stable_1.26, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin stable_1.26
git worktree add -d .worktree/backport-2289-to-stable_1.26 origin/stable_1.26
cd .worktree/backport-2289-to-stable_1.26
git switch --create backport-2289-to-stable_1.26
git cherry-pick -x 939668c752a9132a3cacc26e57c23905f993321c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Create backport PR when PR gets merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete hipersocket adapter fails with CTC partition links defined on the system

3 participants