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

unclear error reported when attempting to hot-unplug a platform serial device

    • No
    • Low
    • rhel-sst-virtualization
    • ssg_virtualization
    • 1
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • aarch64
    • 10.10.0
    • None

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

      Unclear error info reported when detaching serial device

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      libvirt-10.9.0-1.el10.aarch64

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Prepare a running guest with serial device:      
      # virsh dumpxml vm2 --xpath //serial
      <serial type="file">
        <source path="/var/lib/libvirt/serial_file_g75F-1.log"/>
        <target type="system-serial" port="2">
          <model name="pl011"/>
        </target>
        <alias name="ua-serial1"/>
      </serial>
      

           2.Prepare a serial device xml just the same with dumpxml:

      #cat serial.xml
      <serial type="file">
        <source path="/var/lib/libvirt/serial_file_g75F-1.log"/>
        <target type="system-serial" port="2">
          <model name="pl011"/>
        </target>
        <alias name="ua-serial1"/>
      </serial> 

           3.Detach the serial device from guest:

      # virsh detach-device vm2 serial.xml 
      error: Failed to detach device from serial.xml
      error: An error occurred, but the cause is unknown 

         4.Coldunplg the serial device from guest, it completed successfully:

      # virsh detach-device vm2 serial.xml --config
      Device detached successfully
       

         5.The same issue with pty type serial device:

      <serial type="pty">
        <source path="/dev/pts/1"/>
        <target type="system-serial" port="0">
          <model name="pl011"/>
        </target>
        <alias name="serial1"/>
      </serial> 

      Expected results

      If hotunplug is supported with serial device, it should be completed successfuly.

      If hotunplug is unsupported with serial device, it should be report clear error info.

      Actual results

      Unclear error info reported when detaching serial device

              mkletzan@redhat.com Martin Kletzander
              rhn-support-yafu Yan Fu
              virt-maint virt-maint
              Yan Fu Yan Fu
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: