Bug 1859148
| Summary: | vlan tag is not removed from interface if was attached over bridged/bridge less with custom MTU | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Michael Burman <mburman> | ||||||
| Component: | nmstate | Assignee: | Gris Ge <fge> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Mingyu Shi <mshi> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 8.3 | CC: | amusil, ferferna, jiji, jishi, lmiksik, network-qe, till | ||||||
| Target Milestone: | rc | Keywords: | Regression | ||||||
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | nmstate-0.3.3-3.el8 | Doc Type: | If docs needed, set a value | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2020-11-04 03:08:54 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: | |||||||||
| Attachments: |
|
||||||||
|
Description
Michael Burman
2020-07-21 10:39:54 UTC
Desired state of adding the network with vlan tag 5 and custom MTU 5000 over NIC
MainProcess|jsonrpc/1::INFO::2020-07-21 13:46:59,584::configurator::197::root::(_setup_nmstate) Desired state: {'interfaces': [{'name': 'enp5s0f0', 'state': 'up', 'mtu': 5
000}, {'vlan': {'id': 5, 'base-iface': 'enp5s0f0'}, 'name': 'enp5s0f0.5', 'type': 'vlan', 'state': 'up', 'mtu': 5000, 'ipv4': {'enabled': False}, 'ipv6': {'enabled': False
}}, {'name': 'nom_vm', 'type': 'linux-bridge', 'state': 'up', 'mtu': 5000, 'bridge': {'port': [{'name': 'enp5s0f0.5'}], 'options': {'stp': {'enabled': False}}}, 'ipv4': {'
enabled': False}, 'ipv6': {'enabled': False}}, {'name': 'ovirtmgmt'}]}
nmcli c s
enp5s0f0.5 6796b20d-7600-4165-8981-38eb033e2ee4 vlan enp5s0f0.5
Desired state of removing the network from the NIC
MainProcess|jsonrpc/7::INFO::2020-07-21 13:48:48,910::configurator::197::root::(_setup_nmstate) Desired state: {'interfaces': [{'name': 'enp5s0f0', 'mtu': 1500}, {'name':
'enp5s0f0.5', 'state': 'absent'}, {'name': 'nom_vm', 'state': 'absent'}, {'name': 'ovirtmgmt'}]}
nmcli c s
enp5s0f0.5 6796b20d-7600-4165-8981-38eb033e2ee4 vlan enp5s0f0.5 - the vlan tag remain on the NIC
Created attachment 1702158 [details]
Reproducer
Running the reproducer:
2020-07-23 06:06:22,075 root DEBUG Async action: Create checkpoint started
2020-07-23 06:06:22,081 root DEBUG Checkpoint /org/freedesktop/NetworkManager/Checkpoint/3 created for all devices
2020-07-23 06:06:22,082 root DEBUG Async action: Create checkpoint finished
2020-07-23 06:06:22,088 root DEBUG Async action: Add profile: dummy started
2020-07-23 06:06:22,091 root DEBUG Async action: Add profile: dummy.5 started
2020-07-23 06:06:22,098 root DEBUG Async action: Add profile: dummy finished
2020-07-23 06:06:22,101 root DEBUG Async action: Add profile: dummy.5 finished
2020-07-23 06:06:22,104 root DEBUG Async action: Activate profile: dummy started
2020-07-23 06:06:22,108 root DEBUG Connection activation initiated: dev=dummy, con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>
2020-07-23 06:06:22,115 root DEBUG Connection activation succeeded: dev=dummy, con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATED of type NM.ActiveConnectionState>, dev-state=<enum NM_DEVICE_STATE_ACTIVATED of type NM.DeviceState>, state-flags=<flags NM_ACTIVATION_STATE_FLAG_LAYER2_READY | NM_ACTIVATION_STATE_FLAG_IP4_READY | NM_ACTIVATION_STATE_FLAG_IP6_READY of type NM.ActivationStateFlags>
2020-07-23 06:06:22,116 root DEBUG Async action: Activate profile: dummy finished
2020-07-23 06:06:22,116 root DEBUG Async action: Reapply device config: dummy started
2020-07-23 06:06:22,120 root DEBUG Async action: Reapply device config: dummy finished
2020-07-23 06:06:22,120 root DEBUG Async action: Activate profile: dummy.5 started
2020-07-23 06:06:22,129 root DEBUG Connection activation initiated: dev=dummy.5, con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>
2020-07-23 06:06:22,133 root DEBUG Connection activation succeeded: dev=dummy.5, con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATED of type NM.ActiveConnectionState>, dev-state=<enum NM_DEVICE_STATE_ACTIVATED of type NM.DeviceState>, state-flags=<flags NM_ACTIVATION_STATE_FLAG_LAYER2_READY | NM_ACTIVATION_STATE_FLAG_IP4_READY | NM_ACTIVATION_STATE_FLAG_IP6_READY of type NM.ActivationStateFlags>
2020-07-23 06:06:22,133 root DEBUG Async action: Activate profile: dummy.5 finished
2020-07-23 06:06:22,151 root DEBUG Async action: Retrieve applied config: dummy started
2020-07-23 06:06:22,152 root DEBUG Async action: Retrieve applied config: dummy.5 started
2020-07-23 06:06:22,153 root DEBUG Async action: Retrieve applied config: dummy finished
2020-07-23 06:06:22,154 root DEBUG Async action: Retrieve applied config: dummy.5 finished
2020-07-23 06:06:22,162 root DEBUG Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/3 started
2020-07-23 06:06:22,164 root DEBUG Checkpoint /org/freedesktop/NetworkManager/Checkpoint/3 destroyed
2020-07-23 06:06:22,164 root DEBUG Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/3 finished
Desired state applied:
{
"interfaces": [
{
"name": "dummy",
"state": "up",
"mtu": 5000
},
{
"name": "dummy.5",
"type": "vlan",
"state": "up",
"ipv4": {
"enabled": false
},
"ipv6": {
"enabled": false
},
"mtu": 5000,
"vlan": {
"base-iface": "dummy",
"id": 5
}
}
]
}
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: eth0@if16: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 42:7f:d7:94:3a:74 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.88.1.255/16 brd 10.88.255.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::407f:d7ff:fe94:3a74/64 scope link
valid_lft forever preferred_lft forever
6: dummy: <BROADCAST,NOARP,UP,LOWER_UP> mtu 5000 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether f2:b2:24:be:6a:95 brd ff:ff:ff:ff:ff:ff
7: dummy.5@dummy: <BROADCAST,NOARP,UP,LOWER_UP> mtu 5000 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether f2:b2:24:be:6a:95 brd ff:ff:ff:ff:ff:ff
2020-07-23 06:06:22,548 root DEBUG Async action: Retrieve applied config: dummy started
2020-07-23 06:06:22,548 root DEBUG Async action: Retrieve applied config: dummy.5 started
2020-07-23 06:06:22,550 root DEBUG Async action: Retrieve applied config: dummy finished
2020-07-23 06:06:22,551 root DEBUG Async action: Retrieve applied config: dummy.5 finished
2020-07-23 06:06:22,578 root DEBUG Async action: Create checkpoint started
2020-07-23 06:06:22,580 root DEBUG Checkpoint /org/freedesktop/NetworkManager/Checkpoint/4 created for all devices
2020-07-23 06:06:22,580 root DEBUG Async action: Create checkpoint finished
2020-07-23 06:06:22,582 root DEBUG Async action: Update profile: dummy started
2020-07-23 06:06:22,583 root DEBUG Async action: Update profile: dummy.5 started
2020-07-23 06:06:22,590 root DEBUG Async action: Update profile: dummy finished
2020-07-23 06:06:22,592 root DEBUG Async action: Update profile: dummy.5 finished
2020-07-23 06:06:22,593 root DEBUG Async action: Reapply device config: dummy.5 started
2020-07-23 06:06:22,593 root DEBUG Async action: Reapply device config: dummy started
2020-07-23 06:06:22,595 root DEBUG Async action: Reapply device config: dummy.5 finished
2020-07-23 06:06:22,596 root DEBUG Async action: Reapply device config: dummy finished
2020-07-23 06:06:22,606 root DEBUG Async action: Retrieve applied config: dummy started
2020-07-23 06:06:22,606 root DEBUG Async action: Retrieve applied config: dummy.5 started
2020-07-23 06:06:22,607 root DEBUG Async action: Retrieve applied config: dummy finished
2020-07-23 06:06:22,608 root DEBUG Async action: Retrieve applied config: dummy.5 finished
2020-07-23 06:06:22,616 root DEBUG Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/4 started
2020-07-23 06:06:22,617 root DEBUG Checkpoint /org/freedesktop/NetworkManager/Checkpoint/4 destroyed
2020-07-23 06:06:22,617 root DEBUG Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/4 finished
Desired state applied:
{
"interfaces": [
{
"name": "dummy",
"mtu": 1500
},
{
"name": "dummy.5",
"state": "absent"
}
]
}
7: dummy.5@dummy: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
After the second state apply the dummy.5 interface should be removed but it is still present.
One thing to note if we do not change mtu of dummy in the same step it behaves as it should.
Issue resolved with nmstate-0.3.3-3.el8.noarch, RHV flows are passing now. tnx Created attachment 1702901 [details]
verified.log
Reproduced on:
nmstate-0.3.3-2.el8.noarch
NetworkManager-1.26.0-2.el8.x86_64
DISTRO=RHEL-8.3.0-20200723.n.0
Linux dell-r430-22.gsslab.rdu2.redhat.com 4.18.0-227.el8.x86_64 #1 SMP Mon Jul 20 18:17:32 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Verified with versions:
nmstate-0.3.4-3.el8.noarch
NetworkManager-1.26.0-2.el8.x86_64
DISTRO=RHEL-8.3.0-20200728.n.0
Linux hpe-dl380pgen8-02-vm-9.hpe2.lab.eng.bos.redhat.com 4.18.0-228.el8.x86_64 #1 SMP Mon Jul 27 06:05:31 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
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-2020:4696 |