Skip to content

Onboarding fixes - #196

Merged
fwiesel merged 5 commits into
mainfrom
onboarding-fixes
Dec 15, 2025
Merged

Onboarding fixes#196
fwiesel merged 5 commits into
mainfrom
onboarding-fixes

Conversation

@fwiesel

@fwiesel fwiesel commented Dec 15, 2025

Copy link
Copy Markdown
Contributor
  • This adds some basic happy-path tests
  • It takes care of removing the host from all aggregates, except the ones needed for the test
  • Finally, it removes the hardcoded flavor for the smallest matching flavor (currently only flavors not targeting a specific hypervisor).

The main loop is retrying already.
If the offboarding failed for any reason, we might be have left-over
associations with other aggregates. For robustness reasons, let's
handle that case here as well.
The logic is fairly straight forward, find the smallest flavor that
hasn't the hypervisor-type fixed. We might want to adjust that
eventually to maybe match the hypervisor-type, but in our environment
we have a tiny test-flavor that fits that description.
@fwiesel
fwiesel requested a review from notandy December 15, 2025 11:55
@github-actions

Copy link
Copy Markdown

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller 49.72% (+13.29%) 🎉

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/onboarding_controller.go 56.15% (+51.89%) 244 (+9) 137 (+127) 107 (-118) 🌟

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/onboarding_controller_test.go

@fwiesel
fwiesel merged commit bbaf826 into main Dec 15, 2025
6 checks passed
@fwiesel
fwiesel deleted the onboarding-fixes branch December 15, 2025 12:35
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.

2 participants