Skip to content

eve-k: fix node delete if replicas list encounters crd get error#5637

Merged
rene merged 1 commit intolf-edge:masterfrom
andrewd-zededa:eve-k-node-delete-defer
Mar 8, 2026
Merged

eve-k: fix node delete if replicas list encounters crd get error#5637
rene merged 1 commit intolf-edge:masterfrom
andrewd-zededa:eve-k-node-delete-defer

Conversation

@andrewd-zededa
Copy link
Copy Markdown
Contributor

@andrewd-zededa andrewd-zededa commented Feb 26, 2026

Description

Fix LonghornReplicaList to be more resilient to failure modes. If the longhorn namespace exists pointing to an intact longhorn install but the replica crd is missing, return no replicas and no error. This allows drain to be skipped and node delete or cluster delete to continue in a time efficient process.

Fix Node Delete to be more resilient, defer node delete to run even in all error cases.

PR dependencies

None

How to test and validate this PR

  • Should be covered by automated

Changelog notes

None

PR Backports

  • 16.0-stable: If requested
  • 14.5-stable: No, as the feature is not available there.
  • 13.4-stable: No, as the feature is not available there.

Checklist

  • I've provided a proper description
  • I've added the proper documentation
  • I've tested my PR on amd64 device
  • I've tested my PR on arm64 device
  • I've written the test verification instructions
  • I've set the proper labels to this PR

And the last but not least:

  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

Please, check the boxes above after submitting the PR in interactive mode.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 29.49%. Comparing base (2281599) to head (2083092).
⚠️ Report is 332 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5637      +/-   ##
==========================================
+ Coverage   19.52%   29.49%   +9.96%     
==========================================
  Files          19       18       -1     
  Lines        3021     2417     -604     
==========================================
+ Hits          590      713     +123     
+ Misses       2310     1552     -758     
- Partials      121      152      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andrewd-zededa andrewd-zededa force-pushed the eve-k-node-delete-defer branch from 3226403 to 93e0b42 Compare March 4, 2026 16:46
@andrewd-zededa andrewd-zededa changed the title eve-k: fix node delete if longhorn install is not healthy eve-k: fix node delete if replicas list encounters crd get error Mar 4, 2026
@andrewd-zededa andrewd-zededa marked this pull request as ready for review March 4, 2026 16:47
Fix LonghornReplicaList to be more resilient to failure modes.
If the longhorn namespace exists pointing to an intact longhorn install,
but the replica crd is missing, return no replicas and no error.
This allows drain to be skipped and node delete or cluster delete to
continue in a time efficient process.

Fix Node Delete to be more resilient,
defer node delete to run even in all error cases.

Signed-off-by: Andrew Durbin <andrewd@zededa.com>
@andrewd-zededa andrewd-zededa force-pushed the eve-k-node-delete-defer branch from 93e0b42 to 2083092 Compare March 5, 2026 22:27
@andrewd-zededa
Copy link
Copy Markdown
Contributor Author

rebased, let's see if the spdx issue clears up

Copy link
Copy Markdown
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM

@rene rene merged commit 7c14b12 into lf-edge:master Mar 8, 2026
63 of 66 checks passed
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