Skip to content

Commit

Permalink
Build: (1e0049f) Add alert CDIMultipleDefaultVirtStorageClasses
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Kalenyuk <[email protected]>
  • Loading branch information
sradco committed Nov 16, 2023
1 parent d0431dd commit 8aab604
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions 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-->
1 change: 1 addition & 0 deletions runbooks_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- [LowVirtAPICount.md](runbooks/LowVirtAPICount.md)
- [LowVirtOperatorCount.md](runbooks/LowVirtOperatorCount.md)
- [CDIOperatorDown.md](runbooks/CDIOperatorDown.md)
- [CDIMultipleDefaultVirtStorageClasses.md](runbooks/CDIMultipleDefaultVirtStorageClasses.md)
- [LowReadyVirtControllersCount.md](runbooks/LowReadyVirtControllersCount.md)
- [SingleStackIPv6Unsupported.md](runbooks/SingleStackIPv6Unsupported.md)
- [SSPDown.md](runbooks/SSPDown.md)
Expand Down

0 comments on commit 8aab604

Please sign in to comment.