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

LowVirtAPICount and LowVirtControllersCount alert firing on a single-master cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • CNV Virtualization
    • None
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None

      OpenShift version: 4.20.10

      OpenShift Virtualization version: 4.20.3

      After deploying OpenShift Virtualization on an OpenShift cluster that has 1 master node and 6 worker nodes, the two alerts are firing:

      • LowVirtAPICount
      • LowVirtControllersCount

      The OpenShift Virtualization operator has created virt-api and virt-controller deployments that place their pods on master nodes. In this context, it is anticipated that in a cluster with a single master node, there will be only one virt-api pod and one virt-controller pod deployed. The two alerts, LowVirtAPICount and LowVirtControllersCount, should not be triggered.

      $ oc get -n openshift-cnv deploy
      NAME                                  READY   UP-TO-DATE   AVAILABLE   AGE
      ...
      virt-api                              1/1     1            1           16h
      virt-controller                       1/1     1            1           16h
      ...
      $ oc get deploy -n openshift-cnv virt-api -o yaml
      ...
      spec:
      ...
        template:
      ...
          spec:
            affinity:
              nodeAffinity:
                preferredDuringSchedulingIgnoredDuringExecution:
                - preference:
                    matchExpressions:
                    - key: node-role.kubernetes.io/worker
                      operator: DoesNotExist
                  weight: 100
                requiredDuringSchedulingIgnoredDuringExecution:
                  nodeSelectorTerms:
                  - matchExpressions:
                    - key: node-role.kubernetes.io/control-plane
                      operator: Exists
                  - matchExpressions:
                    - key: node-role.kubernetes.io/master
                      operator: Exists
              podAntiAffinity:
                preferredDuringSchedulingIgnoredDuringExecution:
                - podAffinityTerm:
                    labelSelector:
                      matchExpressions:
                      - key: kubevirt.io
                        operator: In
                        values:
                        - virt-api
                    topologyKey: kubernetes.io/hostname
                  weight: 1
      ...

      This issues is likely related to https://issues.redhat.com/browse/CNV-50027.

       

              tnisan@redhat.com Tal Nisan
              anosek@redhat.com Ales Nosek
              Kedar Bidarkar Kedar Bidarkar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: