Skip to content

Commit

Permalink
Add HCOMisconfiguredDescheduler runbook
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
  • Loading branch information
tiraboschi committed Sep 18, 2024
1 parent 0fa80c4 commit 551ea83
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions docs/runbooks/HCOMisconfiguredDescheduler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# HCOMisconfiguredDescheduler

## Meaning

`Kube Descheduler Operator` is an optional operator, and it's not installed by
default nor as a dependency of HCO.
When installed it can work on a cluster with KubeVirt only if configured
enabling `devEnableEvictionsInBackground` profileCustomization that
is disabled by default.
`DevEnableEvictionsInBackground` enables descheduler's EvictionsInBackground
alpha feature.
The EvictionsInBackground alpha feature is a subject to change.
Currently provided as an experimental feature.

## Impact

If `Kube Descheduler Operator` is installed but not configured with
`devEnableEvictionsInBackground` profileCustomization, `VirtualMachine`
cannot be correctly managed by the descheduler.

## Diagnosis

1. Check the CR for `Kube Descheduler Operator`:

```bash
$ kubectl get -n openshift-kube-descheduler-operator KubeDescheduler cluster -o yaml
```

looking for:

```yaml
spec:
profileCustomizations:
devEnableEvictionsInBackground: true
```

If not there, the `Kube Descheduler Operator` is not correctly configured
to work alongside KubeVirt.

## Mitigation

Set:
```yaml
spec:
profileCustomizations:
devEnableEvictionsInBackground: true
```
on the CR for the `Kube Descheduler Operator`.
Please notice that `EvictionsInBackground` is an alpha feature and it's subject
to change and currently provided as an experimental feature.
<!--DS: If you cannot resolve the issue, log in to the
link:https://access.redhat.com[Customer Portal] and open a support case,
attaching the artifacts gathered during the diagnosis procedure.-->
<!--USstart-->
If you cannot resolve the issue, see the following resources:
- [OKD Help](https://www.okd.io/help/)
- [#virtualization Slack channel](https://kubernetes.slack.com/channels/virtualization)
<!--USend-->

0 comments on commit 551ea83

Please sign in to comment.