This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1949432 - live update interface fail as the live interface type changed
Summary: live update interface fail as the live interface type changed
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libvirt
Version: 9.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Laine Stump
QA Contact: Yanqiu Zhang
URL:
Whiteboard:
: 1887775 (view as bug list)
Depends On: 1887775
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-14 09:42 UTC by Yanqiu Zhang
Modified: 2023-09-22 12:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1887775
Environment:
Last Closed: 2023-09-22 12:19:51 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-7036 0 None Migrated None 2023-09-22 12:19:43 UTC

Description Yanqiu Zhang 2021-04-14 09:42:28 UTC
Reproduces on:
libvirt-7.0.0-4.el9.x86_64
qemu-kvm-5.2.0-11.el9.x86_64
kernel-5.11.0-2.el9.x86_64


+++ This bug was initially created as a clone of Bug #1887775 +++

Description of problem:
update interface with <interface type='network'> will fail as the live interface type changed to direct/bridge. The patch
https://www.spinics.net/linux/fedora/libvir/msg203162.html fix the bridge type, but for the direct type and bridge type interface connected to ovs bridge, the issue still exists.

Version-Release number of selected component (if applicable):
libvirt-6.6.0-6.virtcov.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. prepare a macvtap network like:
# virsh net-dumpxml direct-bridge
<network>
  <name>direct-bridge</name>
  <uuid>ab3c21e0-2282-47e0-8211-e8df2118664f</uuid>
  <forward dev='eno1' mode='bridge'>
    <interface dev='eno1'/>
    <interface dev='eno2'/>
  </forward>
</network>

and prepare interface xml as:
# cat interface.xml
<interface type='network'>
<source network='direct-bridge'/>
<mac address='52:54:00:59:cb:11'/>
<model type='virtio'/>
</interface>

 start the vm.

2. hotplug the interface device, then check the live xml, the interface type changed from <interface type='network'>  to <interface type='direct'>
# virsh attach-device rhel interface.xml
# virsh dumpxml rhel | grep /interface -B12
<interface type='direct'>
      <mac address='52:54:00:59:cb:11'/>
      <source network='direct-bridge' portid='a2dac94a-37b2-4fed-a166-b7ffc9931868' dev='eno1' mode='bridge'/>
      <target dev='macvtap0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </interface>

3. use the xml with interface type='network' to do the update-device, it failed
# cat interface.xml
<interface type='network'>
<source network='direct-bridge'/>
<model type='virtio'/>
<link state='down'/>
  <mac address='52:54:00:59:cb:11'/>
</interface>
# virsh update-device rhel interface.xml
error: Failed to update device from interface.xml
error: Operation not supported: unable to change config on 'network' network type

Actual results:
in step 3, the live update failed

Expected results:
the live update should pass

Additional info:
This is the similar scenario with https://www.spinics.net/linux/fedora/libvir/msg203162.html

For ovs bridge, the live update will also fail.

--- Additional comment from Laine Stump on 2020-10-14 01:48:32 UTC ---

It appears that we're comparing the "ActualType" (direct in this case) to the config type of the modified interface ("network" in this case) rather than to the actual type that resolves to. This sounds eerily similar to:

commit bc85c34ea91c46588423fa24e56e09ca5aab31dd
Author: Laine Stump <laine>
Date:   Thu May 28 18:04:24 2020 -0400

    qemu: don't reject interface update when switching to/from bridged network
    

which went into upstream before 6.5.0, so should be in the build referenced here (6.6.0). I would guess that either I missed some case, or caused a regression. I can look at it next week.

Comment 2 Jaroslav Suchanek 2022-09-20 13:28:03 UTC
*** Bug 1887775 has been marked as a duplicate of this bug. ***

Comment 3 RHEL Program Management 2023-09-22 12:18:45 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 4 RHEL Program Management 2023-09-22 12:19:51 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


Note You need to log in before you can comment on or make changes to this bug.