-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add alert CDIMultipleDefaultVirtStorageClasses
Signed-off-by: Alex Kalenyuk <[email protected]>
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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--> |