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

Live update to delete the vlan tag on the interface fail

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • Low
    • 1
    • rhel-virt-core-libvirt-2
    • ssg_virtualization
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Libvirt Bugs already in Sprint
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:
      Live update to delete the vlan tag on the interface fail

      Version-Release number of selected component (if applicable):
      libvirt-7.10.0-1.el9.x86_64

      How reproducible:
      100%

      Steps to Reproduce:
      1.  Start vm with interface as below with vlan tag defined:
       # virsh dumpxml rhel9 | grep /interface -B10
          <interface type='bridge'>
            <mac address='52:54:00:da:b9:fb'/>
            <source bridge='ovsbr0'/>
            <virtualport type='openvswitch'>
              <parameters interfaceid='67f7ce64-6ca9-4bb1-9309-f244a4e12213'/>
            </virtualport>
            <target dev='vnet39'/>
            <model type='virtio'/>
            <alias name='net0'/>
            <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
          </interface>

      2. Live add vlan tag, succeed

      1. cat  bridge_vlan.xml
          <interface type='bridge'>
              <mac address='52:54:00:da:b9:fb'/>
              <source bridge='ovsbr0'/>
              <virtualport type='openvswitch'>
                <parameters interfaceid='67f7ce64-6ca9-4bb1-9309-f244a4e12213'/>
              </virtualport>
              <target dev='vnet39'/>
              <vlan>
                <tag id='45'/>
              </vlan>
              <model type='virtio'/>
              <alias name='net0'/>
              <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
            </interface>
      2. virsh update-device rhel9 bridge_vlan.xml
        Device updated successfully
      1. virsh dumpxml rhel9 | grep /interface -B13
            <interface type='bridge'>
              <mac address='52:54:00:da:b9:fb'/>
              <source bridge='ovsbr0'/>
              <vlan>
                <tag id='45'/>
              </vlan>
              <virtualport type='openvswitch'>
                <parameters interfaceid='67f7ce64-6ca9-4bb1-9309-f244a4e12213'/>
              </virtualport>
              <target dev='vnet39'/>
              <model type='virtio'/>
              <alias name='net0'/>
              <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
            </interface>
      2. ovs-vsctl show
        0415a226-8ac6-4721-a812-1f9d5754f969
            Bridge ovsbr0
                Port ovsbr0
                    Interface ovsbr0
                        type: internal
                Port vnet39
                    tag: 45
                    Interface vnet39
            ovs_version: "2.15.3"

      3. Live delete the vlan tag, fail:

      1. cat bridge_del_vlan.xml
          <interface type='bridge'>
              <mac address='52:54:00:da:b9:fb'/>
              <source bridge='ovsbr0'/>
              <virtualport type='openvswitch'>
                <parameters interfaceid='67f7ce64-6ca9-4bb1-9309-f244a4e12213'/>
              </virtualport>
              <target dev='vnet39'/>
              <model type='virtio'/>
              <alias name='net0'/>
              <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
            </interface>
      1. virsh update-device rhel9 bridge_del_vlan.xml
        error: Failed to update device from bridge_del_vlan.xml
        error: internal error: Unable to set vlan configuration on port vnet39

      Actual results:
      VLAN tag can be added or value updated by update-device lively, but can not be deleted.

      Expected results:
      Step 3 should succeed

      Additional info:
      Network connections that support guest-transparent VLAN tagging include:
      1) type='bridge' interfaces connected to an Open vSwitch bridge;
      2) SRIOV Virtual Functions (VF) used via type='hostdev' (direct device assignment);
      3) SRIOV VFs used via type='direct' with mode='passthrough' (macvtap "passthru" mode)
      For 2), hostdev interface do not support live update;
      For 1) and 3), the behavior is the same, vlan tag can be added or value updated by update-device lively, but can not be deleted.

              lstump@redhat.com Laine Stump
              yalzhang@redhat.com Yalan Zhang
              Laine Stump Laine Stump
              Nannan Li Nannan Li
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: