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

Creating a VirtualMachine with an instance type that doesn't exist and preference that has resource requirements causing a nil pointer error within virt-api

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • CNV v4.20.4
    • None
    • CNV Infrastructure
    • None
    • 2
    • CNV Infra 270
    • None

      Description of problem:

      https://github.com/kubevirt/kubevirt/pull/14557 

      $ virtctl create vm --name test --instancetype u1.foo --preference fedora | ./kubevirtci/cluster-up/kubectl.sh apply -f -
      selecting podman as container runtime
      Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "virtualmachine-validator.kubevirt.io": failed to call webhook: Post "https://virt-api.kubevirt.svc:443/virtualmachines-validate?timeout=10s": EOF
      
      $ ./kubevirtci/cluster-up/kubectl.sh apply -f - <<EOF
      apiVersion: kubevirt.io/v1
      kind: VirtualMachine
      metadata:
        creationTimestamp: null
        name: test
      spec:
        preference:
          name: fedora
        runStrategy: Always
        template:
          metadata:
            creationTimestamp: null
          spec:
            domain:
              devices: {}
              resources: {}
            terminationGracePeriodSeconds: 180
      status: {}
      EOF
      selecting podman as container runtime
      Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "virtualmachine-validator.kubevirt.io": failed to call webhook: Post "https://virt-api.kubevirt.svc:443/virtualmachines-validate?timeout=10s": EOF

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

       

      How reproducible:

       

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

              gkapoor@redhat.com Geetika Kapoor
              rhn-support-lyarwood Lee Yarwood
              Geetika Kapoor Geetika Kapoor
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: