From 8aab604415c97bf0ed3fa9d07a994df6e69d3103 Mon Sep 17 00:00:00 2001 From: sradco Date: Thu, 16 Nov 2023 10:05:28 +0000 Subject: [PATCH] Build: (1e0049f) Add alert CDIMultipleDefaultVirtStorageClasses Signed-off-by: Alex Kalenyuk --- .../CDIMultipleDefaultVirtStorageClasses.md | 32 +++++++++++++++++++ runbooks_index.md | 1 + 2 files changed, 33 insertions(+) create mode 100644 runbooks/CDIMultipleDefaultVirtStorageClasses.md diff --git a/runbooks/CDIMultipleDefaultVirtStorageClasses.md b/runbooks/CDIMultipleDefaultVirtStorageClasses.md new file mode 100644 index 00000000..7f570424 --- /dev/null +++ b/runbooks/CDIMultipleDefaultVirtStorageClasses.md @@ -0,0 +1,32 @@ +# CDIMultipleDefaultVirtStorageClasses + + +## 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. + + + +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) + \ No newline at end of file diff --git a/runbooks_index.md b/runbooks_index.md index c08377b3..2ab00b83 100644 --- a/runbooks_index.md +++ b/runbooks_index.md @@ -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)