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 1895851 - ignore case of ad_actor_system for warning message
Summary: ignore case of ad_actor_system for warning message
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.4
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 8.4
Assignee: Fernando F. Mancera
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-09 09:31 UTC by Mingyu Shi
Modified: 2021-11-09 20:13 UTC (History)
6 users (show)

Fixed In Version: nmstate-1.1.0-0.1.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 17:42:37 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nmstate nmstate pull 1584 0 None open bond: normalize bond options for warnings 2021-05-06 21:21:18 UTC
Red Hat Product Errata RHBA-2021:4157 0 None None None 2021-11-09 17:42:47 UTC

Description Mingyu Shi 2020-11-09 09:31:59 UTC
Description of problem:
Now nmstate raises a warning message when ad_actor_system is lower case

Version-Release number of selected component (if applicable):
nispor-0.6.1-2.el8.x86_64
nmstate-0.4.1-2.el8.noarch
DISTRO=RHEL-8.4.0-20201103.d.0
Linux hp-dl380g10-02.rhts.eng.pek2.redhat.com 4.18.0-241.el8.dt1.x86_64 #1 SMP Mon Nov 2 08:24:31 EST 2020 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
100%

Steps to Reproduce:
echo "---
interfaces:
- name: bond1
  type: bond
  state: up
  link-aggregation:
    mode: 802.3ad
    options:
      ad_actor_system: d4:ee:07:25:42:5a" | nmstatectl set

Actual results:
2020-11-09 17:30:48,647 root         WARNING  Desire iface bond1 bond option ad_actor_system=d4:ee:07:25:42:5a does not match with kernel value: D4:EE:07:25:42:5A

Expected results:
Case insensitive

Additional info:

Comment 1 Fernando F. Mancera 2021-05-06 21:21:22 UTC
Upstream patch: https://github.com/nmstate/nmstate/pull/1584

Comment 2 Fernando F. Mancera 2021-05-11 08:09:28 UTC
Patch merged!

Comment 3 Mingyu Shi 2021-05-12 02:54:51 UTC
Pretested with versions:
nmstate-1.1.0-0.20210511.1358git3463c8e.el8.noarch
nispor-1.0.1-4.el8.x86_64
NetworkManager-1.32.0-0.2.el8.x86_64
Linux mshi-rhel-850-20210328d2 4.18.0-301.1.el8.x86_64 #1 SMP Mon Mar 29 15:21:06 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux

# echo "---
> interfaces:
> - name: bond1
>   type: bond
>   state: up
>   link-aggregation:
>     mode: 802.3ad
>     options:
>       ad_actor_system: d4:ee:07:25:42:5a" | nmstatectl set
/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-05-12 10:50:33,975 root         DEBUG    Nmstate version: 1.1.0
2021-05-12 10:50:33,975 root         DEBUG    Applying desire state: {'interfaces': [{'name': 'bond1', 'type': 'bond', 'state': 'up', 'link-aggregation': {'mode': '802.3ad', 'options': {'ad_actor_system': 'd4:ee:07:25:42:5a'}}}]}
2021-05-12 10:50:34,006 root         DEBUG    NetworkManager version 1.31.3
2021-05-12 10:50:34,016 root         DEBUG    Async action: Retrieve applied config: ethernet eth0 started
2021-05-12 10:50:34,018 root         DEBUG    Async action: Retrieve applied config: ethernet eth0 finished
2021-05-12 10:50:34,020 root         DEBUG    Interface ethernet.eth0 found. Merging the interface information.
2021-05-12 10:50:34,021 root         DEBUG    Interface ethernet.eth1 found. Merging the interface information.
2021-05-12 10:50:34,044 root         DEBUG    Interface lo is type unknown and will be ignored during the activation
2021-05-12 10:50:34,045 root         DEBUG    Async action: Create checkpoint started
2021-05-12 10:50:34,047 root         DEBUG    Checkpoint /org/freedesktop/NetworkManager/Checkpoint/13 created for all devices
2021-05-12 10:50:34,047 root         DEBUG    Async action: Create checkpoint finished
2021-05-12 10:50:34,047 root         DEBUG    Nispor: current network state {'ifaces': {'eth1': {'name': 'eth1', 'iface_type': 'ethernet', 'state': 'up', 'mtu': 1500, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'mac_address': '52:54:00:50:ca:94'}, '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'}, 'eth0': {'name': 'eth0', 'iface_type': 'ethernet', 'state': 'up', 'mtu': 1500, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'ipv4': {'addresses': [{'address': '192.168.122.63', 'prefix_len': 24, 'valid_lft': '3353sec', 'preferred_lft': '3353sec'}]}, 'ipv6': {'addresses': [{'address': 'fe80::5054:ff:fe82:ab62', 'prefix_len': 64, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'mac_address': '52:54:00:82:ab:62'}}, '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': 'kernel', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'fe80::/64', 'oif': 'eth0', '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': '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': 'fe80::5054:ff:fe82:ab62/128', 'oif': 'eth0', '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': 'eth0', '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': 'eth1', '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': 'eth0', 'gateway': '192.168.122.1', 'metric': 100}, {'address_family': 'ipv4', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'unicast', 'flags': 0, 'dst': '192.168.122.0/24', 'oif': 'eth0', 'prefered_src': '192.168.122.63', 'metric': 100}, {'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'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '192.168.122.0/32', 'oif': 'eth0', 'prefered_src': '192.168.122.63'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '192.168.122.63/32', 'oif': 'eth0', 'prefered_src': '192.168.122.63'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '192.168.122.255/32', 'oif': 'eth0', 'prefered_src': '192.168.122.63'}], 'rules': [{'action': 'table', 'address_family': 'ipv6', 'flags': 0, 'tos': 0, 'table': 255, 'protocol': 'kernel'}, {'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, 'table': 254, 'priority': 32766, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'table': 253, 'priority': 32767, 'protocol': 'kernel'}]}
2021-05-12 10:50:34,048 root         DEBUG    Nispor: desired network state {'name': 'bond1', 'type': 'bond', 'state': 'up', 'link-aggregation': {'mode': '802.3ad', 'options': {'ad_actor_system': 'd4:ee:07:25:42:5a'}}, 'ipv6': {'enabled': False}}
2021-05-12 10:50:34,048 root         WARNING  IPv6 link local address fe80::5054:ff:fe82:ab62/64 is ignored when applying desired state
2021-05-12 10:50:34,049 root         DEBUG    Async action: Add profile: 96e7f97b-7454-4ddf-b6da-cf6b29731298, iface:bond1, type:bond started
2021-05-12 10:50:34,052 root         DEBUG    Async action: Add profile: 96e7f97b-7454-4ddf-b6da-cf6b29731298, iface:bond1, type:bond finished
2021-05-12 10:50:34,052 root         DEBUG    Async action: Activate profile uuid:96e7f97b-7454-4ddf-b6da-cf6b29731298 iface:bond1 type: bond started
2021-05-12 10:50:34,061 root         DEBUG    Connection activation initiated: iface=bond1 type=bond con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>
2021-05-12 10:50:34,069 root         DEBUG    Connection activation succeeded: iface=bond1, type=bond, 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 of type NM.ActivationStateFlags>
2021-05-12 10:50:34,070 root         DEBUG    Async action: Activate profile uuid:96e7f97b-7454-4ddf-b6da-cf6b29731298 iface:bond1 type: bond finished
2021-05-12 10:50:34,071 root         DEBUG    Async action: Retrieve applied config: ethernet eth0 started
2021-05-12 10:50:34,074 root         DEBUG    Async action: Retrieve applied config: ethernet eth0 finished
2021-05-12 10:50:34,074 root         DEBUG    Interface bond.bond1 found. Merging the interface information.
2021-05-12 10:50:34,074 root         DEBUG    Interface ethernet.eth0 found. Merging the interface information.
2021-05-12 10:50:34,075 root         DEBUG    Interface ethernet.eth1 found. Merging the interface information.
2021-05-12 10:50:34,083 root         DEBUG    Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/13 started
2021-05-12 10:50:34,130 root         DEBUG    Checkpoint /org/freedesktop/NetworkManager/Checkpoint/13 destroyed
2021-05-12 10:50:34,131 root         DEBUG    Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/13 finished
Desired state applied: 
---
interfaces:
- name: bond1
  type: bond
  state: up
  link-aggregation:
    mode: 802.3ad
    options:
      ad_actor_system: d4:ee:07:25:42:5a

No the WARNING again.

Comment 8 Mingyu Shi 2021-06-02 02:43:24 UTC
Verified with versions:
nmstate-1.1.0-0.1.el8.noarch
nispor-1.1.0-1.el8.x86_64
NetworkManager-1.32.0-0.4.el8.x86_64

Comment 10 errata-xmlrpc 2021-11-09 17:42:37 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.