Bug 2160416
Summary: | SR-IOV VF not disabled as desired, gets IPv4 and default route via DHCP | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Carlos Goncalves <cgoncalves> | ||||
Component: | nmstate | Assignee: | Gris Ge <fge> | ||||
Status: | CLOSED ERRATA | QA Contact: | Mingyu Shi <mshi> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 8.0 | CC: | fbaudin, ferferna, jiji, jishi, network-qe, sfaye, till | ||||
Target Milestone: | rc | Keywords: | Triaged, ZStream | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | nmstate-1.4.2-4.el8 | Doc Type: | No Doc Update | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 2169642 2169643 (view as bug list) | Environment: | |||||
Last Closed: | 2023-05-16 08:26:40 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 2169642, 2169643 | ||||||
Attachments: |
|
Description
Carlos Goncalves
2023-01-12 10:54:42 UTC
Created attachment 1937572 [details]
nmstatectl output log
Just a nit in comment #0, "assisted-based installer" is inaccurate. It should have been "agent-based installer". Hi Carlos Goncalves, The PF and VF are different NIC in the view of kernel network stack(as SR-IOV is PCI level tech). The link status of PF does not reflect on VF as designed. Depend how you use the VF, you may: A: Use `state: absent` on PF which remove the config of PF which lead to resetting SR-IOV config, then VF got removed. B: Set VF interface as `state: down`. If none of above fit your use case, please elaborate why you want PF link state been reflect to VF in your setup. Thank you! My bad. I read the desire state wrong. You are setting the `state: down` for VF. Let me investigate more. I have sent the patch to upstream: https://github.com/nmstate/nmstate/pull/2215 This is purely from log investigation. Still confirming whether it fix reporter's issue or not. Problem fixed by four patches: * https://github.com/nmstate/nmstate/pull/2215 * https://github.com/nmstate/nmstate/pull/2221 * https://github.com/nmstate/nmstate/pull/2222 * https://github.com/nmstate/nmstate/pull/2223 The root cause analyst result: # Current state * `eno1` is SR_IOV supported NIC * `eno1` as SR-IOV disabled and assigned to OVS bridge `br-ex`. * The `br-ex` has the same name interface providing default gateway. * `NetworkManager-config-server` not installed, hence NetworkManager will automatically set ipv6.auto and ipv4.auto on any new NIC pluged in. # Desire state * `eno1` enable SR-IOV to total_vfs 1. * Want the VF `eno1v1` enabled with ipv6 and ipv4 disabled. # Problems: * Once enable SR-IOV on `eno1`, the `eno1v1` will get default gateway via DHCP which break the `br-ex` gateway which causing the nmstate hanlder lose network connection. * network state trigger rollback after default gateway gone. # Fixes: * Allowing enabling SR-IOV and setting VF in single desired state YAML. * Do not touch OVS-port of `eno1` for changing SR-IOV settings. Because this will break `br-ex` gateway connection also. Carlos has tested by scratch build rpm. This the yaml solving the use case: ```yaml interfaces: - ethernet: sr-iov: total-vfs: 1 name: eno1 type: ethernet - name: eno1v0 type: ethernet state: up ipv4: enabled: false ipv6: enabled: false ``` Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2772 |