Skip to content

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Nov 13, 2025

The controller only gets active after onboarding, as that one needs to take care of enabling and aggregate association depending on the tests.

If maintenance is set, it will disable now the compute host in nova, and enable it, if it is unset.
It will only do so on an "edge", i.e. if it hasn't done it before.

@fwiesel fwiesel requested a review from notandy November 13, 2025 15:29
@fwiesel
Copy link
Contributor Author

fwiesel commented Nov 13, 2025

Draft, as it is missing other changes and conflicts with the existing code.
The idea would be to trigger an eviction from that controller, and remove the whole enable/disable logic from the eviction controller.

@fwiesel fwiesel force-pushed the hypervisor-maintenance branch from 1504dc1 to 3ba8b69 Compare November 14, 2025 09:11
@fwiesel fwiesel marked this pull request as ready for review November 14, 2025 09:14
@fwiesel fwiesel force-pushed the hypervisor-maintenance branch from 3ba8b69 to 4d6f80c Compare November 14, 2025 09:18
Copy link
Contributor

@notandy notandy left a comment

Choose a reason for hiding this comment

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

lgtm apart from the EventFilter

Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@fwiesel fwiesel force-pushed the hypervisor-maintenance branch from 4d6f80c to 84f495c Compare November 14, 2025 13:26
The controller only gets active after onboarding, as that one needs
to take care of enabling and aggregate association depending on the
tests.

If maintenance is set, it will disable now the compute host in nova,
and enable it, if it is unset.
It will only do so on an "edge", i.e. if it hasn't done it before.
@github-actions
Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/cmd 0.00% (ø)
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller 38.32% (+0.90%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/cmd/main.go 0.00% (ø) 0 0 0
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/hypervisor_maintenance_controller.go 60.00% (+60.00%) 40 (+40) 24 (+24) 16 (+16) 🌟

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/hypervisor_maintenance_controller_test.go

@notandy notandy self-requested a review November 14, 2025 13:33
@fwiesel fwiesel merged commit 0618268 into main Nov 14, 2025
7 checks passed
@fwiesel fwiesel deleted the hypervisor-maintenance branch November 14, 2025 13:41
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.

4 participants