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

[2119309] readinessProbe in VM stays on failed

XMLWordPrintable

    • CNV Infra 224
    • Moderate
    • None

      Description of problem:
      When creating the file needed for the readinessProbe the readiness probe keeps staying on failed.
      This should work the same way as described in the docs - https://github.com/kubevirt/kubevirt/blob/b52ebdc081868bf961d70683b2ec8d071fad6232/docs/probes.md#example

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

      How reproducible:
      100%

      Steps to Reproduce:
      1. Create a VM using readinessProbe param:
      spec:
      template:
      spec:
      readinessProbe:
      exec:
      command:

      • cat /tmp/healthy.txt
        2. Watch the VM events using "oc get events -n <namespace>"
        3. Start the VM (notice the readiness probe fails)
        2. Console into the VM and create the file /tmp/healthy.txt
        3. Validate the file was created using "cat /tmp/healthy.txt" command
        4. Watch the VM events

      Actual results:
      The readiness probe keeps failing (VMI stays on "not ready")

      Expected results:
      The VMI should change to "ready"

      Additional info:
      The probe failure msg is:
      Readiness probe failed:

      {"component":"virt-probe","level":"fatal","msg":"Failed executing the command","pos":"virt-probe.go:70","reason":"rpc error: code = Unknown desc = virError(Code=1, Domain=10, Message='internal error: unable to execute QEMU agent command 'guest-exec': Guest agent command failed, error was 'Failed to execute child process “cat /tmp/healthy.txt” (No such file or directory)'')","timestamp":"2022-08-18T07:54:53.312885Z"}

      ...

      I also tried using:
      command:

      • cat
      • /tmp/healthy.txt

      The issue still persist with this, the only difference is the probe failure msg

              rh-ee-jcanocan Javier Cano Cano
              rhn-support-rkishner Roni Kishner
              Roni Kishner Roni Kishner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: