Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alert CDIMultipleDefaultVirtStorageClasses #201

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions docs/runbooks/CDIMultipleDefaultVirtStorageClasses.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# CDIMultipleDefaultVirtStorageClasses
<!-- Edited by akalenyu, 10 Oct 2023 -->

## Meaning

This alert fires when more than one default virtualization storage class exists.

A default virtualization storage class has precedence over a default Kubernetes storage class for creating a VirtualMachine disk image.

## Impact

If more than one default virtualization storage class exists, a data volume that requests a default storage class (storage class not explicitly specified), receives the most recently created one.

## Diagnosis

Obtain a list of default virtualization storage classes by running the following command:

```bash
$ kubectl get sc -o json | jq '.items[].metadata|select(.annotations."storageclass.kubevirt.io/is-default-virt-class"=="true")|.name'
```

## Mitigation

Ensure that only one storage class has the default virtualization storage class annotation.

<!--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-->