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 1941462 - cannot create vlan over a bridge with port veth in one transaction
Summary: cannot create vlan over a bridge with port veth in one transaction
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-22 08:03 UTC by Mingyu Shi
Modified: 2021-11-09 20:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 17:43:40 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nmstate/nmstate/commit/de4ec3a07bd92303d4609dd2f509455f6155b3da 0 None None None 2021-06-08 22:46:06 UTC
Red Hat Product Errata RHBA-2021:4157 0 None None None 2021-11-09 17:44:01 UTC

Description Mingyu Shi 2021-03-22 08:03:33 UTC
Description of problem:
Cannot create vlan over a bridge with port veth in one transaction, see the reproducer.
If split it into two steps:
1. Create br0 + port veth0
2. Create br0.5 over br0
It works well.
Vlan over a bridge doesn't make much sense, but it's better to well deal with the procedure.

Version-Release number of selected component (if applicable):
nmstate-1.0.2-5.el8.noarch
nispor-1.0.1-4.el8.x86_64
NetworkManager-1.30.0-2.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
ip link add veth0 type veth peer name veth0_ep
ip link set veth0 up
ip link set veth0_ep up
nmcli device set veth0 managed yes
nmcli device set veth0_ep managed yes
cat << EOF > vlan_over_br0.yaml
interfaces:
- name: br0
  type: linux-bridge
  state: up
  bridge:
    port:
    - name: veth0
- name: br0.5
  type: vlan
  state: up
  vlan:
    base-iface: br0
    id: 5
EOF
nmstatectl set vlan_over_br0.yaml

Actual results:
fail

Expected results:
pass

Additional info:
# nmstatectl set vlan_over_br0.yaml 
/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py:325: UserWarning: Using 'set' is deprecated, use 'apply' instead.
  warnings.warn("Using 'set' is deprecated, use 'apply' instead.")
2021-03-22 15:59:24,710 root         DEBUG    Nmstate version: 1.0.2
2021-03-22 15:59:24,710 root         DEBUG    Applying desire state: {'interfaces': [{'name': 'br0', 'type': 'linux-bridge', 'state': 'up', 'bridge': {'port': [{'name': 'veth0'}]}}, {'name': 'br0.5', 'type': 'vlan', 'state': 'up', 'vlan': {'base-iface': 'br0', 'id': 5}}]}
2021-03-22 15:59:24,777 root         DEBUG    NetworkManager version 1.30.0
2021-03-22 15:59:24,797 root         DEBUG    Async action: Retrieve applied config: ethernet eno5 started
2021-03-22 15:59:24,799 root         DEBUG    Async action: Retrieve applied config: ethernet eno5 finished
2021-03-22 15:59:24,834 root         DEBUG    Interface lo is type unknown and will be ignored during the activation
2021-03-22 15:59:24,835 root         DEBUG    Async action: Create checkpoint started
2021-03-22 15:59:24,837 root         DEBUG    Checkpoint /org/freedesktop/NetworkManager/Checkpoint/118 created for all devices
2021-03-22 15:59:24,837 root         DEBUG    Async action: Create checkpoint finished
2021-03-22 15:59:24,838 root         DEBUG    Nispor: current network state {'ifaces': {'eno5': {'name': 'eno5', 'iface_type': 'ethernet', 'state': 'up', 'mtu': 1500, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'ipv4': {'addresses': [{'address': '10.73.89.30', 'prefix_len': 23, 'valid_lft': '36172sec', 'preferred_lft': '36172sec'}]}, 'ipv6': {'addresses': [{'address': '2620:52:0:4958:4adf:37ff:febe:4248', 'prefix_len': 64, 'valid_lft': '2591974sec', 'preferred_lft': '604774sec'}, {'address': 'fe80::4adf:37ff:febe:4248', 'prefix_len': 64, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'mac_address': '48:df:37:be:42:48', 'sriov': {'vfs': []}}, 'ens1f1': {'name': 'ens1f1', 'iface_type': 'ethernet', 'state': 'up', 'mtu': 1500, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'mac_address': '40:a6:b7:0e:d5:61', 'sriov': {'vfs': []}}, 'veth0': {'name': 'veth0', 'iface_type': 'veth', 'state': 'up', 'mtu': 1500, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'ipv6': {'addresses': [{'address': 'fe80::bc27:f3ff:fe30:7492', 'prefix_len': 64, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'mac_address': 'be:27:f3:30:74:92', 'veth': {'peer': 'veth0_ep'}}, 'lo': {'name': 'lo', 'iface_type': 'loopback', 'state': 'unknown', 'mtu': 65536, 'flags': ['loopback', 'lower_up', 'running', 'up'], 'ipv4': {'addresses': [{'address': '127.0.0.1', 'prefix_len': 8, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'ipv6': {'addresses': [{'address': '::1', 'prefix_len': 128, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'mac_address': '00:00:00:00:00:00'}, 'veth0_ep': {'name': 'veth0_ep', 'iface_type': 'veth', 'state': 'up', 'mtu': 1500, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'ipv6': {'addresses': [{'address': 'fe80::849a:e0ff:fe38:c742', 'prefix_len': 64, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'mac_address': '86:9a:e0:38:c7:42', 'veth': {'peer': 'veth0'}}, 'eno7': {'name': 'eno7', 'iface_type': 'ethernet', 'state': 'down', 'mtu': 1500, 'flags': ['broadcast', 'multicast', 'up'], 'mac_address': '48:df:37:be:42:4a', 'sriov': {'vfs': []}}, 'ens1f0': {'name': 'ens1f0', 'iface_type': 'ethernet', 'state': 'up', 'mtu': 1500, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'mac_address': '40:a6:b7:0e:d5:60', 'sriov': {'vfs': []}}, 'eno6': {'name': 'eno6', 'iface_type': 'ethernet', 'state': 'down', 'mtu': 1500, 'flags': ['broadcast', 'multicast', 'up'], 'mac_address': '48:df:37:be:42:49', 'sriov': {'vfs': []}}, 'enp1s0f4u4': {'name': 'enp1s0f4u4', 'iface_type': 'ethernet', 'state': 'unknown', 'mtu': 1500, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'mac_address': '62:54:05:db:21:1b'}, 'eno8': {'name': 'eno8', 'iface_type': 'ethernet', 'state': 'down', 'mtu': 1500, 'flags': ['broadcast', 'multicast', 'up'], 'mac_address': '48:df:37:be:42:4b', 'sriov': {'vfs': []}}}, 'routes': [{'address_family': 'ipv6', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': '::1/128', 'oif': 'lo', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 254, 'protocol': 'ra', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': '2620:52:0:4958::/64', 'oif': 'eno5', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 100, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'fe80::/64', 'oif': 'eno5', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 100, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'fe80::/64', 'oif': 'veth0_ep', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'fe80::/64', 'oif': 'veth0', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 254, 'protocol': 'ra', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'oif': 'eno5', 'gateway': 'fe80::b233:a601:2cda:b0c1', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 100, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'local', 'flags': 0, 'dst': '::1/128', 'oif': 'lo', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 0, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'local', 'flags': 0, 'dst': '2620:52:0:4958:4adf:37ff:febe:4248/128', 'oif': 'eno5', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 0, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'local', 'flags': 0, 'dst': 'fe80::4adf:37ff:febe:4248/128', 'oif': 'eno5', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 0, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'local', 'flags': 0, 'dst': 'fe80::849a:e0ff:fe38:c742/128', 'oif': 'veth0_ep', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 0, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'local', 'flags': 0, 'dst': 'fe80::bc27:f3ff:fe30:7492/128', 'oif': 'veth0', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 0, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'boot', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'ff00::/8', 'oif': 'eno5', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'boot', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'ff00::/8', 'oif': 'enp1s0f4u4', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'boot', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'ff00::/8', 'oif': 'ens1f0', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'boot', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'ff00::/8', 'oif': 'ens1f1', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'boot', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'ff00::/8', 'oif': 'veth0_ep', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'boot', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'ff00::/8', 'oif': 'veth0', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv4', 'tos': 0, 'table': 254, 'protocol': 'dhcp', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'oif': 'eno5', 'gateway': '10.73.89.254', 'metric': 100}, {'address_family': 'ipv4', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'unicast', 'flags': 0, 'dst': '10.73.88.0/23', 'oif': 'eno5', 'prefered_src': '10.73.89.30', 'metric': 100}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '10.73.88.0/32', 'oif': 'eno5', 'prefered_src': '10.73.89.30'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '10.73.89.30/32', 'oif': 'eno5', 'prefered_src': '10.73.89.30'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '10.73.89.255/32', 'oif': 'eno5', 'prefered_src': '10.73.89.30'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '127.0.0.0/32', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '127.0.0.0/8', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '127.0.0.1/32', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '127.255.255.255/32', 'oif': 'lo', 'prefered_src': '127.0.0.1'}], 'rules': [{'action': 'table', 'address_family': 'ipv6', 'flags': 0, 'tos': 0, 'table': 255, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv6', 'flags': 0, 'tos': 0, 'priority': 1000, 'protocol': 'kernel', 'l3mdev': True}, {'action': 'table', 'address_family': 'ipv6', 'flags': 0, 'tos': 0, 'table': 254, 'priority': 32766, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'table': 255, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'priority': 1000, 'protocol': 'kernel', 'l3mdev': True}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'table': 254, 'priority': 32766, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'table': 253, 'priority': 32767, 'protocol': 'kernel'}]}
2021-03-22 15:59:24,838 root         DEBUG    Nispor: changed network state {'name': 'veth0', 'type': 'ethernet', 'state': 'up', 'ipv4': {'enabled': False}, 'ipv6': {'enabled': False}, 'lldp': {'enabled': False}, 'mac-address': 'BE:27:F3:30:74:92', 'mtu': 1500, 'veth': {'peer': 'veth0_ep'}, '_controller': 'br0', '_controller_type': 'linux-bridge', '_brport_options': {'name': 'veth0'}}
2021-03-22 15:59:24,838 root         DEBUG    Nispor: desired network state {'name': 'br0', 'type': 'linux-bridge', 'state': 'up', 'bridge': {'port': [{'name': 'veth0'}]}, 'ipv6': {'enabled': False}}
2021-03-22 15:59:24,838 root         DEBUG    Nispor: desired network state {'name': 'br0.5', 'type': 'vlan', 'state': 'up', 'vlan': {'base-iface': 'br0', 'id': 5}, 'ipv6': {'enabled': False}}
2021-03-22 15:59:24,841 root         DEBUG    Async action: Add profile: a2a0439e-55e2-4db2-af6c-9333cd397b94, iface:veth0, type:ethernet started
2021-03-22 15:59:24,842 root         DEBUG    Async action: Add profile: 0a19617e-7d82-4904-bfac-82426fd83004, iface:br0, type:linux-bridge started
2021-03-22 15:59:24,842 root         DEBUG    Async action: Add profile: 336dd546-1782-4c0c-82e2-10be93ffea14, iface:br0.5, type:vlan started
2021-03-22 15:59:24,847 root         DEBUG    Async action: Add profile: a2a0439e-55e2-4db2-af6c-9333cd397b94, iface:veth0, type:ethernet finished
2021-03-22 15:59:24,848 root         DEBUG    Async action: Add profile: 0a19617e-7d82-4904-bfac-82426fd83004, iface:br0, type:linux-bridge finished
2021-03-22 15:59:24,848 root         DEBUG    Async action: Add profile: 336dd546-1782-4c0c-82e2-10be93ffea14, iface:br0.5, type:vlan finished
2021-03-22 15:59:24,848 root         DEBUG    Async action: Activate profile uuid:0a19617e-7d82-4904-bfac-82426fd83004 iface:br0 type: linux-bridge started
2021-03-22 15:59:24,869 root         DEBUG    Connection activation initiated: iface=br0 type=linux-bridge con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>
2021-03-22 15:59:24,873 root         DEBUG    Connection activation succeeded: iface=br0, type=linux-bridge, con_state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>, dev_state=<enum NM_DEVICE_STATE_IP_CONFIG of type NM.DeviceState>, state_flags=<flags NM_ACTIVATION_STATE_FLAG_IS_MASTER | NM_ACTIVATION_STATE_FLAG_LAYER2_READY | NM_ACTIVATION_STATE_FLAG_MASTER_HAS_SLAVES of type NM.ActivationStateFlags>
2021-03-22 15:59:24,873 root         DEBUG    Async action: Activate profile uuid:0a19617e-7d82-4904-bfac-82426fd83004 iface:br0 type: linux-bridge finished
2021-03-22 15:59:24,873 root         DEBUG    Async action: Activate profile uuid:a2a0439e-55e2-4db2-af6c-9333cd397b94 iface:veth0 type: ethernet started
2021-03-22 15:59:24,873 root         DEBUG    Async action: Activate profile uuid:336dd546-1782-4c0c-82e2-10be93ffea14 iface:br0.5 type: vlan started
2021-03-22 15:59:24,927 root         DEBUG    Connection activation initiated: iface=veth0 type=ethernet con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>
2021-03-22 15:59:24,942 root         DEBUG    Connection activation initiated: iface=br0.5 type=vlan con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>
2021-03-22 15:59:24,943 root         DEBUG    Async action: Rollback to checkpoint /org/freedesktop/NetworkManager/Checkpoint/118 started
2021-03-22 15:59:24,954 root         ERROR    Rollback failed with error Activate profile uuid:a2a0439e-55e2-4db2-af6c-9333cd397b94 iface:veth0 type: ethernet failed: reason=<enum NM_ACTIVE_CONNECTION_STATE_REASON_UNKNOWN of type NM.ActiveConnectionStateReason> <enum NM_DEVICE_STATE_REASON_USER_REQUESTED of type NM.DeviceStateReason>
Traceback (most recent call last):
  File "/usr/bin/nmstatectl", line 11, in <module>
    load_entry_point('nmstate==1.0.2', 'console_scripts', 'nmstatectl')()
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 73, in main
    return args.func(args)
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 326, in set
    return apply(args)
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 343, in apply
    args.save_to_disk,
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 407, in apply_state
    save_to_disk=save_to_disk,
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 78, in apply
    _apply_ifaces_state(plugins, net_state, verify_change, save_to_disk)
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 116, in _apply_ifaces_state
    plugin.apply_changes(net_state, save_to_disk)
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/plugin.py", line 204, in apply_changes
    NmProfiles(self.context).apply_config(net_state, save_to_disk)
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/profiles.py", line 89, in apply_config
    self._ctx.wait_all_finish()
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/context.py", line 213, in wait_all_finish
    raise tmp_error
libnmstate.error.NmstateLibnmError: Activate profile uuid:336dd546-1782-4c0c-82e2-10be93ffea14 iface:br0.5 type: vlan failed: reason=<enum NM_ACTIVE_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED of type NM.ActiveConnectionStateReason> <enum NM_DEVICE_STATE_REASON_CONFIG_FAILED of type NM.DeviceStateReason>

Comment 1 Fernando F. Mancera 2021-06-08 22:46:06 UTC
Hi Mingyu, this has been probably fixed by some changes that has been done internal activation order in https://github.com/nmstate/nmstate/commit/de4ec3a07bd92303d4609dd2f509455f6155b3da

Could you verify if this has been fixed? If so, please mark this as tested. Thank you!

Comment 2 Mingyu Shi 2021-06-22 09:48:42 UTC
This now works with nmstate-1.1.0-0.3.alpha3.el8.noarch
Thank you!

Comment 6 Mingyu Shi 2021-07-20 07:44:03 UTC
Verified with versions:
nmstate-1.1.0-1.el8.noarch
nispor-1.1.1-1.el8.x86_64
NetworkManager-1.32.3-0.z.2.20e3975fd2.el8.x86_64

Comment 8 errata-xmlrpc 2021-11-09 17:43:40 UTC
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-2021:4157


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