Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-62721

HCO is not configuring any DefaultRuntimeClass for KubeVirt

XMLWordPrintable

    • CNV I/U Operators Sprint 275
    • Important
    • None

      Description of problem:

      KubeVirt can be configured with kubevirt.spec.configuration.defaultRuntimeClass to specify the name of a default PriorityClass to be used when nothing is set on vm.spec.template.spec.priorityClassName on the individual VM.
      
      Since we are currently not setting any value for defaultRuntimeClass, virt-launcher pods are scheduled by default with the same priority class used by other generic pods.
      
      So virt-launcher pods are not more protected or privileged than other generic pods (that can typically be easily restarted on other nodes). 
      

      Version-Release number of selected component (if applicable):

      CNV v4.19
      

      How reproducible:

      100%
      

      Steps to Reproduce:

      1. $ oc get -n openshift-cnv kubevirt kubevirt-kubevirt-hyperconverged -o json | jq  '.spec.configuration.defaultRuntimeClass'
      2.
      3.
      

      Actual results:

      $ oc get -n openshift-cnv kubevirt kubevirt-kubevirt-hyperconverged -o json | jq  '.spec.configuration.defaultRuntimeClass'
      null
      

      Expected results:

      HCO is creating a priorityclass (with a priority than is higher than in the class used by default for pods) to be used for VM pods.
      HCO is configuring it on spec.configuration.defaultRuntimeClass on the CR for KubeVirt.
      

      Additional info:

      Any pod requiring a preempting priority class can actually preempt (kill!) VMs:
      see: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
      

              nunnatsa Nahshon Unna Tsameret
              stirabos Simone Tiraboschi
              Krzysztof Majcher Krzysztof Majcher
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: