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

Failed to update interface portgroup dynamically

    • Yes
    • Moderate
    • rhel-sst-virtualization
    • ssg_virtualization
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • All
    • None

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

      Failed to update interface portgroup dynamically

      What is the impact of this issue to you?

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

      libvirt-10.8.0-2.el9.x86_64

      qemu-kvm-9.1.0-1.el9.x86_64

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Define and start a network with two portgroups        
       #cat net.xml
      <network>
        <name>net2</name>
        <uuid>e1c51804-bd55-49e8-8814-e21a2c7f9af6</uuid>
        <forward mode='nat'/>
        <bridge name='virbr1' stp='on' delay='0'/>
        <mac address='52:54:00:db:19:75'/>
        <ip address='192.168.100.1'>
          <dhcp>
            <range start='192.168.100.100' end='192.168.100.254'/>
          </dhcp>
        </ip>
        <portgroup name='sales' default='yes'>
          <bandwidth>
            <inbound average='100' peak='200' burst='512'/>
            <outbound average='50' peak='100' burst='256'/>
          </bandwidth>
        </portgroup>
        <portgroup name='engineering'>
          <bandwidth>
            <inbound average='200' peak='300' burst='256'/>
            <outbound average='100' peak='200' burst='128'/>
          </bandwidth>
        </portgroup>
      </network>
       
      #virsh net-define net.xml
      Network net2 defined from net2.xml
      
      #virsh net-start linux_br_OA9
      Network net2 started

       

      2.Start guest with the network:

      #virsh edit vm2
      ...
      <interface type='network'>
            <mac address='52:54:00:4a:70:f1'/>
            <source network='net2'/>
            <model type='virtio'/>
            <address type='pci' domain='0x0000' bus='0x09' slot='0x00' function='0x0'/>
          </interface>
      ...
      
      #virsh start vm2 

      3.check the bandwidth settings in the live xml is the same as "sales" since it is the default portgroup:

       <interface type="network">
        <mac address="52:54:00:4a:70:f1"/>
        <source network="net2" portid="4666e307-a0b2-4200-8329-24bbd624a6ad" bridge="virbr1"/>
        <bandwidth>
          <inbound average="100" peak="200" burst="512"/>
          <outbound average="50" peak="100" burst="256"/>
        </bandwidth>
        <target dev="vnet7"/>
        <model type="virtio"/>
        <alias name="net1"/>
        <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
      </interface>
      

      4.Prepare a interface device with net2 network and engineering portgroup:

      #cat if.xml
      <interface type="network">
          <mac address="52:54:00:4a:70:f1"/>
          <source network="net2" portgroup="engineering"/>
          <model type="virtio" />
          <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0" />
      </interface> 

      5.Update the interface portgroup to be as 'engineering':

       # virsh update-device vm2 if.xml 
      error: Failed to update device from if.xml
      error: Operation not supported: cannot modify network device portgroup attribute

      Expected results

      Should update interface portgroup dynamically successfully.

      Actual results

      Failed to update interface portgroup dynamically

      Additioal info

      1.Can not reproduce with libvirt-10.5.0-7.el9_5.x86_64

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

                Created:
                Updated: