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

Unexpected error reported when update virtio model interface device to delete model type

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • libvirt
    • No
    • Low
    • rhel-sst-virt-tools
    • ssg_virtualization
    • None
    • False
    • Hide

      None

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

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

      Unexpected error reported when updating virtio model interface device to delete model type

      What is the impact of this issue to you?

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

      libvirt-10.10.0-5.el10.aarch64

      qemu-kvm-9.1.0-13.el10.aarch64

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Start a guest with the virtio model interface device:   
       # virsh dumpxml 1 --xpath //interface
      <interface type="network">
        <mac address="52:54:00:38:55:56"/>
        <source network="default" portid="200d3829-8433-498c-8765-6ac8bb84545d" bridge="virbr0"/>
        <target dev="vnet0"/>
        <model type="virtio"/>
        <driver queues="2"/>
        <alias name="net0"/>
        <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
      </interface>
      

            2.Prepare a interface xml without model type:

       #cat if.xml
      <interface type="network">
        <mac address="52:54:00:38:55:56"/>
        <source network="default" portid="200d3829-8433-498c-8765-6ac8bb84545d" bridge="virbr0"/>
        <target dev="vnet0"/>
        <driver queues="2"/>
        <alias name="net0"/>
        <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
      </interface>

          3.Update the interface device to delete model type:

       # virsh update-device 1 if.xml 
      error: Failed to update device from if.xml
      error: Operation not supported: cannot modify virtio network device driver attributes
      

      Expected results

      Because the default model type of the interface is 'virtio', updating a virtio model interface device to remove the model type should be successful.

      Actual results

      It reports unclear error info since it did to try to update network device driver attributes actually.

              virt-maint virt-maint
              rhn-support-yafu Yan Fu
              virt-maint virt-maint
              virt-bugs virt-bugs
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: