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

VM accepts invalid instance type not satisfying preference requirements causing to patch/update failures

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • CNV v4.19.0
    • CNV v4.19.0
    • CNV Infrastructure
    • None
    • CNV Infra 271
    • Critical
    • None

      Description of problem:

      VM accepts invalid instance type not satisfying preference requirements, ends up in patching failures. This is reproduced when creating centos VM with u1.small and then hotplug it to u1.nano(Done with UI) Even after restart the vmi/pods we are not able to recover VM.
      
      Behavior Observed: 
      1. Unable to stop VM
      2. Unable to delete VM
      3. Unable to patch VM
      4. Unable to move VM to a higher IT . example : nano to medium/small 
      
      virtctl stop centos-small-test -n default
      error stopping VirtualMachine Internal error occurred: admission webhook "virtualmachine-validator.kubevirt.io" denied the request: failure checking preference requirements: insufficient Memory resources of 512Mi provided by instance type, preference requires 1536Mi
      
      
      $ oc patch vm centos-small-test --type=merge -p '{"spec":{"running":false}}'
      The request is invalid: spec.instancetype: failure checking preference requirements: insufficient Memory resources of 512Mi provided by instance type, preference requires 1536Mi
      
      
      
      

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

      4.19

      How reproducible:

      always

      Steps to Reproduce:

      1. start VM and hotplug to nano for testing this use case
      2.
      3.
      

      Actual results:

      VM cannot be recovered

      Expected results:

      Should allow such a stage where it can't be recovered . Deleting VMI, pods nothing helped. 

      Additional info:

      No w/a .

              gkapoor@redhat.com Geetika Kapoor
              gkapoor@redhat.com Geetika Kapoor
              Geetika Kapoor Geetika Kapoor
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: