Bug 2035726
| Summary: | Live update to delete the vlan tag on the interface fail | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | yalzhang <yalzhang> |
| Component: | libvirt | Assignee: | Laine Stump <laine> |
| libvirt sub component: | Networking | QA Contact: | yalzhang <yalzhang> |
| Status: | CLOSED MIGRATED | Docs Contact: | |
| Severity: | low | ||
| Priority: | unspecified | CC: | aadam, jsuchane, lvivier, virt-maint |
| Version: | 9.0 | Keywords: | MigratedToJIRA, Triaged |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-09-22 15:51:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
yalzhang@redhat.com
2021-12-27 09:12:04 UTC
Laine, would you please have a look. Thanks. I don't think anybody ever considered that "-1" could/would be used to reset the vlan tag of an interface to 0. I'm not sure where you got the idea that should work. As for doing a live update of the vlan tag on an SRIOV hostdev or direct (macvtap passthrough mode) interface: hostdev: no changes to an SRIOV hostdev interface are supported by update-device, so any difference at all (including a difference in the vlan tag) will result in an error. direct (macvtap) passthrough: Support for live update of a vlan tag was added by commit e484cb3ecaa in 2017, but only for OVS ports; it didn't do anything for SRIOV interfaces, but because of the way the patch was written, it removed the check that would have triggered an error, so no "unsupported" error is reported, but then the code goes ahead and calls an OVS-specific function to try and update the vlan tag of an interface that is *not* an OVS interface. I haven't tried it, but according to your report, this attempt apparently silently fails. So the status XML for the interface is updated, but if you look at the output of "ip link show" of the PF, it will show that the VF's vlan tag has not changed. So there are a couple of different bugs here: 1) the inability to set vlan tag of an existing interface back to 0. 2) when a live update of a direct/passthrough interface changes the vlan, it silently fails while appearing to succeed. Issue (1) has brought up a larger problem - the difference between "leave the vlan tag alone" and "set the vlan tag to 0 / clear the vlan tag"). Looking back on the code, it seems like this is a bit of a mess - both of these were represented by just not specifying a <vlan> element at all, and behavior is different between OVS and SRIOV macvtap devices. I don't really like the idea of using "-1" for either "leave along" or "set to 0". It's been several years since I looked at or even thought about this code, so I need to spend some time experimenting and thinking about what would be the best way to solve this ambiguity while maintaining backwards compatibility. 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. 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. |