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

Updating network interface of ovs bridge type with nothing changed failed

    • libvirt-10.9.0-1.el9
    • None
    • Moderate
    • rhel-sst-virtualization-networking
    • ssg_virtualization
    • 3
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Pass
    • None
    • 10.8.0
    • None

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

      Try to update network interface of ovs bridge type, it failed even though nothing is changed in the updated xml.

      Please provide the package NVR for which bug is seen:

      libvirt-10.5.0-1.el9.x86_64

      How reproducible:

      100%

      Steps to reproduce

      1. Prepare a ovs network
        [root@dell-per740-78 ~]#  /usr/share/openvswitch/scripts/ovs-ctl start
        [root@dell-per740-78 ~]# ovs-vsctl add-br ovsbr0
        
        [root@dell-per740-78 ~]# virsh net-dumpxml ovs-net
        <network>
          <name>ovs-net</name>
          <uuid>1546c287-e22f-41c5-8eef-12ccb8a54af6</uuid>
          <forward mode='bridge'/>
          <bridge name='ovsbr0'/>
          <virtualport type='openvswitch'>
            <parameters interfaceid='09b11c53-8b5c-4eeb-8f00-d84eaa0aaa4f'/>
          </virtualport>
        </network>
        
      1. Start a guest, attach an interface from network ovs-net
        [root@dell-per740-78 ~]# virsh attach-interface vm1 --source ovs-net --model virtio --type network
        Interface attached successfully
        
        [root@dell-per740-78 ~]# virsh dumpxml vm1 --xpath //interface
        <interface type="bridge">
          <mac address="52:54:00:0e:0a:9b"/>
          <source network="ovs-net" portid="46f027c9-ad64-4ba8-a4ef-55cde0ed3428" bridge="ovsbr0"/>
          <virtualport type="openvswitch">
            <parameters interfaceid="09b11c53-8b5c-4eeb-8f00-d84eaa0aaa4f"/>
          </virtualport>
          <target dev="vnet31"/>
          <model type="virtio"/>
          <alias name="net3"/>
          <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
        </interface>
        
      2. Save the interface xml to a file update-ovs.xml, and try to update device:
        [root@dell-per740-78 ~]# cat update-ovs.xml
        <interface type="bridge">
          <mac address="52:54:00:0e:0a:9b"/>
          <source network="ovs-net" portid="46f027c9-ad64-4ba8-a4ef-55cde0ed3428" bridge="ovsbr0"/>
          <virtualport type="openvswitch">
            <parameters interfaceid="09b11c53-8b5c-4eeb-8f00-d84eaa0aaa4f"/>
          </virtualport>
          <target dev="vnet31"/>
          <model type="virtio"/>
          <alias name="net3"/>
          <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
        </interface>
        
        [root@dell-per740-78 ~]# virsh update-device vm1 update-ovs.xml
        error: Failed to update device from update-ovs.xml
        error: Unable to add bridge ovsbr0 port vnet31: Operation not supported
        

      Expected results

      Updating device succeeds

      Actual results

      Updating device failed

              lstump@redhat.com Laine Stump
              rhn-support-fjin Fangge Jin
              virt-maint virt-maint
              Haijiao Zhao Haijiao Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: