Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-36064

virsh destroy with --graceful destroyed a paused guest (qemu process paused by SIGSTOP)

    • libvirt-8.0.0-23.2.module+el8.10.0+21972+d7867348
    • None
    • None
    • rhel-sst-virtualization
    • ssg_virtualization
    • 3
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • None

      What were you trying to do that didn't work?

      When I tried to destroy a paused guest(qemu process paused by signal SIGSTOP) with virsh destroy --graceful, the guest destroyed successfully with no error. 

      Please provide the package NVR for which bug is seen:

      qemu-kvm-6.2.0-49.module+el8.10.0+21533+3df3c4b6.x86_64

      libvirt-8.0.0-23.module+el8.10.0+21023+5962ee04.x86_64

      kernel-4.18.0-544.el8.x86_64

       

      How reproducible:

      100%

      Steps to reproduce

      1. start a guest 
      2. Send signal STOP to qemu process:
      # kill -STOP `pidof qemu-kvm`
      1. Destroy guest with --graceful 
       # virsh destroy rhel9.3 --graceful   

       

      Expected results

      command should failed with reasonable error messages 

      Actual results

      [root@zhetang-rhel8-bug tmp]# kill -STOP `pidof qemu-kvm`
      [root@zhetang-rhel8-bug tmp]# virsh destroy rhel9.3 --graceful
      Domain 'rhel9.3' destroyed

      [root@zhetang-rhel8-bug tmp]# virsh list --all
       Id   Name      State
      --------------------------
       -    rhel9.3   shut off

       

      Additional info 

      the command would failed and can show error messages on rhel9 host

      [root@zhetang-9 ~]# kill -STOP `pidof qemu-kvm`
      [root@zhetang-9 ~]# virsh destroy rhel9 --graceful
      error: Failed to destroy domain 'rhel9'
      error: Failed to terminate process 44075 with SIGTERM: Device or resource busy

       

       

              pkrempa@redhat.com Peter Krempa
              rhn-support-zhetang Zhen Tang
              virt-maint virt-maint
              Zhen Tang Zhen Tang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: