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

macvtap0 is not automatically removed after update-device and vm shutdown.

    • libvirt-10.0.0-2.el9
    • sst_virtualization
    • ssg_virtualization
    • 26
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • x86_64

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

      macvtap0 is not automatically removed after update-device and vm shutdown.

      Please provide the package NVR for which bug is seen:

      libvirt-10.0.0-1.el9.x86_64

      qemu-kvm-8.2.0-2.el9.x86_64

      How reproducible:

      100%

      Steps to reproduce

      1. Start a vm with direct type interface<interface type='direct' trustGuestRxFilters='yes'>
        <source dev='eno2' mode='bridge'/>
        <model type='virtio'/>
        </interface>
      2. Update device, for example change trustGuestRxFilters='to'
        1. #virsh update-device avocado-vt-vm1 direct.xml
          Device updated successfully
      3. Shutdown vm
        1. #virsh shutdown avocado-vt-vm1
          Domain 'avocado-vt-vm1' is being shutdown
      4. Check macvtap device status
        1. #ip a|grep macvtap
          197: macvtap0@eno1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 500
        2. #virsh start avocado-vt-vm1
          error: Failed to start domain 'avocado-vt-vm1'
          error: Cannot set interface flags on 'macvtap1': Address already in use

      Expected results

      Actual results

            mprivozn@redhat.com Michal Privoznik
            yanqzhan1@redhat.com Yanqiu Zhang
            Haijiao Zhao
            Michal Privoznik Michal Privoznik
            Yanqiu Zhang Yanqiu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: