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

watchdog did not work as expected when there are two watchdog devices

XMLWordPrintable

    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • ---
    • ---
    • None

      Description of problem:

      There is a watchdog device be set as default since RHEL9.3. When I try to add another warchdog to the vm. Both two watchdog did not power off the vm as I configed.

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

      qemu-img-8.2.0-11.el9_4.x86_64
      ipxe-roms-qemu-20200823-9.git4bd064de.el9.noarch
      qemu-kvm-common-8.2.0-11.el9_4.x86_64
      qemu-kvm-device-display-virtio-gpu-8.2.0-11.el9_4.x86_64
      libvirt-libs-10.0.0-6.2.el9_4.x86_64
      libvirt-client-10.0.0-6.2.el9_4.x86_64
      libvirt-daemon-common-10.0.0-6.2.el9_4.x86_64
      libvirt-daemon-log-10.0.0-6.2.el9_4.x86_64
      libvirt-daemon-driver-qemu-10.0.0-6.2.el9_4.x86_64
      qemu-kvm-core-8.2.0-11.el9_4.x86_64
      qemu-kvm-device-display-virtio-gpu-pci-8.2.0-11.el9_4.x86_64
      qemu-kvm-device-usb-redirect-8.2.0-11.el9_4.x86_64
      

      How reproducible:

      100%

      Steps to Reproduce:

      1.Install a vm on cnv with watchdog device:
             devices:
                watchdog:
                  name: watchdog
                  i6300esb:
                    action: "poweroff" 
      
         <watchdog model='i6300esb' action='poweroff'>
            <alias name='ua-watchdog'/>
            <address type='pci' domain='0x0000' bus='0x0c' slot='0x01' function='0x0'/>
          </watchdog>
          <watchdog model='itco' action='poweroff'>
            <alias name='watchdog1'/>
          </watchdog>
      
      2. install watchdog and trigger it by running echo 1 > /dev/watchdog
      
      3. check event for the vm
      
         virsh event --all --loop
      Authorization not available. Check if polkit service is running or see debug message for more information.
      event 'watchdog' for domain 'default_rhel9-amaranth-gecko-70': poweroff
      event 'lifecycle' for domain 'default_rhel9-amaranth-gecko-70': Stopped Failed
      event 'lifecycle' for domain 'default_rhel9-amaranth-gecko-70': Undefined Removed
      error: Disconnected from qemu:///session due to end of file
      events received: 3
      error: internal error: client socket is closed
      
      4. check the status for the vm
        oc get vm
      NAME                       AGE   STATUS    READY
      rhel9-amaranth-gecko-70    68m   Running   True
      

      Actual results:

      the vm will reboot in 1 min

      Expected results:

      the vm poweroff in 1 min

      Additional info:

      The itco watchdog was set by default since rhel9.3, it can not be removed. there might be something unexpected with it

              sgott@redhat.com Stuart Gott
              hongzliu@redhat.com Hongzhou Liu
              Kedar Bidarkar Kedar Bidarkar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: