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

Stop api should reject --grace-period!=0 flag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • CNV v4.21.0
    • None
    • CNV Virt-Cluster
    • None
    • Quality / Stability / Reliability
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None

      currently the supported stop commands are:

      virtctl stop --force --grace-period 0 example-vm
      

      or gracefully if the VMI has grace-period already defined.

      virtctl stop example-vm 

      Trying to adjust the grace-period flag is only supported with --force, and value set to 0.

      still if one would try commands likeĀ 

      virtctl stop --force --grace-period 120 example-vm 

      The api will accept and the VMI will be patched to have grace of 120 seconds, but even so the machine will be terminated immediately
      due to some weird racefulness or some other unfamiliar bug

      The expected behavior is the have the api reject calls that modify the grace-period flag when provided with --force flag as well

              rh-ee-dsionov Daniel Sionov
              dholler@redhat.com Dominik Holler
              Kedar Bidarkar Kedar Bidarkar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: