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

[2175710] CNV 4.13 nightly | manually increasing the number of virt-api pods does not work

XMLWordPrintable

    • CNV Virtualization Sprint 238, CNV Virtualization Sprint 239
    • High
    • Yes

      --------------------------------------------------
      Description of problem:
      --------------------------------------------------
      as a part of the new KubeVirt rate limiting testing, I tried to increase the number of virt-api pods using this which had no issues before,
      I suspect the new auto virt-api auto-scaler overwrites the manual patch.

      ================================================================================================
      apiVersion: hco.kubevirt.io/v1beta1
      kind: HyperConverged
      metadata:
      annotations:
      deployOVS: "false"
      hco.kubevirt.io/tuningPolicy: '

      {"qps":200,"burst":400}

      '
      kubevirt.kubevirt.io/jsonpatch: '[{"op": "add", "path": "/spec/customizeComponents/patches",
      "value": [{"resourceType": "Deployment", "resourceName": "virt-api", "type":
      "json", "patch": "[

      {\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 6}

      ]"}]}]'
      =================================================================================================
      oc get deployment virt-api -o yaml

      readyReplicas: 2
      replicas: 2
      updatedReplicas: 2
      =================================================================================================
      oc -n openshift-cnv get kubevirt kubevirt -o yaml

      customizeComponents:
      patches:

      • patch: '[ {"op": "replace", "path": "/spec/replicas", "value": 6}

        ]'
        resourceName: virt-api
        resourceType: Deployment
        type: json
        =================================================================================================
        Boaz Ben Shabat, 10:29 AM
        [root@e29-h19-740xd storms_tool]# oc get pod -n openshift-cnv|grep virt-api
        virt-api-8795754c5-npd5m                               1/1     Running   1               30h
        virt-api-8795754c5-v8tn5                               1/1     Running   1               30h
        =================================================================================================

      --------------------------------------------------
      Version-Release number of selected component (if applicable):
      --------------------------------------------------
      openshift-cnv 4.13.0-1689
      openshift-local-storage 4.12.0-202302061702
      openshift-storage 4.12.0

      --------------------------------------------------
      How reproducible:
      --------------------------------------------------
      every time.

      --------------------------------------------------
      Steps to Reproduce:
      --------------------------------------------------

      apply the following patch:

      oc patch hco -n openshift-cnv kubevirt-hyperconverged --type=merge -p '{"metadata":{"annotations":{"kubevirt.kubevirt.io/jsonpatch":"[{\"op\": \"add\", \"path\": \"/spec/customizeComponents/patches\", \"value\": [{\"resourceType\": \"Deployment\", \"resourceName\": \"virt-api\", \"type\": \"json\", \"patch\": \"[

      {\\\"op\\\": \\\"replace\\\", \\\"path\\\": \\\"/spec/replicas\\\", \\\"value\\\": 6}

      ]\"}]}]"}}}'

      --------------------------------------------------
      Expected results:
      --------------------------------------------------
      the number of virt-api pods should increase to 6

              bmordeha@redhat.com Barak Mordehai
              bbenshab Boaz Ben Shabat
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: