eve icon indicating copy to clipboard operation
eve copied to clipboard

Fix an issue of cluster mode transition not terminating k3s

Open naiming-zededa opened this issue 6 months ago • 4 comments

Description

Fix an issue seen recently the K3S was not terminated during transition

How to test and validate this PR

  • need to compile with 'kubevirt' tag, and bring up the device. then transition to cluuster mode. Make sure at least on the 'seed server', the transition to cluster mode is successful. Meaning the 'kubectl show node' will display the 'etcd' in the ROLES.
  • although such an issue of not terminating the K3S process is a corner case, and it rarely happens to hit during the transition.

Test Done: I have tested this patch in my own kubevirt setup, does not normal cluster transition bring up. It works fine.

Changelog notes

Fix an issue of cluster mode transition not terminating k3s process

Checklist

  • [x] I've provided a proper description
  • [ ] I've added the proper documentation
  • [x] 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

naiming-zededa avatar Jun 23 '25 22:06 naiming-zededa

description updated.

naiming-zededa avatar Jun 25 '25 01:06 naiming-zededa

@naiming-zededa , as @OhmSpectator pointed out, it's really important to have the PR description filled according to the template, specially because it helps to run scripts to fetch information and help maintainers create the documentation for testing and validation. I still see some issues with this PR:

image

Major:

  • Mixed text of the commits before the description
  • No changelog information was provided (I think it's needed in this case since you are not fixing CI/CD stuff, build stuff, etc, that wouldn't require changelog notes)

Minor:

  • Empty sections, you can remove them
  • You don't need to put spaces in the items [x] so it gets correctly rendered by the GH page.

I just fixed everything, but you still need to provide the Changelog information, please.

rene avatar Jun 25 '25 09:06 rene

I just fixed everything, but you still need to provide the Changelog information, please.

Got it, thanks @rene

naiming-zededa avatar Jun 25 '25 19:06 naiming-zededa

update @rene, please review.

naiming-zededa avatar Jun 26 '25 02:06 naiming-zededa

@naiming-zededa try rebasing on master to see if that fixes the kubevirt build issue

eriknordmark avatar Jun 30 '25 17:06 eriknordmark

@naiming-zededa try rebasing on master to see if that fixes the kubevirt build issue

rebased to see.

naiming-zededa avatar Jun 30 '25 17:06 naiming-zededa

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 18.56%. Comparing base (ed461a3) to head (2189893). Report is 30 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4984   +/-   ##
=======================================
  Coverage   18.56%   18.56%           
=======================================
  Files          18       18           
  Lines        2613     2613           
=======================================
  Hits          485      485           
  Misses       2046     2046           
  Partials       82       82           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar Jul 03 '25 12:07 codecov[bot]

@naiming-zededa , LGTM but you need to rebase...

rene avatar Jul 03 '25 12:07 rene

@rene rebased. thanks.

naiming-zededa avatar Jul 03 '25 16:07 naiming-zededa